public abstract class ResourceCommand extends Command
Copyright 2004 SAP AG
Modifier and Type | Field and Description |
---|---|
static String |
MSG_ACCESSDENIED |
static String |
MSG_AUTHORIZATIONFAILED |
static String |
MSG_AUTHORIZATIONREQUIRED |
static String |
MSG_CHILDRESOURCELOCKED |
static String |
MSG_DATEVALIDATIONERROR |
static String |
MSG_DOUBLENAMEVALIDATIONERROR |
static String |
MSG_INVALID_CHANGED_TARGET |
static String |
MSG_INVALID_TARGET |
static String |
MSG_INVALIDNAME |
static String |
MSG_INVALIDRECIPIENT |
static String |
MSG_IOERROR |
static String |
MSG_IPN |
static String |
MSG_IPN_2 |
static String |
MSG_NAMEALREADYEXISTS |
static String |
MSG_NAMETOOLONG |
static String |
MSG_NOACCESSFORRESOURCE |
static String |
MSG_NORECIPIENTGIVEN |
static String |
MSG_OPERATIONNOTSUPPORTED |
static String |
MSG_PARENTFOLDERLOCKED |
static String |
MSG_RESOURCECHECKEDOUT |
static String |
MSG_RESOURCELOCKED |
static String |
MSG_RESOURCENOTCHECKEDOUT |
static String |
MSG_RESOURCEREADONLY |
static String |
MSG_SYSTEMERROR |
static String |
MSG_UNKNOWNERROR |
static String |
MSG_VALIDATIONERROR |
Constructor and Description |
---|
ResourceCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
executeImpl()
Implements the default error handling of all resource commands.
|
protected abstract void |
executeResourceImpl()
Re-Implementation of resource command execute method.
|
protected String |
getDuplicateName(RID rid) |
IResource |
getResource() |
protected boolean |
isLockedByMeAndSupported() |
protected boolean |
isNotLockedByOtherUser() |
protected boolean |
isNotVersionedOrCheckedOutByMe() |
boolean |
isResourceLockedByOther() |
void |
setResource(IResource resource) |
protected void |
validateImpl()
Implementation of validation which is called before a command is executed.
|
protected abstract void |
validateResourceImpl()
Re-Implementation of resource command validate method.
|
canExecute, canExecuteDefaultImpl, canExecuteImpl, execute, failed, getMessage, getMessageKey, getRootCauseException, isAccessible, isAccessibleImpl, isSupported, isSupportedImpl, isSystemError, setMessage, setMessageKey
public static final String MSG_OPERATIONNOTSUPPORTED
public static final String MSG_AUTHORIZATIONREQUIRED
public static final String MSG_AUTHORIZATIONFAILED
public static final String MSG_ACCESSDENIED
public static final String MSG_RESOURCELOCKED
public static final String MSG_PARENTFOLDERLOCKED
public static final String MSG_CHILDRESOURCELOCKED
public static final String MSG_NAMEALREADYEXISTS
public static final String MSG_UNKNOWNERROR
public static final String MSG_SYSTEMERROR
public static final String MSG_VALIDATIONERROR
public static final String MSG_DATEVALIDATIONERROR
public static final String MSG_INVALIDNAME
public static final String MSG_INVALID_TARGET
public static final String MSG_NAMETOOLONG
public static final String MSG_INVALIDRECIPIENT
public static final String MSG_NORECIPIENTGIVEN
public static final String MSG_RESOURCECHECKEDOUT
public static final String MSG_RESOURCENOTCHECKEDOUT
public static final String MSG_RESOURCEREADONLY
public static final String MSG_DOUBLENAMEVALIDATIONERROR
public static final String MSG_NOACCESSFORRESOURCE
public static final String MSG_IOERROR
public static final String MSG_INVALID_CHANGED_TARGET
public static final String MSG_IPN
public static final String MSG_IPN_2
public IResource getResource()
public void setResource(IResource resource)
protected final void executeImpl() throws Exception
executeImpl
in class Command
Exception
protected boolean isNotLockedByOtherUser() throws WcmException
WcmException
protected boolean isLockedByMeAndSupported() throws WcmException
WcmException
protected boolean isNotVersionedOrCheckedOutByMe() throws WcmException
WcmException
protected abstract void executeResourceImpl() throws Exception
Exception
protected abstract void validateResourceImpl() throws ValidationException
ValidationException
- Only this kind of exceptions are allowedpublic boolean isResourceLockedByOther() throws ResourceException
ResourceException
protected void validateImpl() throws ValidationException
validateImpl
in class Command
ValidationException
protected String getDuplicateName(RID rid) throws ResourceException
ResourceException
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com]
|
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