public interface LibrarySessionInterface extends Traceable
This is used to make certain classes in the common package useable by both the beans and server packages.
Modifier and Type | Field and Description |
---|---|
static String |
ALWAYS_CACHE_SELECTED_DATA_PROPERTY
Session property name for the boolean setting for the indication as to whether
the current session always caches selected data from Selectors.
|
static String |
CLEAR_SHARED_CACHES
Session property name for the boolean setting to indicate whether
the service should clear its shared caches.
|
static String |
DEFAULT_CONTENTQUOTA_PROPERTY
Session property name for the default ContentQuota object
|
static int |
EXECUTIONMODE_ADMINISTRATION
Administration execution mode.
|
static int |
EXECUTIONMODE_DISCOVERYADMINISTRATION
Discovery-administration execution mode.
|
static int |
EXECUTIONMODE_INSTALLADMINISTRATION
Install administration execution mode.
|
static int |
EXECUTIONMODE_PREEXISTING
Pre-existing execution mode.
|
static int |
EXECUTIONMODE_SYSTEMADMINISTRATION
System administration execution mode.
|
static int |
EXECUTIONMODE_USER
User execution mode.
|
static String |
FOLDER_PATH_DELIMITER_PROPERTY
Session property name for the Folder-Path delimiter
|
static String |
PREVENT_SESSION_TIMEOUTS_PROPERTY
Session property name for the boolean setting for bypassing session timeouts
|
static String |
UPGRADE_BEHAVIOR_PROPERTY
Session property name for the boolean setting for behaving as if an
upgrade was in progress.
|
Modifier and Type | Method and Description |
---|---|
AttributeValue |
getArrayTypeAttributeValue(AttributeValueArray av,
long objectId,
long attributeId,
Long priClassId,
int count)
Gets a fully resolved array-type AttributeValue with non-transient
elements that is a copy of the specified array-type AttributeValue.
|
String |
getAttributeSortName(String classname,
String attributename)
return the Database object name that corresponds to
an Attribute of a specified ClassObject.
|
Collection |
getClassAccessControlListCollection()
Gets a reference to the ClassAccessControlList collection.
|
Collection |
getClassDomainCollection()
Gets a reference to the ClassDomain collection.
|
Collection |
getClassObjectCollection()
Gets a reference to the ClassObject collection.
|
AttributeValue |
getClassObjectValueByName(String name)
Gets an AttributeValue representation of a CLASSOBJECT that has the
specified name.
|
DirectoryObjectInterface |
getDirectoryObjectInterface(Long id)
Gets the DirectoryObjectInterface for the specified id.
|
DirectoryObjectInterface[] |
getDirectoryObjectInterfaces(Long[] ids)
Gets the DirectoryObjectInterfaces for the specified ids.
|
Collection |
getDirectoryUserCollection()
Gets a reference to the DirectoryUser collection.
|
Collection |
getExtendedPermissionCollection()
Gets a reference to the ExtendedPermission collection.
|
Collection |
getExtendedUserProfileCollection()
Gets a reference to the ExtendedUserProfile collection.
|
Collection |
getFormatCollection()
Gets a reference to the Format collection.
|
Collection |
getFormatExtensionCollection()
Gets a reference to the FormatExtension collection.
|
Localizer |
getLocalizer()
Gets the localizer of this session.
|
Long |
getLowestCommonClassObjectIdAncestor(SimpleObjectInterface[] mos)
Gets the lowest common ClassObject ancestor for the specified array
of SimpleObjectInterface, excluding tableless ClassObjects.
|
AttributeValue |
getMapTypeAttributeValue(int dataType,
long objectId,
long attrIdVal,
int count)
Gets a fully resolved map-type AttributeValue with non-transient
elements that is a copy of the specified map-type AttributeValue.
|
Collection |
getMediaCollection()
Gets a reference to the Media collection.
|
Collection |
getPermissionBundleCollection()
Gets a reference to the PermissionBundle collection.
|
Collection |
getPolicyCollection()
Gets a reference to the Policy collection.
|
PublicObjectInterface |
getPublicObjectInterface(Long id)
Gets the PublicObjectInterface for the specified id.
|
PublicObjectInterface[] |
getPublicObjectInterfaces(Long[] ids)
Gets the PublicObjectInterfaces for the specified ids.
|
SchemaObjectInterface |
getSchemaObjectInterface(Long id)
Gets the SchemaObjectInterface for the specified id.
|
SchemaObjectInterface[] |
getSchemaObjectInterfaces(Long[] ids)
Gets the SchemaObjectInterfaces for the specified ids.
|
SimpleObjectInterface |
getSimpleObjectInterface(Long id,
Long classId)
Gets the SimpleObjectInterface for the specified id.
|
SimpleObjectInterface[] |
getSimpleObjectInterfaces(Long[] ids)
Gets the SimpleObjectInterfaces for the specified ids.
|
SimpleObjectInterface[] |
getSimpleObjectInterfaces(Long[] ids,
Long primaryClassId)
Gets the SimpleObjectInterfaces for the specified ids.
|
Collection |
getSystemAccessControlListCollection()
Gets a reference to the SystemAccessControlList collection.
|
SystemObjectInterface |
getSystemObjectInterface(Long id)
Gets the SystemObjectInterface for the specified id.
|
SystemObjectInterface[] |
getSystemObjectInterfaces(Long[] ids)
Gets the SystemObjectInterfaces for the specified ids.
|
Collection |
getValueDefaultCollection()
Gets a reference to the ValueDefault collection.
|
Collection |
getValueDomainCollection()
Gets a reference to the ValueDomain collection.
|
getTraceLogger, isTraced, trace
static final String FOLDER_PATH_DELIMITER_PROPERTY
static final String DEFAULT_CONTENTQUOTA_PROPERTY
static final String PREVENT_SESSION_TIMEOUTS_PROPERTY
static final String ALWAYS_CACHE_SELECTED_DATA_PROPERTY
static final String UPGRADE_BEHAVIOR_PROPERTY
When this behavior is set to true, operations performed on behalf of that session differ from those occuring on normal sessions in the following ways:
static final String CLEAR_SHARED_CACHES
When this behavior is set to true, the S_LibraryService will perform a one-time reset of its internal shared caches.
static final int EXECUTIONMODE_PREEXISTING
An execution mode used internally by the session to indicate that the session's execution mode is not temporarily overridden by a more priviledged mode (for example, in the execution of a policy-driven operation).
static final int EXECUTIONMODE_USER
The session executes in a normal user mode, meaning all operations are controlled by ACLs and other default authorization rules.
static final int EXECUTIONMODE_DISCOVERYADMINISTRATION
The session executes in a privileged mode, in which any PublicObject can be "discovered", regardless of its ACL or owner.
static final int EXECUTIONMODE_ADMINISTRATION
The session executes in a privileged "administration" mode. This allows operations that would normally be prevented for regular user sessions.
static final int EXECUTIONMODE_SYSTEMADMINISTRATION
The session executes in a privileged " system administration" mode. This allows operations that would normally be prevented for regular user sessions.
static final int EXECUTIONMODE_INSTALLADMINISTRATION
The session executes in the most privileged mode, to allow certain operations that are performed during installation or upgrade.
Localizer getLocalizer() throws IfsException
IfsException
- if the operation failsAttributeValue getClassObjectValueByName(String name) throws IfsException
IfsException
- if the operation failsCollection getClassObjectCollection() throws IfsException
IfsException
- if the operation failsCollection getClassDomainCollection() throws IfsException
IfsException
- if the operation failsCollection getValueDefaultCollection() throws IfsException
IfsException
- if the operation failsCollection getValueDomainCollection() throws IfsException
IfsException
- if the operation failsCollection getExtendedUserProfileCollection() throws IfsException
IfsException
- if the operation failsCollection getFormatCollection() throws IfsException
IfsException
- if the operation failsCollection getFormatExtensionCollection() throws IfsException
Unlike the FormatCollection, this collection is organizaed by EXTENSION, not NAME.
IfsException
- if the operation failsCollection getMediaCollection() throws IfsException
IfsException
- if the operation failsCollection getSystemAccessControlListCollection() throws IfsException
IfsException
- if the operation failsCollection getClassAccessControlListCollection() throws IfsException
IfsException
- if the operation failsCollection getDirectoryUserCollection() throws IfsException
IfsException
- if the operation failsCollection getExtendedPermissionCollection() throws IfsException
IfsException
- if the operation failsCollection getPermissionBundleCollection() throws IfsException
IfsException
- if the operation failsCollection getPolicyCollection() throws IfsException
IfsException
- if the operation failsDirectoryObjectInterface getDirectoryObjectInterface(Long id) throws IfsException
id
- the id of interestIfsException
- if the operation failsDirectoryObjectInterface[] getDirectoryObjectInterfaces(Long[] ids) throws IfsException
ids
- the ids of interestIfsException
- if the operation failsPublicObjectInterface getPublicObjectInterface(Long id) throws IfsException
id
- the id of interestIfsException
- if the operation failsPublicObjectInterface[] getPublicObjectInterfaces(Long[] ids) throws IfsException
ids
- the ids of interestIfsException
- if the operation failsSchemaObjectInterface getSchemaObjectInterface(Long id) throws IfsException
id
- the id of interestIfsException
- if the operation failsSchemaObjectInterface[] getSchemaObjectInterfaces(Long[] ids) throws IfsException
ids
- the ids of interestIfsException
- if the operation failsSystemObjectInterface getSystemObjectInterface(Long id) throws IfsException
id
- the id of interestIfsException
- if the operation failsSystemObjectInterface[] getSystemObjectInterfaces(Long[] ids) throws IfsException
ids
- the ids of interestIfsException
- if the operation failsSimpleObjectInterface getSimpleObjectInterface(Long id, Long classId) throws IfsException
id
- the id of interestid
- the classId of interestIfsException
- if the operation failsSimpleObjectInterface[] getSimpleObjectInterfaces(Long[] ids) throws IfsException
ids
- the ids of interestIfsException
- if the operation failsSimpleObjectInterface[] getSimpleObjectInterfaces(Long[] ids, Long primaryClassId) throws IfsException
ids
- the ids of interestprimaryClassId
- the primary class IDIfsException
- if the operation failsString getAttributeSortName(String classname, String attributename) throws IfsException
classname
- the name of the ClassObjectattributename
- the name of the AttributeIfsException
- if the operation failsAttributeValue getArrayTypeAttributeValue(AttributeValueArray av, long objectId, long attributeId, Long priClassId, int count) throws IfsException
For internal use only. Do not use this method.
The invoker of this method sucks the elements from the returned object, plugs them into the corresponding cached AttributeValue, and then discards the returned object.
av
- the AttributeValue of interestobjectId
- The LibraryObject ID.attributeId
- The Attribute id.priClassId
- The primary Class IDcount
- the number of elements in the AttributeValueIfsException
- if the operation failsAttributeValue getMapTypeAttributeValue(int dataType, long objectId, long attrIdVal, int count) throws IfsException
For internal use only. Do not use this method.
The invoker of this method sucks the elements from the returned object, plugs them into the corresponding cached AttributeValue, and then discards the returned object.
dataType
- the AttributeValue's data typeobjectId
- the ID of the LibraryObject for which
this AttributeValue represents the value
of one of its AttributesattrIdVal
- the ID value of the Attributecount
- the number of elements in the AttributeValueIfsException
- if the operation failsLong getLowestCommonClassObjectIdAncestor(SimpleObjectInterface[] mos) throws IfsException
The class ID returned is null if all objects in the specified array are null. The class ID returned is zero if there is no common ancestor for the specified objects (at least one of which is non-null) that is non-tableless.
mos
- the SimpleObjectsIfsException
- if the operation failsCopyright © 2023. All rights reserved.