Class EmptyAuthorityGroupService
- java.lang.Object
-
- com.hybris.cockpitng.core.user.impl.EmptyAuthorityGroupService
-
- All Implemented Interfaces:
AuthorityGroupService
public class EmptyAuthorityGroupService extends java.lang.Object implements AuthorityGroupService
Default implementation of AuthorityGroupService which has no authority groups and acts more like a placeholder
-
-
Constructor Summary
Constructors Constructor Description EmptyAuthorityGroupService()
-
Method Summary
All Methods Instance Methods Concrete 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
public AuthorityGroup getActiveAuthorityGroupForUser(java.lang.String userId)
Description copied from interface:AuthorityGroupServiceReturns the active authority group for a specific user.- Specified by:
getActiveAuthorityGroupForUserin interfaceAuthorityGroupService- Parameters:
userId- user ID- Returns:
- the active authority group for the specified user
-
getAllAuthorityGroupsForUser
public java.util.List<AuthorityGroup> getAllAuthorityGroupsForUser(java.lang.String userId)
Description copied from interface:AuthorityGroupServiceReturns a list of all authority groups for the user with the specified ID.- Specified by:
getAllAuthorityGroupsForUserin interfaceAuthorityGroupService- Parameters:
userId- user ID- Returns:
- list of all the authority groups for the specified user
-
getAllAuthorityGroups
public java.util.List<AuthorityGroup> getAllAuthorityGroups()
Description copied from interface:AuthorityGroupServiceReturns a list of all available authority groups.- Specified by:
getAllAuthorityGroupsin interfaceAuthorityGroupService- Returns:
- list of all authority groups in the system
-
setActiveAuthorityGroupForUser
public void setActiveAuthorityGroupForUser(AuthorityGroup authorityGroup)
Description copied from interface:AuthorityGroupServiceMarks the provided authority group as the active one.- Specified by:
setActiveAuthorityGroupForUserin interfaceAuthorityGroupService- Parameters:
authorityGroup- the authority group to be marked as being active
-
getAuthorityGroup
public AuthorityGroup getAuthorityGroup(java.lang.String code)
Description copied from interface:AuthorityGroupServiceReturns the authority group with the specified code.- Specified by:
getAuthorityGroupin interfaceAuthorityGroupService- Parameters:
code- the code of the authority group to be returned- Returns:
- the authority group with code code
-
-