Package org.cyclos.impl.banking
Class AuthorizationRoleServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.CRUDServiceImpl<AuthorizationRole,QAuthorizationRole,AuthorizationRoleDTO,AuthorizationRoleData,Void>
-
- org.cyclos.impl.banking.AuthorizationRoleServiceImpl
-
- All Implemented Interfaces:
AuthorizationRoleServiceLocal,CRUDServiceLocal<AuthorizationRole,AuthorizationRoleDTO,AuthorizationRoleData,Void>,AuthorizationRoleService,CRUDService<AuthorizationRoleDTO,AuthorizationRoleData,Void>,CRUDWithConfirmationPasswordService<AuthorizationRoleDTO,AuthorizationRoleData,Void>,Service
@Service public class AuthorizationRoleServiceImpl extends CRUDServiceImpl<AuthorizationRole,QAuthorizationRole,AuthorizationRoleDTO,AuthorizationRoleData,Void> implements AuthorizationRoleServiceLocal
implementation forAuthorizationRoleService
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.CRUDServiceImpl
$, ATTR_CURRENT_COPY, dtoClass, entityClass, extensionPointService, idPath, internalNamePath, namePath, ownerEntityIdPath, ownerEntityPath, ownerEntityPropertyName, passwordHandler, richTextHandler, withConfirmationPassword
-
Fields inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
authHandler, conversionHandler, customFieldValueHandler, entityManagerHandler, groupsHandler, productsHandler, restBeanPropertyMapping, userLocatorHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description AuthorizationRoleServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoRemove(AuthorizationRole authorizationRole, boolean flush)May be overridden in order to perform logical removing, instead of physical removing, or to remove some extra relationships as wellprotected AuthorizationRoleDatagetData(AuthorizationRole role)Returns details data for the given entityList<AuthorizationRoleDetailedVO>list()Returns all authorization rolesList<AuthorizationRole>listAll()Returns a list of allAuthorizationRolesAuthorizationRolenewEntity(Void params)Should be implemented in order to instantiate a new entity based on the given context parametersprotected voidonAfterRemove(AuthorizationRole entity)May be overridden in order to perform custom logic after removing an entityprotected voidonAfterSave(AuthorizationRole authorizationRole, AuthorizationRole currentCopy, Object dataFromOnBeforeSave)May be overridden in order to perform custom logic after saving an entityprotected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the networkprotected ValidatorresolveValidator(AuthorizationRoleDTO dto)-
Methods inherited from class org.cyclos.impl.CRUDServiceImpl
addCustomInternalNameValidations, addCustomNameValidations, checkConfirmationPassword, find, findAll, from, getConfirmationPasswordInput, getConfirmationPasswordInputForRemove, getData, getDataForNew, getDeviceConfirmationParams, getEntityClass, getEntityInternalNameKey, getExcludedPropertiesToDTO, getExcludedPropertiesToEntity, getNameLabel, getUniqueInternalNameQuery, getUniqueNameQuery, isEntityInternalNameRequired, isNameRequired, load, logEntity, onBeforeRemove, onBeforeSave, preProcessCurrentCopy, remove, remove, removeAll, removeAll, removeAllWithConfirmationPassword, removeWithConfirmationPassword, resolveDTOType, resolveEntityType, resolveExtensionPointAccessor, save, saveOrder, saveSkippingEntityLog, saveWithConfirmationPassword, shouldCheckConfirmationPassword, subClassMappings, toDTO, toEntity, validate
-
Methods inherited from class org.cyclos.impl.BaseServiceImpl
initializeNetworkMappings
-
Methods inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
canManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, setAlreadyValidated, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, dataTranslationProxy, delete, detach, doDataTranslationProxy, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
Methods inherited from interface org.cyclos.impl.CRUDServiceLocal
find, findAll, getEntityClass, remove, removeAll, saveEntity, saveSkippingEntityLog, toDTO, toEntity, validate
-
-
-
-
Method Detail
-
list
public List<AuthorizationRoleDetailedVO> list()
Description copied from interface:AuthorizationRoleServiceReturns all authorization roles- Specified by:
listin interfaceAuthorizationRoleService
-
listAll
public List<AuthorizationRole> listAll()
Description copied from interface:AuthorizationRoleServiceLocalReturns a list of allAuthorizationRoles- Specified by:
listAllin interfaceAuthorizationRoleServiceLocal
-
newEntity
public AuthorizationRole newEntity(Void params)
Description copied from class:CRUDServiceImplShould be implemented in order to instantiate a new entity based on the given context parameters- Specified by:
newEntityin interfaceCRUDServiceLocal<AuthorizationRole,AuthorizationRoleDTO,AuthorizationRoleData,Void>- Specified by:
newEntityin classCRUDServiceImpl<AuthorizationRole,QAuthorizationRole,AuthorizationRoleDTO,AuthorizationRoleData,Void>
-
doRemove
protected void doRemove(AuthorizationRole authorizationRole, boolean flush)
Description copied from class:CRUDServiceImplMay be overridden in order to perform logical removing, instead of physical removing, or to remove some extra relationships as well- Overrides:
doRemovein classCRUDServiceImpl<AuthorizationRole,QAuthorizationRole,AuthorizationRoleDTO,AuthorizationRoleData,Void>
-
getData
protected AuthorizationRoleData getData(AuthorizationRole role)
Description copied from class:CRUDServiceImplReturns details data for the given entity- Specified by:
getDatain classCRUDServiceImpl<AuthorizationRole,QAuthorizationRole,AuthorizationRoleDTO,AuthorizationRoleData,Void>
-
onAfterRemove
protected void onAfterRemove(AuthorizationRole entity)
Description copied from class:CRUDServiceImplMay be overridden in order to perform custom logic after removing an entity- Overrides:
onAfterRemovein classCRUDServiceImpl<AuthorizationRole,QAuthorizationRole,AuthorizationRoleDTO,AuthorizationRoleData,Void>
-
onAfterSave
protected void onAfterSave(AuthorizationRole authorizationRole, AuthorizationRole currentCopy, Object dataFromOnBeforeSave)
Description copied from class:CRUDServiceImplMay be overridden in order to perform custom logic after saving an entity- Overrides:
onAfterSavein classCRUDServiceImpl<AuthorizationRole,QAuthorizationRole,AuthorizationRoleDTO,AuthorizationRoleData,Void>
-
registerNetworkMappings
protected void registerNetworkMappings(NetworkPathRegistry networkPathRegistry)
Description copied from class:BaseServiceImplNeeds to be overridden by subclasses to register the path up to the network- Specified by:
registerNetworkMappingsin classBaseServiceImpl
-
resolveValidator
protected Validator resolveValidator(AuthorizationRoleDTO dto)
- Specified by:
resolveValidatorin classCRUDServiceImpl<AuthorizationRole,QAuthorizationRole,AuthorizationRoleDTO,AuthorizationRoleData,Void>
-
-