Class DefaultOrgUnitAuthorizationStrategy
java.lang.Object
de.hybris.platform.commerceservices.organization.strategies.impl.DefaultOrgUnitAuthorizationStrategy
- All Implemented Interfaces:
OrgUnitAuthorizationStrategy
public class DefaultOrgUnitAuthorizationStrategy
extends Object
implements OrgUnitAuthorizationStrategy
Default implementation of the
OrgUnitAuthorizationStrategy interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanEditParentUnit(UserModel user) Check if user is allowed to edit parent unit.booleancanEditUnit(UserModel user) Check if user is allowed to edit.getUserGroups(String propertyKey) protected UserServiceprotected booleanisMemberOfAuthorizedGroup(UserModel user, List<String> authorizedGroups) voidsetUserService(UserService userService) voidCheck if user is allowed to create.voidCheck if user is allowed to edit parent unit.voidCheck if user is allowed to edit.voidCheck if user is allowed to view.
-
Constructor Details
-
DefaultOrgUnitAuthorizationStrategy
public DefaultOrgUnitAuthorizationStrategy()
-
-
Method Details
-
validateCreatePermission
Description copied from interface:OrgUnitAuthorizationStrategyCheck if user is allowed to create.- Specified by:
validateCreatePermissionin interfaceOrgUnitAuthorizationStrategy- Parameters:
user- theUserModelto check
-
validateEditPermission
Description copied from interface:OrgUnitAuthorizationStrategyCheck if user is allowed to edit.- Specified by:
validateEditPermissionin interfaceOrgUnitAuthorizationStrategy- Parameters:
user- theUserModelto check
-
canEditUnit
Description copied from interface:OrgUnitAuthorizationStrategyCheck if user is allowed to edit.- Specified by:
canEditUnitin interfaceOrgUnitAuthorizationStrategy- Parameters:
user- the user- Returns:
- true, if user is allowed to edit, false otherwise
-
validateViewPermission
Description copied from interface:OrgUnitAuthorizationStrategyCheck if user is allowed to view.- Specified by:
validateViewPermissionin interfaceOrgUnitAuthorizationStrategy- Parameters:
user- theUserModelto check
-
validateEditParentPermission
Description copied from interface:OrgUnitAuthorizationStrategyCheck if user is allowed to edit parent unit.- Specified by:
validateEditParentPermissionin interfaceOrgUnitAuthorizationStrategy- Parameters:
user- the user
-
canEditParentUnit
Description copied from interface:OrgUnitAuthorizationStrategyCheck if user is allowed to edit parent unit.- Specified by:
canEditParentUnitin interfaceOrgUnitAuthorizationStrategy- Parameters:
user- the user- Returns:
- true, if user is allowed to edit parent unit, false otherwise
-
getUserGroups
-
isMemberOfAuthorizedGroup
-
getUserService
-
setUserService
-