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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.GrantedAuthority
Represents this group as aGrantedAuthority
to be added.static String
authorityString
(String group) Generate the authority string for a group, applies the prefix if is not yet present.int
getName()
void
Methods 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, uniquePrincipalName
Methods inherited from class com.foreach.across.modules.hibernate.business.SettableIdBasedEntity
equals, getNewEntityId, hashCode, isNew, setNewEntityId, toDto
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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 aGrantedAuthority
to be added.- Returns:
- authority for the group
-
compareTo
- Specified by:
compareTo
in 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
-