Class DefaultUserRoleManagementStrategy
- java.lang.Object
-
- de.hybris.platform.b2b.occ.strategy.impl.DefaultUserRoleManagementStrategy
-
- All Implemented Interfaces:
UserRoleManagementStrategy
public class DefaultUserRoleManagementStrategy extends java.lang.Object implements UserRoleManagementStrategy
-
-
Field Summary
Fields Modifier and Type Field Description protected B2BUserFacadeb2bUserFacadeprotected java.lang.Stringrole
-
Constructor Summary
Constructors Constructor Description DefaultUserRoleManagementStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description B2BSelectionDataaddRoleToUser(java.lang.String userId)Adds a role to the userprotected B2BUserFacadegetB2bUserFacade()protected java.lang.StringgetRole()B2BSelectionDataremoveRoleFromUser(java.lang.String userId)Removes a role from the uservoidsetB2bUserFacade(B2BUserFacade b2bUserFacade)voidsetRole(java.lang.String role)
-
-
-
Field Detail
-
role
protected java.lang.String role
-
b2bUserFacade
protected B2BUserFacade b2bUserFacade
-
-
Method Detail
-
addRoleToUser
public B2BSelectionData addRoleToUser(java.lang.String userId)
Description copied from interface:UserRoleManagementStrategyAdds a role to the user- Specified by:
addRoleToUserin interfaceUserRoleManagementStrategy- Parameters:
userId- is the identifier of the user- Returns:
- the resulting
B2BSelectionData
-
removeRoleFromUser
public B2BSelectionData removeRoleFromUser(java.lang.String userId)
Description copied from interface:UserRoleManagementStrategyRemoves a role from the user- Specified by:
removeRoleFromUserin interfaceUserRoleManagementStrategy- Parameters:
userId- is the identifier of the user- Returns:
- the resulting
B2BSelectionData
-
getRole
protected java.lang.String getRole()
-
setRole
public void setRole(java.lang.String role)
-
getB2bUserFacade
protected B2BUserFacade getB2bUserFacade()
-
setB2bUserFacade
public void setB2bUserFacade(B2BUserFacade b2bUserFacade)
-
-