public abstract class CoreLockManager extends ExtendedLockManagerImpl
LockManager
Constructor and Description |
---|
CoreLockManager()
Constructor.
|
CoreLockManager(FdkSession session) |
Modifier and Type | Method and Description |
---|---|
Item[] |
acquireManualLocks(long[] ids,
NamedValueSet[] attributes)
Acquires manual locks on the given Items.
|
protected FdkSessionImpl |
getConnectedSession()
Return the web service session.
|
protected boolean |
isWebServiceCall()
Returns
true if the current call was made from a web services
client. |
Item[] |
listLockedDocuments(int[] locks,
NamedValue[] options,
AttributeRequest[] attributes)
Returns a list of Documents locked by a user.
|
protected NamedValue[] |
login(FdkCredential c,
NamedValue[] options,
AttributeRequest[] userAttributes)
Internal login method used by web services login managers.
|
void |
referenceTypes(TypeReference ref)
Dummy web service method to create a reference to data types used
in the web services to insure that they are defined in the WSDL.
|
void |
releaseManualLocks(long[] ids)
Releases manual locks on the given Items.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acquireDavLock, acquireNullOrDavLock, refreshDavLock, releaseDavLock, releaseNullResourceLock
public CoreLockManager()
public CoreLockManager(FdkSession session)
public Item[] acquireManualLocks(long[] ids, NamedValueSet[] attributes) throws FdkException
LockManager
ids
- the IDs of the Items to lock.attributes
- optional attributes.FdkException
- if the operation fails.public void releaseManualLocks(long[] ids) throws FdkException
LockManager
ids
- the IDs of the Items to unlock.FdkException
- if the operation fails.public Item[] listLockedDocuments(int[] locks, NamedValue[] options, AttributeRequest[] attributes) throws FdkException
LockManager
locks
- The types of locks to search for. Valid values are
options
- Optional restrictions/sort options. Valid Attributes:
LockEntry
may be
specified for sorting. If an attribute name is specified with
no direction, ascending is the default. Attribute names must
be valid attributes in Attributes
attributes
- Attributes to be populated on the returned LOCK itemsFdkException
- If the operation failsprotected final boolean isWebServiceCall()
true
if the current call was made from a web services
client. This check can be made by any subclasses in order to determine
functionality and restrictions based on the originating call. This
feature should be used lightly and only where really necessary as
this is not an idea way of implementing business logic.public void referenceTypes(TypeReference ref)
protected final NamedValue[] login(FdkCredential c, NamedValue[] options, AttributeRequest[] userAttributes) throws FdkException
FdkException
protected final FdkSessionImpl getConnectedSession() throws FdkException
FdkException
Copyright © 2023. All rights reserved.