/** * Is allowed manage (create, remove, edit) bitstream's policies in the * current context? * * @param context the DSpace Context Object * @param bitstream the bitstream that the policy refer to * @throws AuthorizeException if authorization error * if the current context (current user) is not allowed to * manage the bitstream's policies * @throws SQLException if database error * if a db error occur */ public static void authorizeManageBitstreamPolicy(Context context, Bitstream bitstream) throws AuthorizeException, SQLException { Bundle bundle = bitstream.getBundles().get(0); authorizeManageBundlePolicy(context, bundle); }
AuthorizeUtil.authorizeManageBundlePolicy(context, item.getBundles("ORIGINAL")[0]); request.setAttribute("reorder_bitstreams_button", Boolean.TRUE);
"bundle_id")); AuthorizeUtil.authorizeManageBundlePolicy(c, bundle); ResourcePolicy policy = ResourcePolicy.create(c); policy.setResource(bundle);
break; case Constants.BUNDLE: authorizeManageBundlePolicy(c, (Bundle) rp.getdSpaceObject()); break;