Class AuthorizeServiceRestUtil
- java.lang.Object
-
- org.dspace.app.rest.authorization.AuthorizeServiceRestUtil
-
@Component public class AuthorizeServiceRestUtil extends Object
This class is a wrapper around the AuthorizationService which takes Rest objects instead of dspace objects
-
-
Constructor Summary
Constructors Constructor Description AuthorizeServiceRestUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanauthorizeActionBoolean(Context context, BaseObjectRest object, DSpaceRestPermission dSpaceRestPermission)Checks that the specified eperson can perform the given action on the rest given object.
-
-
-
Method Detail
-
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
-
-