public class SystemLockObject extends TieLockObject
This LockObject subclass is unique by name and can only be created by administrators. They can be queried by name through its collection on LibrarySession.
Out of the box, the repository will provide two instances of this class "SystemHardLock" and "SystemSoftLock" to represent a hard and soft lock respectively. For the details on HardLock and SoftLock state, refer to the documentation for the LockObject class. These objects can be queried by name from the domain property bundle. The names of the properties are defined as static constants in LibraryConstants.java.
To obtain a hard or soft lock on a PublicObject, use the
po.lock(LockObject lo) method passing in the SystemSoftLock or
SystemHardLock object as a parameter.
Since this is a systemobject, it can only be updated and created by
Administrators.
LockObject| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_NAME
This class name for this class.
|
static String |
NAME_ATTRIBUTE
A system-set attribute used to ensure each SystemLockObject has a
unique name.
|
LOCKEDFORSESSION_ATTRIBUTE, LOCKENTRY_ATTRIBUTE, LOCKHOLDER_ATTRIBUTE, LOCKSTATE_ATTRIBUTE, LOCKSTATE_HARDLOCK, LOCKSTATE_SESSIONLOCK, LOCKSTATE_SOFTLOCK, LOCKSTATE_UNLOCK, LOCKSTATE_USERLOCK, LOCKTIMEOUT_ATTRIBUTEACTIVE_ATTRIBUTE, POLICYBUNDLE_ATTRIBUTE, POLICYLISTS_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTEDOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session| Modifier | Constructor and Description |
|---|---|
protected |
SystemLockObject(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Constructs a SystemLockObject object - standard variant.
|
| Modifier and Type | Method and Description |
|---|---|
static SystemLockObject[] |
findAll(LibrarySession session)
Returns the set of defined SystemLockObjects.
|
static SystemLockObject |
findByName(LibrarySession session,
String name)
Returns the a SystemLockObject matching the
specified name.
|
static LibraryObjectLookupCache |
getLibraryObjectLookupCache(LibrarySessionInterface session)
Returns the LibraryObjectLookupCache used by find
SystemLockObject instances by name.
|
LockObject |
getShareableLockObject()
Returns a LockObject that can be used to lock another PublicObject.
|
boolean |
hasNameAttribute()
Override to return true, indicating
that this class has a NAME attribute.
|
void |
setLockHolder(DirectoryUser du)
set the lockholder.
|
createEquivalentLockEntry, getClonedLockObject, getExpiredTimedLocks, getLockedForSession, getLockEntry, getLockHolder, getLockState, getLockStateLabel, getLockTimeOut, getReferringPublicObjects, getReferringPublicObjects, getShareableLockObject, isLockedForSession, isLockedForSessionByCurrentSession, isShared, release, setLockState, setLockTimeOut, toLockStateLabel, toLockStateLabel, toLockStateLabel, toString, vectorToLockObjectArrayaddCategory, constructSystemObject, constructSystemObjectVector, free, freeCategories, getCategories, getCategories, getCategories, getCategories, getPolicyBundle, getPolicyLists, handleCreate, hasPropertyBundleAttribute, isActive, postCreate, postUpdate, preCreate, preUpdate, putPolicy, removeAllPolicies, removePolicy, removePolicy, setActive, setPolicyBundle, setPolicyListsadded, 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, trace, trustHandleCreate, trustHandleCreateAsAdmin, trustHandleFree, trustHandleFreeAsAdmin, trustHandleUpdate, trustHandleUpdateAsAdmin, update, updateAndExposeDefinition, validatePropertyValues, vectorLibraryObjectElement, vectorToLibraryObjectArray, verifyAdministrationMode, verifyConnected, verifyPersistent, verifySystemUserAccess, verifyTargetObjectclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAttributeByUpperCaseName, getClassId, getId, getSessionInterfacegetTraceLogger, isTraced, tracepublic static final String CLASS_NAME
public static final String NAME_ATTRIBUTE
protected SystemLockObject(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session - current LibrarySessionid - object idclassId - class iddata - data componentsIfsException - if the operation failspublic boolean hasNameAttribute()
throws IfsException
hasNameAttribute in class LibraryObjectIfsException - if operation fails.public void setLockHolder(DirectoryUser du) throws IfsException
du - the lockholderIfsException - if the operation failspublic LockObject getShareableLockObject() throws IfsException
Creates a clone of the target object unless it is a SystemLockObject, or if it is not yet assocated with any PublicObject.
IfsException - if operation fails.public static LibraryObjectLookupCache getLibraryObjectLookupCache(LibrarySessionInterface session) throws IfsException
session - the session contextIfsException - if the operation fails.public static SystemLockObject[] findAll(LibrarySession session) throws IfsException
The instances will be sorted by name.
session - the session contextIfsException - if the operation fails.public static SystemLockObject findByName(LibrarySession session, String name) throws IfsException
session - the session contextname - the SystemLockObject nameIfsException - if the operation fails.Copyright © 2025. All rights reserved.