Package com.cbe

Class Item

  • Direct Known Subclasses:
    Container, Object

    public class Item
    extends java.lang.Object
    class Item, parent class for Container and Object.
    • Constructor Summary

      Constructors 
      Constructor Description
      Item()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ACL_Map ACLMap()
      ACLs key is user id and int is the acl set 0-15
      java.lang.String aclTag()
      returns a string that is used internaly when setting acls
      long created()
      Returns the creation date in Unix time.
      boolean dataLoaded()  
      long deleted()
      Returns the deleted date in Unix time
      java.lang.String description()
      Returns a description of the Item
      long driveId()
      Returns which drive the container resides on.
      long getShareFromUserId​(long userId)
      Get the shareId from userId
      ShareInfo_Map getShareIds()  
      long getUserFromShareId​(long shareId)
      Get the shareId from userId
      long id()
      Returns an Items id.
      boolean idLoaded()
      used internaly, but returns if an id and data has been loaded from server / edge node.
      java.lang.String name()
      Returns the name.
      long oldParentId()  
      long ownerId()
      Returns the owner id.
      long parentId()
      Returns the id of the Items parent.
      java.lang.String path()
      Returns the path
      int type()
      Container or Object
      long updated()
      Returns the updated date/time in Unix time
      java.lang.String username()
      Returns the username of the Containers owner.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Item

        public Item()
    • Method Detail

      • getShareFromUserId

        public long getShareFromUserId​(long userId)
        Get the shareId from userId
        Parameters:
        userId - long userId is defined both on the account for the specific user but also on items on ownerId.
        Returns:
        a shareId if there is one set on the Object or Container.
      • getUserFromShareId

        public long getUserFromShareId​(long shareId)
        Get the shareId from userId
        Parameters:
        shareId - long ShareId is set when a Container or Object has been shared.
      • aclTag

        public java.lang.String aclTag()
        returns a string that is used internaly when setting acls
      • description

        public java.lang.String description()
        Returns a description of the Item
      • id

        public long id()
        Returns an Items id.
      • parentId

        public long parentId()
        Returns the id of the Items parent.
      • oldParentId

        public long oldParentId()
      • name

        public java.lang.String name()
        Returns the name.
      • path

        public java.lang.String path()
        Returns the path
      • ownerId

        public long ownerId()
        Returns the owner id.
      • driveId

        public long driveId()
        Returns which drive the container resides on.
      • username

        public java.lang.String username()
        Returns the username of the Containers owner.
      • idLoaded

        public boolean idLoaded()
        used internaly, but returns if an id and data has been loaded from server / edge node.
      • dataLoaded

        public boolean dataLoaded()
      • created

        public long created()
        Returns the creation date in Unix time.
      • updated

        public long updated()
        Returns the updated date/time in Unix time
      • deleted

        public long deleted()
        Returns the deleted date in Unix time
      • type

        public int type()
        Container or Object
      • ACLMap

        public ACL_Map ACLMap()
        ACLs key is user id and int is the acl set 0-15