com.sapportals.wcm.command

Class CreatePropertyCommand

java.lang.Object
  extended by com.sapportals.wcm.command.Command
      extended by com.sapportals.wcm.command.ResourceCommand
          extended by com.sapportals.wcm.command.CreatePropertyCommand

public class CreatePropertyCommand
extends ResourceCommand

Helper class to participate from command error handling.


Field Summary
 
Fields inherited from class com.sapportals.wcm.command.ResourceCommand
MSG_ACCESSDENIED, MSG_AUTHORIZATIONFAILED, MSG_AUTHORIZATIONREQUIRED, MSG_CHILDRESOURCELOCKED, MSG_DATEVALIDATIONERROR, MSG_DOUBLENAMEVALIDATIONERROR, MSG_INVALID_CHANGED_TARGET, MSG_INVALID_TARGET, MSG_INVALIDNAME, MSG_INVALIDRECIPIENT, MSG_IOERROR, MSG_IPN, MSG_IPN_2, MSG_NAMEALREADYEXISTS, MSG_NAMETOOLONG, MSG_NOACCESSFORRESOURCE, MSG_NORECIPIENTGIVEN, MSG_OPERATIONNOTSUPPORTED, MSG_PARENTFOLDERLOCKED, MSG_RESOURCECHECKEDOUT, MSG_RESOURCELOCKED, MSG_RESOURCENOTCHECKEDOUT, MSG_RESOURCEREADONLY, MSG_SYSTEMERROR, MSG_UNKNOWNERROR, MSG_VALIDATIONERROR
 
Constructor Summary
CreatePropertyCommand()
           
 
Method Summary
protected  boolean canExecuteImpl()
          Get the ExecuteImpl attribute of the CreatePropertyCommand object.
protected  void executeResourceImpl()
          Re-Implementation of resource command execute method.
 String getName()
          Get the Name attribute of the CreatePropertyCommand object.
 String getNamespace()
          Get the Namespace attribute of the CreatePropertyCommand object.
 IProperty getProperty()
          Get the Property attribute of the CreatePropertyCommand object.
 IPropertyDef getPropertyDef()
          Get the Property attribute of the CreatePropertyCommand object.
 IResourceContext getResourceContext()
          Get the resourceContext attribute of the CreatePropertyCommand object.
 String getValue()
          Get the Value attribute of the CreatePropertyCommand object.
 List getValues()
          Get the Values attribute of the CreatePropertyCommand object.
protected  boolean isAccessibleImpl()
          Get the AccessibleImpl attribute of the CreatePropertyCommand object.
protected  boolean isSupportedImpl()
          Get the SupportedImpl attribute of the CreatePropertyCommand object.
 void setName(String name)
          Set the Name attribute of the CreatePropertyCommand object.
 void setNamespace(String namespace)
          Set the Namespace attribute of the CreatePropertyCommand object.
 void setPropertyDef(IPropertyDef propertyDef)
          Set the Values attribute of the CreatePropertyCommand object.
 void setResourceContext(IResourceContext resourceContext)
          Set the resourceContext attribute of the CreatePropertyCommand object.
 void setValue(String value)
          Set the Value attribute of the CreatePropertyCommand object.
 void setValues(List values)
          Set the Values attribute of the CreatePropertyCommand object.
protected  void validateResourceImpl()
          Re-Implementation of resource command validate method.
 
Methods inherited from class com.sapportals.wcm.command.ResourceCommand
executeImpl, getDuplicateName, getResource, isLockedByMeAndSupported, isNotLockedByOtherUser, isNotVersionedOrCheckedOutByMe, isResourceLockedByOther, setResource, validateImpl
 
Methods inherited from class com.sapportals.wcm.command.Command
canExecute, canExecuteDefaultImpl, execute, failed, getMessage, getMessageKey, getRootCauseException, isAccessible, isSupported, isSystemError, setMessage, setMessageKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreatePropertyCommand

public CreatePropertyCommand()
Method Detail

setResourceContext

public void setResourceContext(IResourceContext resourceContext)
Set the resourceContext attribute of the CreatePropertyCommand object.


getResourceContext

public IResourceContext getResourceContext()
Get the resourceContext attribute of the CreatePropertyCommand object.


setNamespace

public void setNamespace(String namespace)
Set the Namespace attribute of the CreatePropertyCommand object.

Parameters:
namespace - The new Namespace value

setName

public void setName(String name)
Set the Name attribute of the CreatePropertyCommand object.

Parameters:
name - The new Name value

setValue

public void setValue(String value)
Set the Value attribute of the CreatePropertyCommand object.

Parameters:
value - The new Value value

setValues

public void setValues(List values)
Set the Values attribute of the CreatePropertyCommand object.

Parameters:
values - The new values value

setPropertyDef

public void setPropertyDef(IPropertyDef propertyDef)
Set the Values attribute of the CreatePropertyCommand object.

Parameters:
propertyDef - The new propertyDef value

getNamespace

public String getNamespace()
Get the Namespace attribute of the CreatePropertyCommand object.

Returns:
The Namespace value

getName

public String getName()
Get the Name attribute of the CreatePropertyCommand object.

Returns:
The Name value

getValue

public String getValue()
Get the Value attribute of the CreatePropertyCommand object.

Returns:
The Value value

getProperty

public IProperty getProperty()
Get the Property attribute of the CreatePropertyCommand object.

Returns:
The Property value

getValues

public List getValues()
Get the Values attribute of the CreatePropertyCommand object.

Returns:
The Value value

getPropertyDef

public IPropertyDef getPropertyDef()
Get the Property attribute of the CreatePropertyCommand object.

Returns:
The Property value

isAccessibleImpl

protected boolean isAccessibleImpl()
                            throws WcmException
Get the AccessibleImpl attribute of the CreatePropertyCommand object.

Specified by:
isAccessibleImpl in class Command
Returns:
The AccessibleImpl value
Throws:
WcmException - Exception raised in failure situation

isSupportedImpl

protected boolean isSupportedImpl()
                           throws WcmException
Get the SupportedImpl attribute of the CreatePropertyCommand object.

Specified by:
isSupportedImpl in class Command
Returns:
The SupportedImpl value
Throws:
WcmException - Exception raised in failure situation

canExecuteImpl

protected boolean canExecuteImpl()
                          throws WcmException
Get the ExecuteImpl attribute of the CreatePropertyCommand object.

Specified by:
canExecuteImpl in class Command
Returns:
The ExecuteImpl value
Throws:
WcmException - Exception raised in failure situation

executeResourceImpl

protected void executeResourceImpl()
                            throws Exception
Re-Implementation of resource command execute method.

Specified by:
executeResourceImpl in class ResourceCommand
Throws:
Exception

validateResourceImpl

protected void validateResourceImpl()
                             throws ValidationException
Re-Implementation of resource command validate method.

Specified by:
validateResourceImpl in class ResourceCommand
Throws:
ValidationException - Only this kind of exceptions are allowed
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/nonwduideprecated api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice