Class CopyReference

java.lang.Object
com.appiancorp.suiteapi.content.CopyReference

public class CopyReference extends Object
Represents a reference to a copied Content item.
  • Constructor Details

    • CopyReference

      public CopyReference()
  • Method Details

    • getSource

      public Long getSource()
      Source id
    • getTarget

      public Long getTarget()
      Target id
    • getSourceFilename

      @Deprecated public String getSourceFilename()
      Deprecated.
      since 23.2. Use copyContents() instead
      Source filename reference (name on disk)
    • getTargetFilename

      @Deprecated public String getTargetFilename()
      Deprecated.
      since 23.2. Use copyContents() instead
      Target filename reference (name on disk)
    • copyContents

      public void copyContents() throws AppianStorageException
      Copies the contents from the Source object to the Target
      Throws:
      AppianStorageException - if the copy fails
    • getName

      public String getName()
      Name of Content item (for display to user during copying if desired)
    • setSource

      public void setSource(Long value)
      Parameters:
      Source - id
    • setTarget

      public void setTarget(Long value)
      Parameters:
      Target - id
    • setSourceFilename

      @Deprecated public void setSourceFilename(String name)
      Deprecated.
      since 23.2
      Parameters:
      Source - filename reference (name on disk)
    • setTargetFilename

      @Deprecated public void setTargetFilename(String name)
      Deprecated.
      since 23.2
      Parameters:
      Target - filename reference (name on disk)
    • setName

      public void setName(String name)
      Parameters:
      name - of file being copied