Package com.cbe
Class Item
- java.lang.Object
-
- com.cbe.Item
-
-
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-15java.lang.String
aclTag()
returns a string that is used internaly when setting aclslong
created()
Returns the creation date in Unix time.boolean
dataLoaded()
long
deleted()
Returns the deleted date in Unix timejava.lang.String
description()
Returns a description of the Itemlong
driveId()
Returns which drive the container resides on.long
getShareFromUserId(long userId)
Get the shareId from userIdShareInfo_Map
getShareIds()
long
getUserFromShareId(long shareId)
Get the shareId from userIdlong
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 pathint
type()
Container or Objectlong
updated()
Returns the updated date/time in Unix timejava.lang.String
username()
Returns the username of the Containers owner.
-
-
-
Method Detail
-
getShareIds
public ShareInfo_Map getShareIds()
-
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
-
-