Package org.onehippo.repository.security
Interface Group
public interface Group
Represents a group of
User
s in the repository.-
Method Summary
Modifier and TypeMethodDescriptionGet the description property of this group.getId()
Get the id of the group.Get the immutable set ofUser identifiers
who are members of this group.getProperty
(String propertyName) Get an additional group property by name.Get the directly assigned user role names for this group.boolean
Whether this is an external userboolean
Whether this group is marked as a system group.
-
Method Details
-
getId
String getId()Get the id of the group.- Returns:
- the id of the group
-
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
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
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
-