public interface IWastebasketService extends IRepositoryService
Modifier and Type | Method and Description |
---|---|
boolean |
canRestore(IResource resource)
Indicates if the service is able to restore the given resource,
i.e. if the resource is a link located in a user's global wastebasket
pointing to a resource in that user's local wastebasket.
|
RID |
delete(IResource resource)
Deletes the given resource by storing it in the user's local wastebasket.
|
RID |
getGlobalWastebasketRID(IResource resource)
Returns the RID to a user's global wastebasket.
|
RID |
getGlobalWastebasketRID(IResourceContext context)
Returns the RID to a user's global wastebasket.
|
RID |
getLocalWastebasketRID(IResource resource)
Returns the RID to a user's local wastebasket.
|
boolean |
hasWastebasket(IResource resource)
Indicates if the service is able to move the given resource to the user's
wastebasket with
delete(IResource) . |
RID |
restore(IResource resource,
boolean overwrite)
Restores the given resource to it's original location and
returns the RID of the restored resource.
|
acceptServletCall, getDescription, getDescription, getID, getServiceType
RID getGlobalWastebasketRID(IResource resource) throws WcmException
resource
- No DescriptionWcmException
- No DescriptionRID getGlobalWastebasketRID(IResourceContext context) throws WcmException
context
- No DescriptionWcmException
- No DescriptionRID getLocalWastebasketRID(IResource resource) throws WcmException
resource
- No DescriptionWcmException
- No DescriptionhasWastebasket(IResource)
RID delete(IResource resource) throws WcmException
restore(IResource, boolean)
method
to have the original resource restored.resource
- The resource to be deletednull
, if the resource was deleted permanently.WcmException
- No DescriptionRID restore(IResource resource, boolean overwrite) throws NameAlreadyExistsException, WcmException
resource
- No Descriptionoverwrite
- No DescriptionNameAlreadyExistsException
- It there exists a resource with the original RID
and parameter overwrite
is false
.IllegalArgumentException
- if the given resource is not located in
a user's global wastebasketWcmException
boolean canRestore(IResource resource) throws WcmException
restore(IResource, boolean)
to succeed. But it might be used to
decide if a UI command should be rendered or not.resource
- No DescriptionWcmException
- No Descriptionboolean hasWastebasket(IResource resource) throws WcmException
delete(IResource)
.resource
- No DescriptionWcmException
- No DescriptionAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice