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 Details

  • Constructor Details

    • Group

      public Group()
    • Group

      public Group(String name)
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • asGrantedAuthority

      public org.springframework.security.core.GrantedAuthority asGrantedAuthority()
      Represents this group as a GrantedAuthority to be added.
      Returns:
      authority for the group
    • compareTo

      public int compareTo(Group other)
      Specified by:
      compareTo in interface Comparable<Group>
    • authorityString

      public static String authorityString(String group)
      Generate the authority string for a group, applies the prefix if is not yet present.
      Parameters:
      group - name of the group
      Returns:
      authority string