Package org.cyclos.impl.users
Class RecordSectionServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.CRUDServiceImpl<RecordSection,QRecordSection,RecordSectionDTO,RecordSectionData,RecordTypeVO>
-
- org.cyclos.impl.users.RecordSectionServiceImpl
-
- All Implemented Interfaces:
CRUDServiceLocal<RecordSection,RecordSectionDTO,RecordSectionData,RecordTypeVO>,RecordSectionServiceLocal,CRUDService<RecordSectionDTO,RecordSectionData,RecordTypeVO>,CRUDWithConfirmationPasswordService<RecordSectionDTO,RecordSectionData,RecordTypeVO>,Service,RecordSectionService
@Service public class RecordSectionServiceImpl extends CRUDServiceImpl<RecordSection,QRecordSection,RecordSectionDTO,RecordSectionData,RecordTypeVO> implements RecordSectionServiceLocal
Implementation forRecordSectionService
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.CRUDServiceImpl
$, ATTR_CURRENT_COPY, cacheHandler, 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 RecordSectionServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoRemove(RecordSection section, boolean flush)May be overridden in order to perform logical removing, instead of physical removing, or to remove some extra relationships as wellprotected RecordSectionDatagetData(RecordSection section)Returns details data for the given entityList<RecordSectionVO>list(RecordTypeVO recordTypeVO)Returns all sections of the given record typevoidmove(Long id, boolean up)Moves the given section in order, either up or downRecordSectionnewEntity(RecordTypeVO recordTypeVO)Should be implemented in order to instantiate a new entity based on the given context parametersprotected ObjectonBeforeSave(RecordSection section, RecordSection currentCopy)May be overridden in order to perform custom logic before saving an entity.protected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the networkprotected ValidatorresolveValidator(RecordSectionDTO 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, onAfterRemove, onAfterSave, onBeforeRemove, 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, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, delete, detach, 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<RecordSectionVO> list(RecordTypeVO recordTypeVO) throws FrameworkException
Description copied from interface:RecordSectionServiceReturns all sections of the given record type- Specified by:
listin interfaceRecordSectionService- Throws:
FrameworkException
-
move
public void move(Long id, boolean up) throws FrameworkException
Description copied from interface:RecordSectionServiceMoves the given section in order, either up or down- Specified by:
movein interfaceRecordSectionService- Throws:
FrameworkException
-
newEntity
public RecordSection newEntity(RecordTypeVO recordTypeVO)
Description copied from class:CRUDServiceImplShould be implemented in order to instantiate a new entity based on the given context parameters- Specified by:
newEntityin interfaceCRUDServiceLocal<RecordSection,RecordSectionDTO,RecordSectionData,RecordTypeVO>- Specified by:
newEntityin classCRUDServiceImpl<RecordSection,QRecordSection,RecordSectionDTO,RecordSectionData,RecordTypeVO>
-
doRemove
protected void doRemove(RecordSection section, 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<RecordSection,QRecordSection,RecordSectionDTO,RecordSectionData,RecordTypeVO>
-
getData
protected RecordSectionData getData(RecordSection section)
Description copied from class:CRUDServiceImplReturns details data for the given entity- Specified by:
getDatain classCRUDServiceImpl<RecordSection,QRecordSection,RecordSectionDTO,RecordSectionData,RecordTypeVO>
-
onBeforeSave
protected Object onBeforeSave(RecordSection section, RecordSection currentCopy)
Description copied from class:CRUDServiceImplMay be overridden in order to perform custom logic before saving an entity. Any returned value will be passed to theCRUDServiceImpl.onAfterSave(BaseEntity, BaseEntity, Object)method- Overrides:
onBeforeSavein classCRUDServiceImpl<RecordSection,QRecordSection,RecordSectionDTO,RecordSectionData,RecordTypeVO>
-
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(RecordSectionDTO dto)
- Specified by:
resolveValidatorin classCRUDServiceImpl<RecordSection,QRecordSection,RecordSectionDTO,RecordSectionData,RecordTypeVO>
-
-