Class Group

  • All Implemented Interfaces:
    com.jscape.util.db.IntVersioned

    public final class Group
    extends java.lang.Object
    implements com.jscape.util.db.IntVersioned
    Users group abstraction. Represents named resources set available for all users in group.
    Author:
    Alex Usun
    • Constructor Detail

      • Group

        public Group​(java.lang.String name,
                     VirtualFileDescriptor<?>[] resources,
                     boolean useInAdHocTransferAllowed,
                     java.lang.String[] tags,
                     long creationDate,
                     int version)
        Creates a new user instance.
        Parameters:
        name - the group name
        resources - the virtual paths associated with this new group
        useInAdHocTransferAllowed - trueif use in ad-hoc transfer allowed
      • Group

        public Group​(Group that)
        Copy constructor.
        Parameters:
        that - Group instance will be copied
      • Group

        public Group()
        Used in serialization sub-system.
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the group name.
        Returns:
        Return the group name
      • setName

        public void setName​(java.lang.String value)
        Sets group name.
        Parameters:
        value - the group name
      • getResources

        public VirtualFileDescriptor<?>[] getResources()
        Returns the group virtual paths.
        Returns:
        the group virtual paths
      • setResources

        public void setResources​(VirtualFileDescriptor<?>[] value)
        Sets the group virtual path array.
        Parameters:
        value - The new group virtual paths array
      • getUseInAdHocTransferAllowed

        public boolean getUseInAdHocTransferAllowed()
        Returns use in ad-hoc file transfer allowed
        Returns:
        true if use in ad-hoc file transfer allowed
      • setUseInAdHocTransferAllowed

        public void setUseInAdHocTransferAllowed​(boolean value)
        Sets use in ad-hoc file transfer allowed
        Parameters:
        value - use in ad-hoc file transfer allowed
      • getTags

        public java.lang.String[] getTags()
      • setTags

        public void setTags​(java.lang.String[] value)
      • getCreationDate

        public long getCreationDate()
      • setCreationDate

        public void setCreationDate​(long value)
      • getVersion

        public int getVersion()
        Specified by:
        getVersion in interface com.jscape.util.db.IntVersioned
      • setVersion

        public void setVersion​(int value)
        Specified by:
        setVersion in interface com.jscape.util.db.IntVersioned
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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