Class Group

java.lang.Object
sk.gursky.films.persist.users.Group

public class Group
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    Group()  
    Group​(java.lang.Long id, java.lang.String name)  
  • Method Summary

    Modifier and Type Method Description
    void addPermission​(java.lang.String permission)  
    Group clone()  
    static java.util.List<Group> cloneGroups​(java.util.List<Group> groups)  
    boolean equals​(java.lang.Object obj)  
    java.lang.Long getId()  
    java.lang.String getName()  
    java.util.List<java.lang.String> getPermissions()  
    int hashCode()  
    void setId​(java.lang.Long id)  
    void setName​(java.lang.String name)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Group

      public Group()
    • Group

      public Group​(java.lang.Long id, java.lang.String name)
  • Method Details

    • getId

      public java.lang.Long getId()
    • setId

      public void setId​(java.lang.Long id)
    • getName

      public java.lang.String getName()
    • setName

      public void setName​(java.lang.String name)
    • getPermissions

      public java.util.List<java.lang.String> getPermissions()
    • addPermission

      public void addPermission​(java.lang.String permission)
    • clone

      public Group clone()
      Overrides:
      clone in class java.lang.Object
    • cloneGroups

      public static java.util.List<Group> cloneGroups​(java.util.List<Group> groups)
    • hashCode

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

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • toString

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