Class Authority
- java.lang.Object
-
- com.tetsuwantech.atom.database.GenericEntity
-
- com.tetsuwantech.atom.database.authentication.Authority
-
- All Implemented Interfaces:
Serializable,org.springframework.security.core.GrantedAuthority
@Entity public class Authority extends GenericEntity implements org.springframework.security.core.GrantedAuthority
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuthority.Type
-
Field Summary
-
Fields inherited from class com.tetsuwantech.atom.database.GenericEntity
LENGTH, LONG_LENGTH, VERY_LONG_LENGTH
-
-
Constructor Summary
Constructors Constructor Description Authority()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAuthority()SubjectgetSubject()voidsetAuthority(Authority.Type authority)voidsetAuthority(String authority)voidsetSubject(Subject subject)
-
-
-
Method Detail
-
getSubject
public Subject getSubject()
- Returns:
- the subject
-
setSubject
public void setSubject(Subject subject)
- Parameters:
subject- the subject to set
-
getAuthority
public String getAuthority()
- Specified by:
getAuthorityin interfaceorg.springframework.security.core.GrantedAuthority- Returns:
- the authority
-
setAuthority
public void setAuthority(String authority)
- Parameters:
authority- the authority to set
-
setAuthority
public void setAuthority(Authority.Type authority)
-
-