Package org.onehippo.repository.security
Interface Group
-
public interface Group
Represents a group ofUser
s in the repository.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getDescription()
Get the description property of this group.String
getId()
Get the id of the group.Set<String>
getMembers()
Get the immutable set ofUser identifiers
who are members of this group.String
getProperty(String propertyName)
Get an additional group property by name.Set<String>
getUserRoles()
Get the directly assigned user role names for this group.boolean
isExternal()
Whether this is an external userboolean
isSystemGroup()
Whether this group is marked as a system group.
-
-
-
Method Detail
-
getId
String getId()
Get the id of the group.- Returns:
- the id of the group
-
getMembers
Set<String> getMembers()
Get the immutable set ofUser identifiers
who are members of this group. which can be used to lookup the referencedUser
object(s) throughSecurityService.getUser(String)
.Note: this set is lazy loaded, once.
- Returns:
- the
User identifiers
who are members of this group
-
getUserRoles
Set<String> getUserRoles()
Get the directly assigned user role names for this group.The user role names are not resolved, nor include possible implied user roles names
- Returns:
- the directly assigned user role names
-
getDescription
String getDescription()
Get the description property of this group.- Returns:
- the description property of this group, or
null
if not present
-
isSystemGroup
boolean isSystemGroup()
Whether this group is marked as a system group.- Returns:
- whether this group is a system group
-
isExternal
boolean isExternal()
Whether this is an external user- Returns:
- whether this is an external user
-
getProperty
String getProperty(String propertyName)
Get an additional group property by name.Only single properties of type String, Boolean, Date, Double or Long are returned, while internal properties are hidden.
- Returns:
- the additional property of the group identified by
propertyName
, ornull
if not present/available
-
-