Class Authorization
- java.lang.Object
-
- org.dspace.app.rest.authorization.Authorization
-
public class Authorization extends Object
An authorization is the right for a specificEPerson, eventually null to indicate unauthenticated users, to use a specificAuthorizationFeatureon a defined object. The target object must implement theRestAddressableModelinterface so to be directly addressable- Author:
- Andrea Bollini (andrea.bollini at 4science.it)
-
-
Constructor Summary
Constructors Constructor Description Authorization()Authorization(EPerson eperson, AuthorizationFeature feature, BaseObjectRest object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EPersongetEperson()AuthorizationFeaturegetFeature()StringgetID()BaseObjectRestgetObject()voidsetEperson(EPerson eperson)voidsetFeature(AuthorizationFeature feature)voidsetObject(BaseObjectRest object)
-
-
-
Constructor Detail
-
Authorization
public Authorization()
-
Authorization
public Authorization(EPerson eperson, AuthorizationFeature feature, BaseObjectRest object)
-
-
Method Detail
-
getEperson
public EPerson getEperson()
- Returns:
- the user authorized to use the feature.
nullmean unauthenticated user
-
setEperson
public void setEperson(EPerson eperson)
- Parameters:
eperson- the user authorized to use the feature.nullmean unauthenticated user
-
getFeature
public AuthorizationFeature getFeature()
- Returns:
- the feature that is authorized to be used
-
setFeature
public void setFeature(AuthorizationFeature feature)
- Parameters:
feature- the feature that is authorized to be used
-
getObject
public BaseObjectRest getObject()
- Returns:
- the object where the feature can be used. Not null, for repository wide feature use the
Siteobject
-
setObject
public void setObject(BaseObjectRest object)
- Parameters:
object- the object where the feature can be used. Not null, for repository wide feature use theSiteobject
-
getID
public String getID()
- Returns:
- an unique business identifier generated by concatenation of eperson uuid (if any), feature name and object unique identifier. Some examples alwaystrue_core.site_94274020-e617-43b8-90e6-277d04f6be13 8c7b9132-eadc-4199-af6d-3260a678e96f_alwaystrueadmins_core.site_94274020-e617-43b8-90e6-277d04f6be13 8c7b9132-eadc-4199-af6d-3260a678e96f_withdrawItem_core.item_c8924526-67ef-479a-8e37-dd8d19e625e9 8c7b9132-eadc-4199-af6d-3260a678e96f_alwaystrue_submission.workspaceitem_1
-
-