Package org.dspace.app.rest.model
Class ResourcePolicyRest
- java.lang.Object
-
- org.dspace.app.rest.model.RestAddressableModel
-
- org.dspace.app.rest.model.BaseObjectRest<Integer>
-
- org.dspace.app.rest.model.ResourcePolicyRest
-
- All Implemented Interfaces:
Serializable,RestModel
public class ResourcePolicyRest extends BaseObjectRest<Integer>
The Access Condition REST Resource. It is intent to be an human or REST client understandable representation of the DSpace ResourcePolicy.- Author:
- Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCATEGORYstatic StringNAMEstatic StringPLURAL_NAME-
Fields inherited from class org.dspace.app.rest.model.BaseObjectRest
id
-
Fields inherited from interface org.dspace.app.rest.model.RestModel
AUTHENTICATION, AUTHORIZATION, CONFIGURATION, CORE, DISCOVER, EPERSON, INTEGRATION, ROOT, STATISTICS, SUBMISSION, SYSTEM, TOOLS, VERSIONING, WORKFLOW
-
-
Constructor Summary
Constructors Constructor Description ResourcePolicyRest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAction()StringgetCategory()ClassgetController()StringgetDescription()DategetEndDate()EPersonRestgetEperson()GroupRestgetGroup()StringgetName()StringgetPolicyType()DSpaceObjectRestgetResource()DategetStartDate()StringgetType()voidsetAction(String action)voidsetDescription(String description)voidsetEndDate(Date endDate)voidsetEperson(EPersonRest eperson)voidsetGroup(GroupRest group)voidsetName(String name)voidsetPolicyType(String policyType)voidsetResource(DSpaceObjectRest resource)voidsetStartDate(Date startDate)-
Methods inherited from class org.dspace.app.rest.model.BaseObjectRest
getErrors, getId, setErrors, setId
-
Methods inherited from class org.dspace.app.rest.model.RestAddressableModel
getEmbedLevel, getProjection, getUniqueType, setEmbedLevel, setProjection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.app.rest.model.RestModel
getTypePlural
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
PLURAL_NAME
public static final String PLURAL_NAME
- See Also:
- Constant Field Values
-
CATEGORY
public static final String CATEGORY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEndDate
public Date getEndDate()
-
setEndDate
public void setEndDate(Date endDate)
-
getType
public String getType()
-
getCategory
public String getCategory()
- Specified by:
getCategoryin classRestAddressableModel
-
getController
public Class getController()
- Specified by:
getControllerin classRestAddressableModel
-
getName
public String getName()
-
setName
public void setName(String name)
-
getPolicyType
public String getPolicyType()
-
setPolicyType
public void setPolicyType(String policyType)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getEperson
public EPersonRest getEperson()
-
setEperson
public void setEperson(EPersonRest eperson)
-
getGroup
public GroupRest getGroup()
-
setGroup
public void setGroup(GroupRest group)
-
getResource
public DSpaceObjectRest getResource()
-
setResource
public void setResource(DSpaceObjectRest resource)
-
getAction
public String getAction()
-
setAction
public void setAction(String action)
-
getStartDate
public Date getStartDate()
-
setStartDate
public void setStartDate(Date startDate)
-
-