public class PermissionBundle extends TieSystemObject
The main purpose of this class is to provide convenience over having to use each access level separately. This object can also act as a "Role" in that when this bundle is updated all ACLs automatically reflect the change.
AccessLevel
Modifier and Type | Field and Description |
---|---|
static String |
ACCESSLEVEL_ATTRIBUTE
The level of the permission represented by this PermissionBundle (e.g.
|
static String |
CLASS_NAME
The name of this class.
|
static String |
DESCRIPTION_ATTRIBUTE
A textual description of the PermissionBundle.
|
static String |
EXTENDEDPERMISSIONS_ATTRIBUTE
The extended permission levels created by a custom application which
are associated with this PermissionBundle.
|
static String |
NAME_ATTRIBUTE
The name of the PermissionBundle.
|
ACTIVE_ATTRIBUTE, POLICYBUNDLE_ATTRIBUTE, POLICYLISTS_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTE
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session
Modifier | Constructor and Description |
---|---|
protected |
PermissionBundle(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Construct a PermissionBundle object - standard variant.
|
Modifier and Type | Method and Description |
---|---|
protected static PermissionBundle |
constructPermissionBundle(LibrarySession sess,
S_LibraryObjectData data)
Construct a permission bundle object from data corresponding to
it.
|
protected static Vector |
constructPermissionBundleVector(LibrarySession sess,
Vector vector)
Construct a vector of permission bundles from a vector of
data corresponding to them.
|
static PermissionBundle[] |
findAll(LibrarySession session)
Returns the set of defined PermissionBundles.
|
static PermissionBundle |
findByName(LibrarySession session,
String name)
Returns the a PermissionBundle matching the
specified name.
|
AccessLevel |
getAccessLevel()
Returns the access level represented by this ACE
|
static AccessLevel |
getAccessLevel(PermissionBundle[] pbs)
Returns the access level represented by the set of specified
PermissionBundles.
|
String |
getDescription()
Returns description of this object
|
static LibraryObjectLookupCache |
getLibraryObjectLookupCache(LibrarySessionInterface session)
Returns the LibraryObjectLookupCache used by find
PermissionBundle instances by name.
|
boolean |
hasNameAttribute()
Override to return true for any PublicObject, indicating
that the instance has a NAME attribute.
|
void |
setAccessLevel(AccessLevel al)
Sets the access level.
|
void |
setDescription(String description)
Update the description of this object.
|
protected static PermissionBundle |
vectorPermissionBundleElement(Vector vector,
int index)
Returns a particular PermissionBundle from a vector, based on the
index supplied.
|
protected static PermissionBundle[] |
vectorToPermissionBundleArray(Vector vector)
Returns an array of PermissionBundle objects from a
vector of PermissionBundle objects.
|
addCategory, constructSystemObject, constructSystemObjectVector, free, freeCategories, getCategories, getCategories, getCategories, getCategories, getPolicyBundle, getPolicyLists, handleCreate, hasPropertyBundleAttribute, isActive, postCreate, postUpdate, preCreate, preUpdate, putPolicy, removeAllPolicies, removePolicy, removePolicy, setActive, setPolicyBundle, setPolicyLists
added, addSimpleProperty, addSimpleProperty, applyProperties, auditCreated, auditUpdated, canPurge, checkIfPropertyBundleSupported, checkRequiredAttributeSet, clearCopyContext, clearFreeContext, clearUpdateContext, compareTo, constructIdArray, constructIdArray, constructLibraryObject, constructLibraryObjectVector, createDedicatedPropertyBundle, createInstance, deriveDomainUniqueName, dispose, equals, equals, free, freeAll, get, getAttribute, getAttributeByUpperCaseName, getAttributes, getAttributesByUpperCaseNames, getAuditDomainContext, getAuditEventFolderContext, getClassId, getClassname, getClassName, getClassObject, getCommonName, getCommonNameAndClass, getCopyContext, getCreateContext, getData, getDefinition, getDefinitionForSimplePropertyUpdates, getEffectivePolicyListElements, getEventualAttributeByUpperCaseName, getFreeContext, getId, getLabel, getName, getObjectReferenceAttribute, getOperationActionSpecificationContext, getPropertyBundle, getPropertyValue, getPublicObjectAttribute, getResourceString, getResourceString, getSchemaObjectAttribute, getSession, getSessionInterface, getSharedStateFactory, getSimpleObjectAttribute, getSimpleProperties, getSimpleProperty, getSimplePropertyValue, getStringIdentifier, getSystemObjectAttribute, getTraceLogger, getUpdateContext, handleAdminModeChange, handleEvent, handleFree, handleUpdate, hashCode, invalidateState, invokeOperation, invokeOperation, invokeServerMethod, isConnected, isCoreEventPostingEnabled, isInstanceOf, isPersistent, isTraced, isValidEventType, lockRows, lookupInstanceLabel, performPostCreateExtensions, performPostFreeExtensions, performPostUpdateExtensions, performPreCreateExtensions, performPreFreeExtensions, performPreUpdateExtensions, postEvent, postEvent, postFree, preFree, prePostAuditEvent, putProperty, putProperty, removeAllProperties, removeAllSimpleProperties, removeAllSimpleProperties, removed, removeProperty, removeSimpleProperty, removeSimpleProperty, renderAsRandomAccessContent, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, setAttributes, setCopyContext, setFreeContext, setId, setName, setPropertyBundle, setPropertyValue, setUpdateContext, toString, trace, trustHandleCreate, trustHandleCreateAsAdmin, trustHandleFree, trustHandleFreeAsAdmin, trustHandleUpdate, trustHandleUpdateAsAdmin, update, updateAndExposeDefinition, validatePropertyValues, vectorLibraryObjectElement, vectorToLibraryObjectArray, verifyAdministrationMode, verifyConnected, verifyPersistent, verifySystemUserAccess, verifyTargetObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAttributeByUpperCaseName, getClassId, getId, getSessionInterface
getTraceLogger, isTraced, trace
public static final String CLASS_NAME
public static final String NAME_ATTRIBUTE
public static final String DESCRIPTION_ATTRIBUTE
public static final String ACCESSLEVEL_ATTRIBUTE
public static final String EXTENDEDPERMISSIONS_ATTRIBUTE
protected PermissionBundle(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session
- the sessionid
- the idclassId
- the class iddata
- the Policy dataIfsException
- if the operation failspublic boolean hasNameAttribute() throws IfsException
hasNameAttribute
in class LibraryObject
IfsException
- if operation fails.public String getDescription() throws IfsException
IfsException
- if operation fails.public void setDescription(String description) throws IfsException
description
- New descriptionIfsException
- if operation fails.public AccessLevel getAccessLevel() throws IfsException
IfsException
- if operation fails.public void setAccessLevel(AccessLevel al) throws IfsException
al
- the desired access level fort his PermissionBundleIfsException
- if operation fails.public static AccessLevel getAccessLevel(PermissionBundle[] pbs) throws IfsException
pbs
- the specified PermissionBundlesIfsException
- if operation fails.public static LibraryObjectLookupCache getLibraryObjectLookupCache(LibrarySessionInterface session) throws IfsException
session
- the session contextIfsException
- if the operation fails.public static PermissionBundle[] findAll(LibrarySession session) throws IfsException
The instances will be sorted by name.
session
- the session contextIfsException
- if the operation fails.public static PermissionBundle findByName(LibrarySession session, String name) throws IfsException
session
- the session contextname
- the PermissionBundle nameIfsException
- if the operation fails.protected static Vector constructPermissionBundleVector(LibrarySession sess, Vector vector) throws IfsException
sess
- handle to the current library sessionvector
- vector of data corresponding to the permission bundleIfsException
protected static PermissionBundle constructPermissionBundle(LibrarySession sess, S_LibraryObjectData data) throws IfsException
sess
- handle to the current library sessiondata
- data corresponding to the object being constructedIfsException
- if the operation failsprotected static PermissionBundle[] vectorToPermissionBundleArray(Vector vector)
vector
- source vectorprotected static PermissionBundle vectorPermissionBundleElement(Vector vector, int index)
vector
- source vectorindex
- integer index to the object in the vectorCopyright © 2023. All rights reserved.