Class GroupAuthority
- java.lang.Object
-
- ubic.gemma.model.common.AbstractIdentifiable
-
- ubic.gemma.model.common.auditAndSecurity.GroupAuthority
-
- All Implemented Interfaces:
gemma.gsec.model.GroupAuthority
,Serializable
,org.springframework.security.core.GrantedAuthority
,Identifiable
public class GroupAuthority extends AbstractIdentifiable implements gemma.gsec.model.GroupAuthority
Authority for groups (kind of like a "user role", but for group-based authorization)- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GroupAuthority.Factory
-
Constructor Summary
Constructors Constructor Description GroupAuthority()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Important note: Two objects with the same class and non-null ID must be considered equal.String
getAuthority()
int
hashCode()
Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.void
setAuthority(String authority)
-
Methods inherited from class ubic.gemma.model.common.AbstractIdentifiable
getId, setId, toString
-
-
-
-
Method Detail
-
getAuthority
public String getAuthority()
- Specified by:
getAuthority
in interfaceorg.springframework.security.core.GrantedAuthority
-
setAuthority
public void setAuthority(String authority)
-
hashCode
public int hashCode()
Description copied from class:AbstractIdentifiable
Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.- Specified by:
hashCode
in classAbstractIdentifiable
-
equals
public boolean equals(Object object)
Description copied from class:AbstractIdentifiable
Important note: Two objects with the same class and non-null ID must be considered equal. If one or both IDs are nulls, the rest of the state can be used to determine equality.- Specified by:
equals
in classAbstractIdentifiable
-
-