Package com.hybris.cockpitng.core.user
Interface AuthorityGroupService
-
- All Known Implementing Classes:
AbstractAuthorityGroupService,EmptyAuthorityGroupService
public interface AuthorityGroupServiceProvides functionality for retrieving and activating authority groups.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AuthorityGroupgetActiveAuthorityGroupForUser(java.lang.String userId)Returns the active authority group for a specific user.java.util.List<AuthorityGroup>getAllAuthorityGroups()Returns a list of all available authority groups.java.util.List<AuthorityGroup>getAllAuthorityGroupsForUser(java.lang.String userId)Returns a list of all authority groups for the user with the specified ID.AuthorityGroupgetAuthorityGroup(java.lang.String code)Returns the authority group with the specified code.voidsetActiveAuthorityGroupForUser(AuthorityGroup authorityGroup)Marks the provided authority group as the active one.
-
-
-
Method Detail
-
getActiveAuthorityGroupForUser
AuthorityGroup getActiveAuthorityGroupForUser(java.lang.String userId)
Returns the active authority group for a specific user.- Parameters:
userId- user ID- Returns:
- the active authority group for the specified user
-
getAllAuthorityGroupsForUser
java.util.List<AuthorityGroup> getAllAuthorityGroupsForUser(java.lang.String userId)
Returns a list of all authority groups for the user with the specified ID.- Parameters:
userId- user ID- Returns:
- list of all the authority groups for the specified user
-
getAllAuthorityGroups
java.util.List<AuthorityGroup> getAllAuthorityGroups()
Returns a list of all available authority groups.- Returns:
- list of all authority groups in the system
-
setActiveAuthorityGroupForUser
void setActiveAuthorityGroupForUser(AuthorityGroup authorityGroup)
Marks the provided authority group as the active one.- Parameters:
authorityGroup- the authority group to be marked as being active
-
getAuthorityGroup
AuthorityGroup getAuthorityGroup(java.lang.String code)
Returns the authority group with the specified code.- Parameters:
code- the code of the authority group to be returned- Returns:
- the authority group with code code
-
-