com.sap.netweaver.coll.attachment.command

Class AttachmentCopyResourceCommand

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

public class AttachmentCopyResourceCommand
extends Object

Command to copy a resource


Constructor Summary
AttachmentCopyResourceCommand()
           
 
Method Summary
 boolean canExecute()
          Check if command can be executed
 boolean execute()
          Execute the command
protected  void executeResourceImpl()
           
 boolean getIgnorePropertyFailures()
          Get whether property failures will be ignored
 Exception getLastException()
          Get the last exception that occurred during command execution
 String getNewName()
          Get the new name
 IProperty getNewNameProperty()
          Get the new name property
 IResource getNewResource()
           
 IResource getResource()
          Get the resource to be copied
 RID getTarget()
          Get target RID
 ICollection getTargetCollection()
          Get the target collection
protected  boolean isAccessibleImpl()
           
protected  boolean isSupportedImpl()
           
 void setIgnorePropertyFailures(boolean enable)
          Set whether to ignore property failures
 void setNewName(String newName)
          Set the new name
 void setNewNameProperty(IProperty newName)
          Set the new name property
 void setResource(IResource input)
          Sets the resource to be copied
 void setTarget(RID target)
          Set target RID
 void setTargetCollection(ICollection 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

AttachmentCopyResourceCommand

public AttachmentCopyResourceCommand()
Method Detail

getNewNameProperty

public IProperty getNewNameProperty()
Get the new name property

Returns:
the new name property

setNewNameProperty

public void setNewNameProperty(IProperty newName)
Set the new name property

Parameters:
newName -

getNewName

public String getNewName()
Get the new name

Returns:
the new name

setNewName

public void setNewName(String newName)
Set the new name

Parameters:
newName -

setIgnorePropertyFailures

public void setIgnorePropertyFailures(boolean enable)
Set whether to ignore property failures

Parameters:
enable -

getIgnorePropertyFailures

public boolean getIgnorePropertyFailures()
Get whether property failures will be ignored

Returns:
true if property failures will be ignored

getTargetCollection

public ICollection getTargetCollection()
Get the target collection

Returns:
the target collection

setTargetCollection

public void setTargetCollection(ICollection input)
Set the target collection

Parameters:
input -

getTarget

public RID getTarget()
Get target RID

Returns:
target RID

setTarget

public void setTarget(RID target)
Set target RID

Parameters:
target -

getNewResource

public IResource getNewResource()
Returns:
the new resource created by the command or null

getResource

public IResource getResource()
Get the resource to be copied

Returns:
the resource to be copied

setResource

public void setResource(IResource input)
Sets the resource to be copied

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

executeResourceImpl

protected void executeResourceImpl()
                            throws Exception
Throws:
Exception

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