Class QuickShareLink


  • public class QuickShareLink
    extends java.lang.Object
    Representation of quick share link The shared link id provides a short id that can be part of a short app url that is easy to copy/paste/send (via email or other). As of now, these shared links are public in that they provide unauthenticated access to the node's content and limited metadata info, such as file name and last modifier/modification. In the future, the QuickShareService *could* be enhanced to provide additional features, such as link expiry &/or "password" protection, etc.
    Author:
    janv
    • Constructor Detail

      • QuickShareLink

        public QuickShareLink()
      • QuickShareLink

        public QuickShareLink​(java.lang.String sharedId,
                              java.lang.String nodeId)
    • Method Detail

      • getId

        public java.lang.String getId()
      • setId

        public void setId​(java.lang.String sharedId)
      • getExpiresAt

        public java.util.Date getExpiresAt()
      • setExpiresAt

        public void setExpiresAt​(java.util.Date expiresAt)
      • getNodeId

        public java.lang.String getNodeId()
      • setNodeId

        public void setNodeId​(java.lang.String nodeId)
      • setContent

        public void setContent​(ContentInfo content)
      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
      • getTitle

        public java.lang.String getTitle()
      • setTitle

        public void setTitle​(java.lang.String title)
      • getDescription

        public java.lang.String getDescription()
      • setDescription

        public void setDescription​(java.lang.String description)
      • setPath

        public void setPath​(PathInfo pathInfo)
      • getModifiedAt

        public java.util.Date getModifiedAt()
      • setModifiedAt

        public void setModifiedAt​(java.util.Date modifiedAt)
      • getModifiedByUser

        public UserInfo getModifiedByUser()
      • setModifiedByUser

        public void setModifiedByUser​(UserInfo modifiedByUser)
      • getSharedByUser

        public UserInfo getSharedByUser()
      • setSharedByUser

        public void setSharedByUser​(UserInfo sharedByUser)
      • getAllowableOperations

        public java.util.List<java.lang.String> getAllowableOperations()
        Retrieve the allowable operations for the shared link.
        Returns:
        List of operation labels, e.g. "delete"
      • setAllowableOperations

        public void setAllowableOperations​(java.util.List<java.lang.String> allowableOperations)
      • getAllowableOperationsOnTarget

        public java.util.List<java.lang.String> getAllowableOperationsOnTarget()
        Retrieve the allowable operations for the actual file being shared.
        Returns:
        List of operation labels, e.g. "delete"
      • setAllowableOperationsOnTarget

        public void setAllowableOperationsOnTarget​(java.util.List<java.lang.String> allowableOperationsOnTarget)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object