public class AccessControlEntryDefinition extends SystemObjectDefinition
Most of the specifications of an ACE are set using specific methods introduced in this class, as opposed to using the setAttribute() method inherited from LibraryObjectDefinition. The specifications that must be set with explicit methods on this class are:
AccessLevel
,
SystemObjectDefinition
,
AccessControlEntry
,
AccessControlList
,
AccessControlListDefinition
,
Serialized FormLibraryObjectDefinition.EnumToIntegerCode, LibraryObjectDefinition.LookupByName
m_Attributes, m_ClassObjectName, m_ClassObjectValue, m_ContentSpecifications, m_DefinitionLists, m_Definitions, m_EnclosedDefinition, m_Id, m_Options, m_ReadOnly, m_ReferenceAttributes, m_Session, m_SystemOptions
Constructor and Description |
---|
AccessControlEntryDefinition(LibrarySessionInterface session)
Construct a definition explicitly capturing the
session.
|
AccessControlEntryDefinition(LibrarySessionInterface session,
String className)
Construct a definition, explicitly capturing the
session and setting the initial classobject.
|
Modifier and Type | Method and Description |
---|---|
void |
addPermissionBundle(PermissionBundle pb)
Deprecated.
CM SDK 10gR2: use addPermissionBundles(AttributeValue)
|
void |
addPermissionBundles(AttributeValue av)
Adds a set of permission bundles to the definition.
|
void |
addPermissionBundles(PermissionBundle[] pbs)
Deprecated.
CM SDK 10gR2: use addPermissionBundlesValue(AttributeValue)
|
void |
applySettings(AttributeValueTable avt)
Applies settings from the specified table.
|
void |
enableGrantToWorld(boolean flag)
Set the 'WORLD' group as the grantee of the ACE being created.
|
AccessLevel |
getDistinctAccessLevel()
get the AccessLevel to be associated with this instance
of ACE without permission bundles.
|
DirectoryObject |
getGrantee()
Deprecated.
CM SDK 10gR2: use getGranteeValue()
|
AttributeValue |
getGranteeValue()
Returns the grantee value to be associated with this definition.
|
AccessControlEntry |
getInsertAfterAccessControlEntry()
Deprecated.
CM SDK 10gR2: use getInsertAfterAccessControlEntryValue()
|
AttributeValue |
getInsertAfterAccessControlEntryValue()
Returns the reference ACE set using setInsertAfterAccessControlEntryValue.
|
AccessControlEntry |
getInsertBeforeAccessControlEntry()
Deprecated.
CM SDK 10gR2: use getInsertBeforeAccessControlEntryValue()
|
AttributeValue |
getInsertBeforeAccessControlEntryValue()
Returns the reference ACE set using setInsertBeforeAccessControlEntryValue.
|
AccessLevel |
getMergedAccessLevel()
get the AccessLevel to be associated with this instance
of ACE with permission bundles.
|
PermissionBundle[] |
getPermissionBundles()
Deprecated.
CM SDK 10gR2: use getPermissionBundlesValue()
|
AttributeValue |
getPermissionBundlesValue()
Returns set of PermissionBundles that are specified.
|
Boolean |
isGranted()
Returns the indication as to whether this ACE is a grant or revoke ACE.
|
void |
removePermissionBundles()
Removes all permission bundles specifications from this instance.
|
void |
setDistinctAccessLevel(AccessLevel level)
Set the AccessLevel to be associated with this instance
of ACE before permission bundles are accounted for.
|
void |
setGranted(boolean granted)
Set the indication as to whether this ACE is a grant or revoke ACE.
|
void |
setGrantee(DirectoryObject dirobject)
Deprecated.
CM SDK 10gR2: use setGranteeValue()
|
void |
setGranteeValue(AttributeValue dirobject)
Set the grantee to be associated with this ACE.
|
void |
setInsertAfterAccessControlEntry(AccessControlEntry ace)
Deprecated.
CM SDK 10gR2: use setInsertAfterAccessControlEntryValue()
|
void |
setInsertAfterAccessControlEntryValue(AttributeValue av)
Set a reference ACE, so that the new ACE has a sort sequence greater than
the reference ACE.
|
void |
setInsertBeforeAccessControlEntry(AccessControlEntry ace)
Deprecated.
CM SDK 10gR2: use setInsertBeforeAccessControlEntryValue()
|
void |
setInsertBeforeAccessControlEntryValue(AttributeValue av)
Set a reference ACE, so that the new ACE has a sort sequence less than
the reference ACE.
|
void |
setPermissionBundlesValue(AttributeValue av)
Defines a set of permission bundles to the definition.
|
addCategoryDefinition, addCategoryDefinitionForUpdate, addCategoryDefinitions, addCategoryForDelete, getCategoriesForDelete, getCategoryDefinitions, getCategoryDefinitionsForUpdate, getCreateCategoriesServerSideOption, removeCategoriesForDelete, removeCategoryDefinitions, removeCategoryDefinitionsForUpdate, setCategoryDefinitions, setCreateCategoriesServerSideOption, toSystemObjectDefinition, toSystemObjectDefinition
addDefinition, addDefinitions, addProperty, addPropertyDefinition, addPropertyDefinition, addPropertyDefinitions, addPropertyDefinitions, addSimplePropertyDefinition, addSimplePropertyDefinition, addSimplePropertyDefinitions, addSimplePropertyDefinitions, applyEnumSetting, applyEnumSetting, applyMapSetting, applyMapSetting, applyObjectArraySetting, applyObjectArraySetting, applyObjectSetting, applyObjectSetting, applySetting, applySetting, captureSession, captureSession, captureSession, clone, constructInstance, constructInstance, constructInstance, copyInto, deriveObjectArraySetting, deriveObjectSetting, getAttribute, getAttribute, getAttributes, getAttributes, getAttributesSorted, getClassId, getClassObject, getClassObjectValue, getContentSpecification, getContentSpecificationKeys, getCopiedObjectValue, getDefinition, getDefinitionClassName, getDefinitionKeys, getDefinitionListKeys, getDefinitions, getId, getLibrarySession, getName, getOption, getOptionAsAttributeValue, getOptionKeys, getPolicyMode, getPropertyDefinitions, getReferenceAttribute, getReferenceAttributes, getServerDefinition, getSession, getSimplePropertyDefinitions, getSLibrarySession, getStringAttribute, getSystemOption, getSystemOptionAsAttributeValue, getSystemOptionAsBoolean, getSystemOptionKeys, getWriteableInstance, isReadOnly, prepareForDefinitionObject, processSimplePropertiesForCreate, processSimplePropertiesForUpdate, removeAttribute, removeContentSpecification, removeDefinition, removeDefinitions, removeOption, removePropertyDefinitions, removeReferenceAttribute, removeSimplePropertyDefinitions, removeSystemOption, reset, resolve, setAttribute, setAttribute, setAttribute, setAttributeByUpperCaseName, setAttributeByUpperCaseName, setAttributePolicyMode, setAttributes, setClassId, setClassname, setClassObject, setClassObjectValue, setContentSpecification, setCopiedObjectValue, setDefinition, setDefinitions, setId, setName, setOption, setReadOnly, setReferenceAttribute, setReferenceAttribute, setSession, setSimplePropertyDefinitions, setSystemOption, unresolve, verifySession
public AccessControlEntryDefinition(LibrarySessionInterface session) throws IfsException
session
- the current sessionIfsException
- if the operation failspublic AccessControlEntryDefinition(LibrarySessionInterface session, String className) throws IfsException
session
- the current sessionclassName
- the initial class nameIfsException
- if the operation failspublic void applySettings(AttributeValueTable avt) throws IfsException
applySettings
in class SystemObjectDefinition
avt
- the definition tableIfsException
- if the operation failspublic void setDistinctAccessLevel(AccessLevel level) throws IfsException
level
- An AccessLevel object that defines the
access level.IfsException
- if the operation failspublic AccessLevel getDistinctAccessLevel() throws IfsException
IfsException
- if the operation failspublic AccessLevel getMergedAccessLevel() throws IfsException
IfsException
- if the operation failspublic void addPermissionBundle(PermissionBundle pb) throws IfsException
pb
- permission bundle to be added.IfsException
- if the operation failspublic void addPermissionBundles(PermissionBundle[] pbs) throws IfsException
pbs
- array of permission bundles.IfsException
- if the operation fails.public void addPermissionBundles(AttributeValue av) throws IfsException
av
- the value representing a single PermissionBundle
or an array of PermissionBundlesIfsException
- if the operation fails.public void setPermissionBundlesValue(AttributeValue av) throws IfsException
av
- the value representing the array of permission bundles.IfsException
- if the operation fails.public void removePermissionBundles() throws IfsException
IfsException
- if the operation fails.public PermissionBundle[] getPermissionBundles() throws IfsException
IfsException
- if the operation fails.public AttributeValue getPermissionBundlesValue() throws IfsException
IfsException
- if the operation fails.public void setGrantee(DirectoryObject dirobject) throws IfsException
dirobject
- The directory object to be associated with
this instance.IfsException
- if the operation failspublic void setGranteeValue(AttributeValue dirobject) throws IfsException
dirobject
- The directory object to be associated with
this instance.IfsException
- if the operation failspublic DirectoryObject getGrantee() throws IfsException
IfsException
- if the operation failspublic AttributeValue getGranteeValue() throws IfsException
IfsException
- if the operation failspublic void enableGrantToWorld(boolean flag) throws IfsException
flag
- if set to true, WORLD will become the grantee.IfsException
- if the operation failspublic void setInsertAfterAccessControlEntry(AccessControlEntry ace) throws IfsException
ace
- the reference AccessControlEntry.IfsException
- if the operation failspublic void setInsertAfterAccessControlEntryValue(AttributeValue av) throws IfsException
av
- the value of the reference AccessControlEntry.IfsException
- if the operation failspublic AccessControlEntry getInsertAfterAccessControlEntry() throws IfsException
IfsException
- if the operation failspublic AttributeValue getInsertAfterAccessControlEntryValue() throws IfsException
IfsException
- if the operation failspublic void setInsertBeforeAccessControlEntry(AccessControlEntry ace) throws IfsException
ace
- the reference AccessControlEntry.IfsException
- if the operation failspublic void setInsertBeforeAccessControlEntryValue(AttributeValue av) throws IfsException
av
- the value of the reference AccessControlEntry.IfsException
- if the operation failspublic AccessControlEntry getInsertBeforeAccessControlEntry() throws IfsException
IfsException
- if the operation failspublic AttributeValue getInsertBeforeAccessControlEntryValue() throws IfsException
IfsException
- if the operation failspublic void setGranted(boolean granted) throws IfsException
granted
- the indication as to whether this ACE is a
grant or revoke ACEIfsException
- if operation fails.public Boolean isGranted() throws IfsException
IfsException
- if operation fails.Copyright © 2023. All rights reserved.