Class Authorization
java.lang.Object
org.dspace.app.rest.authorization.Authorization
An authorization is the right for a specific
EPerson, eventually null to indicate unauthenticated users, to
use a specific AuthorizationFeature on a defined object. The target object must implement the
RestAddressableModel interface so to be directly addressable- Author:
- Andrea Bollini (andrea.bollini at 4science.it)
-
Constructor Summary
ConstructorsConstructorDescriptionAuthorization(EPerson eperson, AuthorizationFeature feature, BaseObjectRest object) -
Method Summary
Modifier and TypeMethodDescriptiongetID()voidsetEperson(EPerson eperson) voidsetFeature(AuthorizationFeature feature) voidsetObject(BaseObjectRest object)
-
Constructor Details
-
Authorization
public Authorization() -
Authorization
-
-
Method Details
-
getEperson
- Returns:
- the user authorized to use the feature.
nullmean unauthenticated user
-
setEperson
- Parameters:
eperson- the user authorized to use the feature.nullmean unauthenticated user
-
getFeature
- Returns:
- the feature that is authorized to be used
-
setFeature
- Parameters:
feature- the feature that is authorized to be used
-
getObject
- Returns:
- the object where the feature can be used. Not null, for repository wide feature use the
Siteobject
-
setObject
- Parameters:
object- the object where the feature can be used. Not null, for repository wide feature use theSiteobject
-
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
-