@Component(value="blAdminUserCustomPersistenceHandler") public class AdminUserCustomPersistenceHandler extends CustomPersistenceHandlerAdapter
Modifier and Type | Field and Description |
---|---|
protected SecurityVerifier |
adminRemoteSecurityService |
protected AdminSecurityService |
adminSecurityService |
protected org.springframework.core.env.Environment |
environment |
DEFAULT_ORDER
Constructor and Description |
---|
AdminUserCustomPersistenceHandler() |
Modifier and Type | Method and Description |
---|---|
Entity |
add(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper) |
Boolean |
canHandleAdd(PersistencePackage persistencePackage)
Is this persistence handler capable of dealing with an add request from the admin
|
Boolean |
canHandleRemove(PersistencePackage persistencePackage)
Is this persistence handler capable of dealing with a remove request from the admin
|
Boolean |
canHandleUpdate(PersistencePackage persistencePackage)
Is this persistence handler capable of dealing with an update request from the admin
|
protected boolean |
getRequireUniqueEmailAddress() |
void |
remove(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper) |
Entity |
update(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper) |
protected Entity |
validateLegalUsernameAndEmail(Entity entity,
AdminUser adminInstance,
boolean isAdd) |
protected void |
validateUserUpdateSecurity(PersistencePackage persistencePackage,
AdminUser changingUser) |
Boolean |
willHandleSecurity(PersistencePackage persistencePackage) |
canHandleFetch, canHandleInspect, fetch, getClassForName, getMetadata, getOrder, getPolymorphicClasses, getResultSet, inspect, isAdornedListOperation, isAssignableFrom, isBasicOperation, isMapOperation, meetsCustomCriteria
protected AdminSecurityService adminSecurityService
protected SecurityVerifier adminRemoteSecurityService
@Autowired protected org.springframework.core.env.Environment environment
protected boolean getRequireUniqueEmailAddress()
public Boolean willHandleSecurity(PersistencePackage persistencePackage)
willHandleSecurity
in interface CustomPersistenceHandler
willHandleSecurity
in class CustomPersistenceHandlerAdapter
public Boolean canHandleAdd(PersistencePackage persistencePackage)
CustomPersistenceHandler
canHandleAdd
in interface CustomPersistenceHandler
canHandleAdd
in class CustomPersistenceHandlerAdapter
persistencePackage
- details about the add operationpublic Boolean canHandleUpdate(PersistencePackage persistencePackage)
CustomPersistenceHandler
canHandleUpdate
in interface CustomPersistenceHandler
canHandleUpdate
in class CustomPersistenceHandlerAdapter
persistencePackage
- details about the update operationpublic Boolean canHandleRemove(PersistencePackage persistencePackage)
CustomPersistenceHandler
canHandleRemove
in interface CustomPersistenceHandler
canHandleRemove
in class CustomPersistenceHandlerAdapter
persistencePackage
- details about the remove operationpublic Entity add(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
add
in interface CustomPersistenceHandler
add
in class CustomPersistenceHandlerAdapter
ServiceException
public Entity update(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
update
in interface CustomPersistenceHandler
update
in class CustomPersistenceHandlerAdapter
ServiceException
public void remove(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
remove
in interface CustomPersistenceHandler
remove
in class CustomPersistenceHandlerAdapter
ServiceException
protected void validateUserUpdateSecurity(PersistencePackage persistencePackage, AdminUser changingUser) throws ServiceException
ServiceException
Copyright © 2022. All rights reserved.