Package sk.gursky.films.persist.users
Class Group
java.lang.Object
sk.gursky.films.persist.users.Group
public class Group
extends java.lang.Object
-
Constructor Summary
-
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()
-
Constructor Details
-
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
- Overrides:
clone
in classjava.lang.Object
-
cloneGroups
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-