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 class
Authority.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 String
getAuthority()
Subject
getSubject()
void
setAuthority(Authority.Type authority)
void
setAuthority(String authority)
void
setSubject(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:
getAuthority
in 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)
-
-