Package org.cyclos.impl.system
Class ExtensionPointServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.CRUDServiceImpl<ExtensionPoint,QExtensionPoint,ExtensionPointDTO,ExtensionPointData,ExtensionPointNature>
-
- org.cyclos.impl.system.ExtensionPointServiceImpl
-
- All Implemented Interfaces:
CRUDServiceLocal<ExtensionPoint,ExtensionPointDTO,ExtensionPointData,ExtensionPointNature>,ExtensionPointServiceLocal,CRUDService<ExtensionPointDTO,ExtensionPointData,ExtensionPointNature>,CRUDWithConfirmationPasswordService<ExtensionPointDTO,ExtensionPointData,ExtensionPointNature>,Service,ExtensionPointService
@Service public class ExtensionPointServiceImpl extends CRUDServiceImpl<ExtensionPoint,QExtensionPoint,ExtensionPointDTO,ExtensionPointData,ExtensionPointNature> implements ExtensionPointServiceLocal
Implementation forExtensionPointService
-
-
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 ExtensionPointServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ExtensionPointDatagetData(ExtensionPoint entity)Returns details data for the given entityvoidinitialize()List<ExtensionPointVO>list()Returns all extension pointsExtensionPointAccessornewAccessor(ExtensionPointEvent event, ExtensionPointFilter filter)Returns an accessor capable of dispatching the given event.ExtensionPointnewEntity(ExtensionPointNature nature)Should be implemented in order to instantiate a new entity based on the given context parametersprotected voidonAfterRemove(ExtensionPoint entity)May be overridden in order to perform custom logic after removing an entityprotected voidonAfterSave(ExtensionPoint entity, ExtensionPoint 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(ExtensionPointDTO dto)protected org.apache.commons.collections4.BidiMap<Class<? extends ExtensionPoint>,Class<? extends ExtensionPointDTO>>subClassMappings()Should be overridden by subclasses which handle entity / dto hierarchies.-
Methods inherited from class org.cyclos.impl.CRUDServiceImpl
addCustomInternalNameValidations, addCustomNameValidations, checkConfirmationPassword, doRemove, 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, 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
-
initialize
@PostConstruct public void initialize()
-
list
public List<ExtensionPointVO> list() throws FrameworkException
Description copied from interface:ExtensionPointServiceReturns all extension points- Specified by:
listin interfaceExtensionPointService- Throws:
FrameworkException
-
newAccessor
public ExtensionPointAccessor newAccessor(ExtensionPointEvent event, ExtensionPointFilter filter) throws FrameworkException
Description copied from interface:ExtensionPointServiceLocalReturns an accessor capable of dispatching the given event. The filter object is either a group or a transfer type, and is used to filter the applicable extension points. This method never returns null - if no extension points match, a no-op implementation is returned- Specified by:
newAccessorin interfaceExtensionPointServiceLocal- Throws:
FrameworkException
-
newEntity
public ExtensionPoint newEntity(ExtensionPointNature nature)
Description copied from class:CRUDServiceImplShould be implemented in order to instantiate a new entity based on the given context parameters- Specified by:
newEntityin interfaceCRUDServiceLocal<ExtensionPoint,ExtensionPointDTO,ExtensionPointData,ExtensionPointNature>- Specified by:
newEntityin classCRUDServiceImpl<ExtensionPoint,QExtensionPoint,ExtensionPointDTO,ExtensionPointData,ExtensionPointNature>
-
getData
protected ExtensionPointData getData(ExtensionPoint entity)
Description copied from class:CRUDServiceImplReturns details data for the given entity- Specified by:
getDatain classCRUDServiceImpl<ExtensionPoint,QExtensionPoint,ExtensionPointDTO,ExtensionPointData,ExtensionPointNature>
-
onAfterRemove
protected void onAfterRemove(ExtensionPoint entity)
Description copied from class:CRUDServiceImplMay be overridden in order to perform custom logic after removing an entity- Overrides:
onAfterRemovein classCRUDServiceImpl<ExtensionPoint,QExtensionPoint,ExtensionPointDTO,ExtensionPointData,ExtensionPointNature>
-
onAfterSave
protected void onAfterSave(ExtensionPoint entity, ExtensionPoint currentCopy, Object dataFromOnBeforeSave)
Description copied from class:CRUDServiceImplMay be overridden in order to perform custom logic after saving an entity- Overrides:
onAfterSavein classCRUDServiceImpl<ExtensionPoint,QExtensionPoint,ExtensionPointDTO,ExtensionPointData,ExtensionPointNature>
-
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(ExtensionPointDTO dto)
- Specified by:
resolveValidatorin classCRUDServiceImpl<ExtensionPoint,QExtensionPoint,ExtensionPointDTO,ExtensionPointData,ExtensionPointNature>
-
subClassMappings
protected org.apache.commons.collections4.BidiMap<Class<? extends ExtensionPoint>,Class<? extends ExtensionPointDTO>> subClassMappings()
Description copied from class:CRUDServiceImplShould be overridden by subclasses which handle entity / dto hierarchies. The map key should be the entity class, while the map value, the DTO class- Overrides:
subClassMappingsin classCRUDServiceImpl<ExtensionPoint,QExtensionPoint,ExtensionPointDTO,ExtensionPointData,ExtensionPointNature>
-
-