com.sap.netweaver.coll.attachment.command

Class AttachmentCreateResourceCommand

java.lang.Object
  extended by com.sap.netweaver.coll.attachment.command.AttachmentCreateResourceCommand

public class AttachmentCreateResourceCommand
extends Object


Constructor Summary
AttachmentCreateResourceCommand()
           
 
Method Summary
 boolean canExecute()
          Check if command can be executed
 boolean execute()
          Execute the command
 String getContent()
          Get the content of new resouce
 IResource getCreatedRes()
          Get the created resource
 Exception getLastException()
          Get the last exception that occurred during command execution
 AttachmentType getLinkType()
          Get link type
 String getNewName()
          Get name of new resource
 IPropertyMap getProperties()
          Get properties on new resource
 IResource getResource()
          Get the target collection
protected  boolean isAccessibleImpl()
           
protected  boolean isSupportedImpl()
           
 void setContent(String input)
          Set the content of the new resource
 void setCreatedRes(IResource input)
          Set the created resource
 void setLinkType(AttachmentType linkType)
          Set the link type
 void setNewName(String newName)
          Set name of new resource
 void setProperties(IPropertyMap properties)
          Set properties on new resource
 void setResource(IResource input)
          Set the target collection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentCreateResourceCommand

public AttachmentCreateResourceCommand()
Method Detail

setProperties

public void setProperties(IPropertyMap properties)
Set properties on new resource

Parameters:
properties -

getProperties

public IPropertyMap getProperties()
Get properties on new resource

Returns:
the properties on new resource

getNewName

public String getNewName()
Get name of new resource

Returns:
the name of new resource

setNewName

public void setNewName(String newName)
Set name of new resource

Parameters:
newName -

getLinkType

public AttachmentType getLinkType()
Get link type

Returns:
the link type of the new resource

setLinkType

public void setLinkType(AttachmentType linkType)
Set the link type

Parameters:
linkType -

getContent

public String getContent()
Get the content of new resouce

Returns:
the content of the new resource

setContent

public void setContent(String input)
Set the content of the new resource

Parameters:
input -

getResource

public IResource getResource()
Get the target collection

Returns:
the new resource

setResource

public void setResource(IResource input)
Set the target collection

Parameters:
input -

getCreatedRes

public IResource getCreatedRes()
Get the created resource

Returns:
the created resource

setCreatedRes

public void setCreatedRes(IResource input)
Set the created resource

Parameters:
input -

getLastException

public Exception getLastException()
Get the last exception that occurred during command execution

Returns:
he last exception that occurred during command execution

execute

public boolean execute()
Execute the command

Returns:
true if command executed successfully

canExecute

public boolean canExecute()
                   throws WcmException
Check if command can be executed

Returns:
true if command can be executed
Throws:
WcmException

isAccessibleImpl

protected boolean isAccessibleImpl()
                            throws WcmException
Throws:
WcmException

isSupportedImpl

protected boolean isSupportedImpl()
Access Rights

This class can be accessed from:


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 2014 SAP AG Complete Copyright Notice