Class CanSynchronizeWithORCID
java.lang.Object
org.dspace.app.rest.authorization.impl.CanSynchronizeWithORCID
- All Implemented Interfaces:
AuthorizationFeature
@Component
@AuthorizationFeatureDocumentation(name="canSynchronizeWithORCID",
description="It can be used to verify if the user can synchronize with ORCID")
public class CanSynchronizeWithORCID
extends Object
implements AuthorizationFeature
The synchronization with ORCID feature. It can be used to verify
if the user can synchronize with ORCID.
- Author:
- Mohamed Eskander (mohamed.eskander at 4science.it)
-
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) Methods 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
-
CanSynchronizeWithORCID
public CanSynchronizeWithORCID()
-
-
Method Details
-
isAuthorized
This method returns true if the BaseObjectRest object is an instance ofItemRest, there is a current user in theContextand it is the owner of that item. Otherwise this method returns false.- 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
-