Class LifeCyclePolicyAccessControlEntryImpl
java.lang.Object
org.opencastproject.lifecyclemanagement.impl.LifeCyclePolicyAccessControlEntryImpl
- All Implemented Interfaces:
LifeCyclePolicyAccessControlEntry
@Entity(name="LifeCyclePolicyAccessControlEntry")
public class LifeCyclePolicyAccessControlEntryImpl
extends Object
implements LifeCyclePolicyAccessControlEntry
This has the same fields as an
AccessControlEntry, but since policies purely exist in the database, ACLs
need to be persisted alongside them, which is what this is for.-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorLifeCyclePolicyAccessControlEntryImpl(boolean allow, String role, String action) LifeCyclePolicyAccessControlEntryImpl(long id, boolean allow, String role, String action) -
Method Summary
Modifier and TypeMethodDescriptionvoidfromAccessControlEntry(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 toConverts this entry to anAccessControlEntry
-
Constructor Details
-
LifeCyclePolicyAccessControlEntryImpl
public LifeCyclePolicyAccessControlEntryImpl()Default constructor -
LifeCyclePolicyAccessControlEntryImpl
-
LifeCyclePolicyAccessControlEntryImpl
-
-
Method Details
-
getId
public long getId()Description copied from interface:LifeCyclePolicyAccessControlEntryGets the entry's identifier- Specified by:
getIdin interfaceLifeCyclePolicyAccessControlEntry- Returns:
- the entry identifier
-
setId
public void setId(long id) Description copied from interface:LifeCyclePolicyAccessControlEntrySets the entry's identifier- Specified by:
setIdin interfaceLifeCyclePolicyAccessControlEntry- Parameters:
id- the entry identifier
-
isAllow
public boolean isAllow()Description copied from interface:LifeCyclePolicyAccessControlEntryReturns whether this entry allows or denies the action- Specified by:
isAllowin interfaceLifeCyclePolicyAccessControlEntry- Returns:
- true if the action is allowed
-
setAllow
public void setAllow(boolean allow) Description copied from interface:LifeCyclePolicyAccessControlEntrySets whether this entry allows or denies the action- Specified by:
setAllowin interfaceLifeCyclePolicyAccessControlEntry- Parameters:
allow- true if the action is allowed
-
getRole
Description copied from interface:LifeCyclePolicyAccessControlEntryGets the role this entry applies to- Specified by:
getRolein interfaceLifeCyclePolicyAccessControlEntry- Returns:
- the role
-
setRole
Description copied from interface:LifeCyclePolicyAccessControlEntrySets the role this entry applies to- Specified by:
setRolein interfaceLifeCyclePolicyAccessControlEntry- Parameters:
role- the role
-
getAction
Description copied from interface:LifeCyclePolicyAccessControlEntryGets the action this entry allows or denies- Specified by:
getActionin interfaceLifeCyclePolicyAccessControlEntry- Returns:
- the action
-
setAction
Description copied from interface:LifeCyclePolicyAccessControlEntrySets the action this entry allows or denies- Specified by:
setActionin interfaceLifeCyclePolicyAccessControlEntry- Parameters:
action- the action
-
toAccessControlEntry
Description copied from interface:LifeCyclePolicyAccessControlEntryConverts this entry to anAccessControlEntry- Specified by:
toAccessControlEntryin interfaceLifeCyclePolicyAccessControlEntry- Returns:
- the converted access control entry
-
fromAccessControlEntry
Description copied from interface:LifeCyclePolicyAccessControlEntryPopulates this entry from anAccessControlEntry- Specified by:
fromAccessControlEntryin interfaceLifeCyclePolicyAccessControlEntry- Parameters:
accessControlEntry- the access control entry to populate from
-