Class AdminSecurityServiceRemote
java.lang.Object
org.broadleafcommerce.openadmin.server.security.remote.AdminSecurityServiceRemote
- All Implemented Interfaces:
AdminSecurityService,SecurityVerifier
@Service("blAdminSecurityRemoteService")
public class AdminSecurityServiceRemote
extends Object
implements AdminSecurityService, SecurityVerifier
Service for handeling security with Ajax components. Serves two functions.
- Converts the ServerSide AdminUser to a client level admin user with appropriate roles defined.
- Provides a method to check if the current logged in user matches the client side user and verifies whether that user has access to the entity operation they are trying to perform.
- Author:
- jfischer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected ExploitProtectionServiceprotected RowLevelSecurityServiceprotected AdminSecurityCheckExtensionManagerprotected AdminSecurityService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidsecurityCheck(String[] ceilingNames, EntityOperationType operationType) voidsecurityCheck(String ceilingEntityFullyQualifiedName, EntityOperationType operationType) voidsecurityCheck(PersistencePackage persistencePackage, EntityOperationType operationType)
-
Field Details
-
ANONYMOUS_USER_NAME
- See Also:
-
securityService
-
exploitProtectionService
-
rowLevelSecurityService
-
securityCheckExtensionManager
-
-
Constructor Details
-
AdminSecurityServiceRemote
public AdminSecurityServiceRemote()
-
-
Method Details
-
getAdminUser
- Specified by:
getAdminUserin interfaceAdminSecurityService- Throws:
ServiceException
-
getPersistentAdminUser
- Specified by:
getPersistentAdminUserin interfaceSecurityVerifier
-
securityCheck
public void securityCheck(PersistencePackage persistencePackage, EntityOperationType operationType) throws ServiceException - Specified by:
securityCheckin interfaceSecurityVerifier- Throws:
ServiceException
-
securityCheck
public void securityCheck(String ceilingEntityFullyQualifiedName, EntityOperationType operationType) throws ServiceException - Specified by:
securityCheckin interfaceSecurityVerifier- Throws:
ServiceException
-
securityCheck
protected void securityCheck(String[] ceilingNames, EntityOperationType operationType) throws ServiceException - Throws:
ServiceException
-