public class Role extends java.lang.Object implements org.springframework.security.core.GrantedAuthority, IGrantedAuthorityConverter
RoleVoter
Modifier and Type | Field and Description |
---|---|
static Role |
ROLE_ADMIN |
static Role |
ROLE_PROJECT_MANAGER |
static Role |
ROLE_PUBLISH |
static Role |
ROLE_REMOTING |
static Role |
ROLE_USER_MANAGER |
Constructor and Description |
---|
Role(java.util.UUID uuid,
java.lang.String authority) |
Modifier and Type | Method and Description |
---|---|
GrantedAuthorityImpl |
asGrantedAuthority(IGrantedAuthorityDao grantedAuthorityDao)
WARNING: This method must only be used when there is nothing in
hibernate to be flushed to the database.
|
GrantedAuthorityImpl |
asNewGrantedAuthority() |
static Role |
fromGrantedAuthority(GrantedAuthorityImpl grantedAuthority) |
static Role |
fromString(java.lang.String authorityString) |
java.lang.String |
getAuthority() |
java.util.UUID |
getUuid() |
java.lang.String |
toString() |
public static final Role ROLE_ADMIN
public static final Role ROLE_PROJECT_MANAGER
public static final Role ROLE_USER_MANAGER
public static final Role ROLE_PUBLISH
public static final Role ROLE_REMOTING
public java.util.UUID getUuid()
public GrantedAuthorityImpl asGrantedAuthority(IGrantedAuthorityDao grantedAuthorityDao)
asNewGrantedAuthority()
GrantedAuthorityImpl
for
the Role.public GrantedAuthorityImpl asNewGrantedAuthority()
asNewGrantedAuthority
in interface IGrantedAuthorityConverter
GrantedAuthorityImpl
for the Role.public static Role fromGrantedAuthority(GrantedAuthorityImpl grantedAuthority)
public static Role fromString(java.lang.String authorityString)
public java.lang.String getAuthority()
getAuthority
in interface org.springframework.security.core.GrantedAuthority
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2007-2020 EDIT. All Rights Reserved.