public class CoreTrashManager extends TrashManagerImpl
Constructor and Description |
---|
CoreTrashManager()
Constructor for webservices.
|
CoreTrashManager(FdkSession session)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
emptyTrash(long trashId)
Empties the given TrashFolder.
|
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.
|
void |
setTrashConfiguration(long trashId,
NamedValue[] config)
Sets the TrashFolder configuration.
|
public CoreTrashManager()
public CoreTrashManager(FdkSession session)
public void emptyTrash(long trashId) throws FdkException
TrashManager
trashId
- the ID of the TrashFolder to empty.FdkException
- if the operation fails.public void setTrashConfiguration(long trashId, NamedValue[] config) throws FdkException
TrashManager
trashId
- the TrashFolder for which to set the configurationconfig
- the TrashFolder configuration options to set;
must include one or more of the following Attributes:
FdkException
- 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.