Interface LifeCyclePolicyAccessControlEntry
public interface LifeCyclePolicyAccessControlEntry
Represents a single access control entry for a
LifeCyclePolicy-
Method Summary
Modifier and TypeMethodDescriptionvoidfromAccessControlEntry(org.opencastproject.security.api.AccessControlEntry accessControlEntry) Populates this entry from anAccessControlEntryGets the action this entry allows or denieslonggetId()Gets the entry's identifiergetRole()Gets the role this entry applies tobooleanisAllow()Returns whether this entry allows or denies the actionvoidSets the action this entry allows or deniesvoidsetAllow(boolean allow) Sets whether this entry allows or denies the actionvoidsetId(long id) Sets the entry's identifiervoidSets the role this entry applies toorg.opencastproject.security.api.AccessControlEntryConverts this entry to anAccessControlEntry
-
Method Details
-
getId
long getId()Gets the entry's identifier- Returns:
- the entry identifier
-
setId
void setId(long id) Sets the entry's identifier- Parameters:
id- the entry identifier
-
isAllow
boolean isAllow()Returns whether this entry allows or denies the action- Returns:
- true if the action is allowed
-
setAllow
void setAllow(boolean allow) Sets whether this entry allows or denies the action- Parameters:
allow- true if the action is allowed
-
getRole
String getRole()Gets the role this entry applies to- Returns:
- the role
-
setRole
Sets the role this entry applies to- Parameters:
role- the role
-
getAction
String getAction()Gets the action this entry allows or denies- Returns:
- the action
-
setAction
Sets the action this entry allows or denies- Parameters:
action- the action
-
toAccessControlEntry
org.opencastproject.security.api.AccessControlEntry toAccessControlEntry()Converts this entry to anAccessControlEntry- Returns:
- the converted access control entry
-
fromAccessControlEntry
void fromAccessControlEntry(org.opencastproject.security.api.AccessControlEntry accessControlEntry) Populates this entry from anAccessControlEntry- Parameters:
accessControlEntry- the access control entry to populate from
-