@Entity public class ResourcePolicy extends Object implements ReloadableEntity<Integer>
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE_CUSTOM |
static String |
TYPE_INHERITED |
static String |
TYPE_SUBMISSION |
static String |
TYPE_WORKFLOW |
| Modifier | Constructor and Description |
|---|---|
protected |
ResourcePolicy()
Protected constructor, create object using:
DSpaceCRUDService.create(Context) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Return true if this object equals obj, false otherwise.
|
int |
getAction() |
DSpaceObject |
getdSpaceObject() |
Date |
getEndDate()
Get end date for the policy
|
EPerson |
getEPerson() |
Group |
getGroup()
gets the Group referred to by this policy
|
Integer |
getID()
Get the ResourcePolicy's internal identifier
|
String |
getRpDescription() |
String |
getRpName() |
String |
getRpType() |
Date |
getStartDate()
Get the start date of the policy
|
int |
hashCode()
Return a hash code for this object.
|
void |
setAction(int myid)
set the action this policy authorizes
|
void |
setdSpaceObject(DSpaceObject dSpaceObject) |
void |
setEndDate(Date d)
Set end date for the policy
|
void |
setEPerson(EPerson eperson)
assign an EPerson to this policy
|
void |
setGroup(Group epersonGroup)
sets the Group referred to by this policy
|
void |
setRpDescription(String description) |
void |
setRpName(String name) |
void |
setRpType(String type) |
void |
setStartDate(Date d)
Set the start date for the policy
|
public static String TYPE_SUBMISSION
public static String TYPE_WORKFLOW
public static String TYPE_CUSTOM
public static String TYPE_INHERITED
protected ResourcePolicy()
DSpaceCRUDService.create(Context)public boolean equals(Object obj)
public int hashCode()
public Integer getID()
getID in interface ReloadableEntity<Integer>public DSpaceObject getdSpaceObject()
public void setdSpaceObject(DSpaceObject dSpaceObject)
public void setAction(int myid)
myid - action ID from org.dspace.core.Constantspublic int getAction()
public EPerson getEPerson()
public void setEPerson(EPerson eperson)
eperson - Epersonpublic Group getGroup()
public void setGroup(Group epersonGroup)
epersonGroup - Grouppublic Date getStartDate()
public void setStartDate(Date d)
d - date, or null for no start datepublic Date getEndDate()
public void setEndDate(Date d)
d - end date, or nullpublic String getRpName()
public void setRpName(String name)
public String getRpType()
public void setRpType(String type)
public String getRpDescription()
public void setRpDescription(String description)
Copyright © 2017 DuraSpace. All rights reserved.