Class AuthorizeServiceRestUtil
java.lang.Object
org.dspace.app.rest.authorization.AuthorizeServiceRestUtil
This class is a wrapper around the AuthorizationService which takes Rest objects instead of dspace objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthorizeActionBoolean(Context context, BaseObjectRest object, DSpaceRestPermission dSpaceRestPermission) Checks that the specified eperson can perform the given action on the rest given object.
-
Constructor Details
-
AuthorizeServiceRestUtil
public AuthorizeServiceRestUtil()
-
-
Method Details
-
authorizeActionBoolean
public boolean authorizeActionBoolean(Context context, BaseObjectRest object, DSpaceRestPermission dSpaceRestPermission) throws SQLException Checks that the specified eperson can perform the given action on the rest given object.- Parameters:
context- DSpace contextobject- The Rest object to test the action againstdSpaceRestPermission- The permission to check- Returns:
- A boolean indicating if the action is allowed by the logged in ePerson on the given object
- Throws:
SQLException
-