public class CoreExtendedLockManager extends CoreLockManager implements ExtendedLockManager
ExtendedLockManager
Constructor and Description |
---|
CoreExtendedLockManager()
Constructor.
|
CoreExtendedLockManager(FdkSession session) |
Modifier and Type | Method and Description |
---|---|
Item |
acquireDavLock(long id,
NamedValue[] attributes)
Acquires a DAV lock on the given Item.
|
Item |
acquireNullOrDavLock(long id,
String name,
NamedValue[] attributes)
Acquires either a Null Resource Lock or a DAV lock on the given Item
name.
|
protected FdkSessionImpl |
getConnectedSession()
Return the web service session.
|
protected boolean |
isWebServiceCall()
Returns
true if the current call was made from a web services
client. |
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.
|
Item |
refreshDavLock(long id,
NamedValue[] attributes)
Refreshes a DAV lock.
|
void |
releaseDavLock(long id)
Releases a DAV on the given Item.
|
void |
releaseNullResourceLock(long id,
String name)
Releases a Null Resource Lock on the given Item
name.
|
acquireManualLocks, listLockedDocuments, releaseManualLocks
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acquireManualLocks, listLockedDocuments, releaseManualLocks
public CoreExtendedLockManager()
public CoreExtendedLockManager(FdkSession session)
public Item acquireDavLock(long id, NamedValue[] attributes) throws FdkException
ExtendedLockManager
acquireDavLock
in interface ExtendedLockManager
id
- the ID of the Item to lock.attributes
- DAV lock attributes:
FdkException
- if the operation fails.public void releaseDavLock(long id) throws FdkException
ExtendedLockManager
releaseDavLock
in interface ExtendedLockManager
id
- the ID of the object to unlock.FdkException
- if the operation fails.public Item refreshDavLock(long id, NamedValue[] attributes) throws FdkException
ExtendedLockManager
refreshDavLock
in interface ExtendedLockManager
id
- the ID of the object on which to refresh the lock.attributes
- DAV lock attributes:
FdkException
- if the operation fails.public Item acquireNullOrDavLock(long id, String name, NamedValue[] attributes) throws FdkException
ExtendedLockManager
acquireNullOrDavLock
in interface ExtendedLockManager
id
- the ID of the Folder containing the Item to lock.name
- the name of the Item to lock.attributes
- DAV lock attributes:
FdkException
- if the operation fails.public void releaseNullResourceLock(long id, String name) throws FdkException
ExtendedLockManager
releaseNullResourceLock
in interface ExtendedLockManager
id
- the ID of the Folder containing the Item
holding the lockname
- the name of the Item on which the lock appliesFdkException
- if the operation fails.protected 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.