Class RecycleBinItem

java.lang.Object
com.sas.lsaf.content.repository.recyclebin.RecycleBinItem
All Implemented Interfaces:
Serializable

public class RecycleBinItem extends Object implements Serializable
The class that represents an item that is in the recycle bin.
Since:
1.2
See Also:
  • Constructor Details

    • RecycleBinItem

      public RecycleBinItem(String id, String typeId, String path, String deletedBy, Date deletedDate, long size, String lastModifiedBy, Date lastModified)
      It is not intended or recommended that the consumer of this API construct these objects. They should only deal with the user descriptors returned by the API.
      Parameters:
      id - The identifier of the deleted object.
      typeId - The identifier of the type of the deleted object.
      path - The path to the deleted object.
      deletedBy - The identifier of the user who deleted the object.
      deletedDate - The date on which the object was deleted.
      size - The size (in bytes) of the deleted object.
      lastModifiedBy - The identifier of the user who last modified the deleted object.
      lastModified - The date on which the deleted object was last modified.
  • Method Details

    • getId

      public String getId()
      Gets the identifier of the deleted object.
      Returns:
      The identifier of the deleted object.
    • getPath

      public String getPath()
      Gets the path to the deleted object.
      Returns:
      The path to the deleted object.
    • getDeletedBy

      public String getDeletedBy()
      Gets the user who deleted the object.
      Returns:
      The identifier of the user who deleted the object.
    • getDeletedDate

      public Date getDeletedDate()
      Gets the date on which the object was deleted.
      Returns:
      The date on which the object was deleted.
    • getTypeId

      public String getTypeId()
      Gets the identifier of the type for the deleted object.
      Returns:
      The identifier of the type for the deleted object.
    • getLastModified

      public Date getLastModified()
      Gets the date on which the deleted object was last modified.
      Returns:
      The date on which the deleted object was last modified.
    • getLastModifiedBy

      public String getLastModifiedBy()
      Gets the identifier of the user who last modified the deleted object.
      Returns:
      The identifier of the user who last modified the delete object.
    • getSize

      public long getSize()
      Gets the size (in bytes) of the deleted object. The size is available for files only. Containers always return 0.
      Returns:
      The size (in bytes) of the deleted object.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object