Package org.cyclos.impl.system
Class CustomBackgroundTaskServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.CRUDServiceImpl<CustomBackgroundTask,QCustomBackgroundTask,CustomBackgroundTaskDTO,CustomBackgroundTaskData,Void>
-
- org.cyclos.impl.system.CustomBackgroundTaskServiceImpl
-
- All Implemented Interfaces:
CRUDServiceLocal<CustomBackgroundTask,CustomBackgroundTaskDTO,CustomBackgroundTaskData,Void>,CustomBackgroundTaskServiceLocal,CRUDService<CustomBackgroundTaskDTO,CustomBackgroundTaskData,Void>,CRUDWithConfirmationPasswordService<CustomBackgroundTaskDTO,CustomBackgroundTaskData,Void>,Service,CustomBackgroundTaskService
@Service public class CustomBackgroundTaskServiceImpl extends CRUDServiceImpl<CustomBackgroundTask,QCustomBackgroundTask,CustomBackgroundTaskDTO,CustomBackgroundTaskData,Void> implements CustomBackgroundTaskServiceLocal
Implementation forCustomBackgroundTaskService
-
-
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
-
Fields inherited from interface org.cyclos.impl.system.CustomBackgroundTaskServiceLocal
ATTR_CONTEXT, ATTR_TASK
-
-
Constructor Summary
Constructors Constructor Description CustomBackgroundTaskServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddCustomInternalNameValidations(Property internalName, CustomBackgroundTaskDTO dto)This method may be overridden to add custom validations for the INTERNAL_NAME property.protected CustomBackgroundTaskDatagetData(CustomBackgroundTask customScheduledTask)Returns details data for the given entityList<CustomBackgroundTaskVO>list()Lists all available custom background tasksList<CustomBackgroundTask>listAll()Lists all existing custom background tasksCustomBackgroundTasknewEntity(Void params)Should be implemented in order to instantiate a new entity based on the given context parametersprotected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the networkprotected ValidatorresolveValidator(CustomBackgroundTaskDTO dto)-
Methods inherited from class org.cyclos.impl.CRUDServiceImpl
addCustomNameValidations, checkConfirmationPassword, doRemove, find, findAll, from, getConfirmationPasswordInput, getConfirmationPasswordInputForRemove, getData, getDataForNew, getDeviceConfirmationParams, getEntityClass, getEntityInternalNameKey, getExcludedPropertiesToDTO, getExcludedPropertiesToEntity, getNameLabel, getUniqueInternalNameQuery, getUniqueNameQuery, isEntityInternalNameRequired, isNameRequired, load, logEntity, onAfterRemove, onAfterSave, 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<CustomBackgroundTaskVO> list() throws FrameworkException
Description copied from interface:CustomBackgroundTaskServiceLists all available custom background tasks- Specified by:
listin interfaceCustomBackgroundTaskService- Throws:
FrameworkException
-
listAll
public List<CustomBackgroundTask> listAll()
Description copied from interface:CustomBackgroundTaskServiceLocalLists all existing custom background tasks- Specified by:
listAllin interfaceCustomBackgroundTaskServiceLocal
-
newEntity
public CustomBackgroundTask 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<CustomBackgroundTask,CustomBackgroundTaskDTO,CustomBackgroundTaskData,Void>- Specified by:
newEntityin classCRUDServiceImpl<CustomBackgroundTask,QCustomBackgroundTask,CustomBackgroundTaskDTO,CustomBackgroundTaskData,Void>
-
addCustomInternalNameValidations
protected void addCustomInternalNameValidations(Property internalName, CustomBackgroundTaskDTO dto)
Description copied from class:CRUDServiceImplThis method may be overridden to add custom validations for the INTERNAL_NAME property.
-
getData
protected CustomBackgroundTaskData getData(CustomBackgroundTask customScheduledTask)
Description copied from class:CRUDServiceImplReturns details data for the given entity- Specified by:
getDatain classCRUDServiceImpl<CustomBackgroundTask,QCustomBackgroundTask,CustomBackgroundTaskDTO,CustomBackgroundTaskData,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(CustomBackgroundTaskDTO dto)
- Specified by:
resolveValidatorin classCRUDServiceImpl<CustomBackgroundTask,QCustomBackgroundTask,CustomBackgroundTaskDTO,CustomBackgroundTaskData,Void>
-
-