public class ConfiguredAvailabilityDefinition extends Object implements AvailabilityDefinition
AvailabilityDefinition
.Constructor and Description |
---|
ConfiguredAvailabilityDefinition() |
Modifier and Type | Method and Description |
---|---|
void |
addNodeType(String nodeType) |
info.magnolia.cms.security.operations.AccessDefinition |
getAccess()
Returns the AccessDefinition object for this subject.
|
Collection<String> |
getNodeTypes()
Unless this is empty the subject is available only for these node types.
|
Collection<? extends AvailabilityRuleDefinition> |
getRules()
Returns the collection of availability rule definitions for this subject.
|
boolean |
isMultiple()
If true, the subject is available for multiple item selection.
|
boolean |
isNodes()
If true the subject is available for nodes.
|
boolean |
isProperties()
If true the subject is available for properties.
|
boolean |
isRoot()
If true the subject is available when there's no selection.
|
boolean |
isWritePermissionRequired()
If true the subject is only available if write permission is granted for the item on which availability is evaluated.
|
void |
setAccess(info.magnolia.cms.security.operations.AccessDefinition access) |
void |
setMultiple(boolean multiple) |
void |
setNodes(boolean nodes) |
void |
setNodeTypes(Collection<String> nodeTypes) |
void |
setProperties(boolean properties) |
void |
setRoot(boolean root) |
void |
setRules(Collection<? extends AvailabilityRuleDefinition> rules) |
void |
setWritePermissionRequired(boolean writePermissionRequired) |
public boolean isRoot()
AvailabilityDefinition
isRoot
in interface AvailabilityDefinition
public void setRoot(boolean root)
public boolean isProperties()
AvailabilityDefinition
isProperties
in interface AvailabilityDefinition
public void setProperties(boolean properties)
public boolean isNodes()
AvailabilityDefinition
isNodes
in interface AvailabilityDefinition
public void setNodes(boolean nodes)
public boolean isMultiple()
AvailabilityDefinition
isMultiple
in interface AvailabilityDefinition
public void setMultiple(boolean multiple)
public Collection<String> getNodeTypes()
AvailabilityDefinition
getNodeTypes
in interface AvailabilityDefinition
public void setNodeTypes(Collection<String> nodeTypes)
public void addNodeType(String nodeType)
public void setAccess(info.magnolia.cms.security.operations.AccessDefinition access)
public info.magnolia.cms.security.operations.AccessDefinition getAccess()
AvailabilityDefinition
getAccess
in interface AvailabilityDefinition
public boolean isWritePermissionRequired()
AvailabilityDefinition
isWritePermissionRequired
in interface AvailabilityDefinition
public void setWritePermissionRequired(boolean writePermissionRequired)
public Collection<? extends AvailabilityRuleDefinition> getRules()
AvailabilityDefinition
getRules
in interface AvailabilityDefinition
public void setRules(Collection<? extends AvailabilityRuleDefinition> rules)
Copyright © 2020 Magnolia International Ltd.. All rights reserved.