if(!AuthorizeManager.authorizeActionBoolean(context, item, Constants.ADD)) if (!AuthorizeManager.authorizeActionBoolean(context, bundle, Constants.ADD)) if (!AuthorizeManager.authorizeActionBoolean(context, bundle, Constants.WRITE))
if (AuthorizeManager.authorizeActionBoolean(context, community, Constants.DELETE))
if (AuthorizeManager.authorizeActionBoolean(context, collection.getParentObject(), Constants.REMOVE))
authAllowed = AuthorizeManager.authorizeActionBoolean(swordContext.getAuthenticatorContext(), comms[i], Constants.READ); oboAllowed = AuthorizeManager.authorizeActionBoolean(swordContext.getOnBehalfOfContext(), comms[i], Constants.READ);
authAllowed = AuthorizeManager.authorizeActionBoolean(swordContext.getAuthenticatorContext(), comms[i], Constants.READ); oboAllowed = AuthorizeManager.authorizeActionBoolean(swordContext.getOnBehalfOfContext(), comms[i], Constants.READ);
boolean authorized = AuthorizeManager.authorizeActionBoolean(context, dso, action);
boolean write = AuthorizeManager.authorizeActionBoolean(swordContext.getAuthenticatorContext(), item, Constants.WRITE); add = AuthorizeManager.authorizeActionBoolean(swordContext.getAuthenticatorContext(), bundles[i], Constants.ADD); if (!add) boolean write = AuthorizeManager.authorizeActionBoolean(swordContext.getOnBehalfOfContext(), item, Constants.WRITE); add = AuthorizeManager.authorizeActionBoolean(swordContext.getOnBehalfOfContext(), bundles[i], Constants.ADD); if (!add)
if (AuthorizeManager.authorizeActionBoolean(context, community, Constants.ADD)) if (AuthorizeManager.authorizeActionBoolean(context, community, Constants.REMOVE))
boolean authorized = dso == null || AuthorizeManager.authorizeActionBoolean(context, dso, action, false);
/** * Add a single link to the view item page that allows the user * to submit to the collection. */ public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { DSpaceObject dso = HandleUtil.obtainHandle(objectModel); if (!(dso instanceof Collection)) { return; } // Set up the major variables Collection collection = (Collection) dso; // Only add the submit link if the user has the ability to add items. if (AuthorizeManager.authorizeActionBoolean(context, collection, Constants.ADD)) { Division home = body.addDivision("collection-home","primary repository collection"); Division viewer = home.addDivision("collection-view","secondary"); String submitURL = contextPath + "/handle/" + collection.getHandle() + "/submit"; viewer.addPara().addXref(submitURL,T_submit); } }
for (Collection c : allNotLinkedCollections) if (AuthorizeManager.authorizeActionBoolean(context, c, Constants.ADD)) for (Collection c : allLinkedCollections) if (AuthorizeManager.authorizeActionBoolean(context, c, Constants.REMOVE))
if (AuthorizeManager.authorizeActionBoolean(this.context, collection, Constants.ADMIN)) if (AuthorizeManager.authorizeActionBoolean(this.context, community,Constants.ADD))
if (AuthorizeManager.authorizeActionBoolean(context, item, Constants.READ))
if (AuthorizeManager.authorizeActionBoolean(context, item, Constants.READ))
remove.setLabel("remove"); remove.addOption(bundle.getID() + "/" + bitstream.getID()); if (!AuthorizeManager.authorizeActionBoolean(context, item, Constants.REMOVE)) { remove.setDisabled(); if (AuthorizeManager.authorizeActionBoolean(context, bitstream, Constants.WRITE)) { highlight.addContent("]"); if (AuthorizeManager.authorizeActionBoolean(context, bundle, Constants.WRITE)) { Cell cell = row.addCell("bitstream_order_" + bitstream.getID(), Cell.ROLE_DATA, ""); if (AuthorizeManager.authorizeActionBoolean(context, item, Constants.ADD)) if (AuthorizeManager.authorizeActionBoolean(context, item, Constants.REMOVE))
div.setHead(T_head1); if (AuthorizeManager.authorizeActionBoolean(context, collection, Constants.REMOVE)) if (AuthorizeManager.authorizeActionBoolean(context, collection, Constants.REMOVE))
Button button = queryItem.addButton("submit_author"); button.setValue(T_submit_search); if (!AuthorizeManager.authorizeActionBoolean(context, collection, Constants.ADD))
if (AuthorizeManager.authorizeActionBoolean(this.context, community,Constants.ADD))
if (AuthorizeManager.authorizeActionBoolean(context, item, Constants.DELETE))
buttonList.addButton("submit_save").setValue(T_submit_update); if (AuthorizeManager.authorizeActionBoolean(context, thisCommunity, Constants.DELETE))