Package com.cbe
Class ShareData
- java.lang.Object
-
- com.cbe.ShareData
-
public class ShareData extends java.lang.Object
Class for share data management.
-
-
Constructor Summary
Constructors Constructor Description ShareData()
Constructor, id is set to 0 and isUserId is true.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getId()
Returns the ownerId of the share.boolean
getIsUserId()
Returns true if userId, else if groupId.void
setId(long value)
set userId or groupId depending on if owner is a group or a user.void
setIsUserId(boolean value)
Set if the owner is a userId (true) else if the owner is a group set false.
-
-
-
Method Detail
-
setId
public void setId(long value)
set userId or groupId depending on if owner is a group or a user.- Parameters:
value
- , long id.
-
getId
public long getId()
Returns the ownerId of the share.
-
setIsUserId
public void setIsUserId(boolean value)
Set if the owner is a userId (true) else if the owner is a group set false.- Parameters:
value
- , boolean true if userId, false if groupId
-
getIsUserId
public boolean getIsUserId()
Returns true if userId, else if groupId.
-
-