com.sap.netweaver.coll.attachment.command

Class AttachmentCreateLinkCommand

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

public class AttachmentCreateLinkCommand
extends Object

Command to create link to a resource


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

Constructor Detail

AttachmentCreateLinkCommand

public AttachmentCreateLinkCommand()
Method Detail

setProperties

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

Parameters:
properties -

getProperties

public IPropertyMap getProperties()
Get the properties on the new resource

Returns:
properties on the new resource

getNewName

public String getNewName()
Get the name of the new resource

Returns:
the name of the new resource

setNewName

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

Parameters:
newName -

getTargetRID

public RID getTargetRID()
Get the target RID

Returns:
the target RID

setTargetRID

public void setTargetRID(RID input)
Set the target RID

Parameters:
input -

getLinkType

public LinkType getLinkType()
Get the link type

Returns:
the link type

setLinkType

public void setLinkType(LinkType linkType)
Set the link type

Parameters:
linkType -

getResource

public IResource getResource()
Get the target collection

Returns:
the target collection

setResource

public void setResource(IResource input)
Set the target collection

Parameters:
input -

getCreatedLink

public IResource getCreatedLink()
Get the created link by command execution

Returns:
the create link

setCreatedLink

public void setCreatedLink(IResource input)
Set the created link resource.

Parameters:
input -

getLastException

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

Returns:
the 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