Package com.cbe

Class 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.
      • Methods inherited from class java.lang.Object

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

      • ShareData

        public ShareData()
        Constructor, id is set to 0 and isUserId is true.
    • 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.