Class ManageWorkflowGroupFeature
java.lang.Object
org.dspace.app.rest.authorization.impl.ManageWorkflowGroupFeature
- All Implemented Interfaces:
AuthorizationFeature
@Component
@AuthorizationFeatureDocumentation(name="canManageWorkflowGroup",
description="It can be used to verify if a collection workflow group can be created, deleted, viewed or edited")
public class ManageWorkflowGroupFeature
extends Object
implements AuthorizationFeature
The manage workflow group feature. It can be used to verify if a collection workflow group can be created, deleted,
viewed or edited.
Authorization is granted if the current user has ADMIN permissions on the given collection and the configuration
allows the collection admin to manage workflow groups, OR the current user has ADMIN permissions on the given
collection's owning community and the configuration allows the community admin to manage workflow groups.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Return the supported object type according to theRestAddressableModel.getUniqueType()booleanisAuthorized(Context context, BaseObjectRest object) Check if the eperson in the provided context, or the anonymous user if not loggedin, has access to the feature for the requested objectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.dspace.app.rest.authorization.AuthorizationFeature
getDescription, getName
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
ManageWorkflowGroupFeature
public ManageWorkflowGroupFeature()
-
-
Method Details
-
isAuthorized
Description copied from interface:AuthorizationFeatureCheck if the eperson in the provided context, or the anonymous user if not loggedin, has access to the feature for the requested object- Specified by:
isAuthorizedin interfaceAuthorizationFeature- Parameters:
context- the DSpace Contextobject- the object target by the feature (MUST be NOT null). Use theSiteRestobject for repository wide feature- Returns:
- true if the user associated with the context has access to the feature for the specified object
- Throws:
SQLException
-
getSupportedTypes
Description copied from interface:AuthorizationFeatureReturn the supported object type according to theRestAddressableModel.getUniqueType()- Specified by:
getSupportedTypesin interfaceAuthorizationFeature- Returns:
- the supported object type, required to be not null
-