Class Group
java.lang.Object
com.foreach.across.modules.hibernate.business.SettableIdBasedEntity<T>
com.foreach.across.modules.user.business.BasicSecurityPrincipal<Group>
com.foreach.across.modules.user.business.Group
- All Implemented Interfaces:
 com.foreach.across.modules.hibernate.business.Auditable<String>,com.foreach.across.modules.hibernate.business.EntityWithDto<Group>,com.foreach.across.modules.hibernate.business.IdBasedEntity,com.foreach.across.modules.spring.security.infrastructure.business.SecurityPrincipal,IdBasedSecurityPrincipal,Comparable<Group>,org.springframework.data.domain.Persistable<Long>
@NotThreadSafe
@Entity
public class Group
extends BasicSecurityPrincipal<Group>
implements Comparable<Group>
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.GrantedAuthorityRepresents this group as aGrantedAuthorityto be added.static StringauthorityString(String group) Generate the authority string for a group, applies the prefix if is not yet present.intgetName()voidMethods inherited from class com.foreach.across.modules.user.business.BasicSecurityPrincipal
addRole, buildAuthoritySet, getAuthorities, getCreatedBy, getCreatedDate, getId, getLastModifiedBy, getLastModifiedDate, getPrincipalName, getRoles, getUserDirectory, hasPermission, hasPermission, hasRole, hasRole, removeRole, setCreatedBy, setCreatedDate, setId, setLastModifiedBy, setLastModifiedDate, setPrincipalName, setRoles, setUserDirectory, toString, uniquePrincipalNameMethods inherited from class com.foreach.across.modules.hibernate.business.SettableIdBasedEntity
equals, getNewEntityId, hashCode, isNew, setNewEntityId, toDtoMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.foreach.across.modules.spring.security.infrastructure.business.SecurityPrincipal
getSecurityPrincipalId 
- 
Field Details
- 
AUTHORITY_PREFIX
- See Also:
 
 
 - 
 - 
Constructor Details
- 
Group
public Group() - 
Group
 
 - 
 - 
Method Details
- 
getName
 - 
setName
 - 
asGrantedAuthority
public org.springframework.security.core.GrantedAuthority asGrantedAuthority()Represents this group as aGrantedAuthorityto be added.- Returns:
 - authority for the group
 
 - 
compareTo
- Specified by:
 compareToin interfaceComparable<Group>
 - 
authorityString
Generate the authority string for a group, applies the prefix if is not yet present.- Parameters:
 group- name of the group- Returns:
 - authority string
 
 
 -