Package org.cyclos.impl.users
Class ContactInfoFieldServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.CRUDServiceImpl<CF,A,DTO,D,DP>
-
- org.cyclos.impl.system.BaseCustomFieldServiceImpl<ContactInfoField,ContactInfoFieldPossibleValueCategory,ContactInfoFieldPossibleValue,QContactInfoField,ContactInfoFieldDTO,ContactInfoFieldData,Void>
-
- org.cyclos.impl.users.ContactInfoFieldServiceImpl
-
- All Implemented Interfaces:
CRUDServiceLocal<ContactInfoField,ContactInfoFieldDTO,ContactInfoFieldData,Void>,ContactInfoFieldServiceLocal,CRUDService<ContactInfoFieldDTO,ContactInfoFieldData,Void>,CRUDWithConfirmationPasswordService<ContactInfoFieldDTO,ContactInfoFieldData,Void>,Service,BaseCustomFieldService<ContactInfoFieldDTO,ContactInfoFieldData,Void>,ContactInfoFieldService
@Service public class ContactInfoFieldServiceImpl extends BaseCustomFieldServiceImpl<ContactInfoField,ContactInfoFieldPossibleValueCategory,ContactInfoFieldPossibleValue,QContactInfoField,ContactInfoFieldDTO,ContactInfoFieldData,Void> implements ContactInfoFieldServiceLocal
Service implementation forContactInfoFieldService
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.system.BaseCustomFieldServiceImpl
customFieldValueHandler, customScriptService, dataClass
-
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, 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.users.ContactInfoFieldServiceLocal
ATTR_CONTACT_INFO
-
-
Constructor Summary
Constructors Constructor Description ContactInfoFieldServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddCustomValidations(Validator validator, ContactInfoFieldDTO dto)It may be overridden to add specific validations for the custom field.protected IntegergetMaxOrder(ContactInfoField field)Should be implemented in order to return the maximum order number for fields like the given oneprotected ContactInfoFieldPossibleValueCategoryServiceLocalgetPossibleValueCategoryService()Must be implemented in order to return the corresponding category serviceprotected ContactInfoFieldPossibleValueServiceLocalgetPossibleValueService()Must be implemented in order to return the corresponding possible value serviceprotected booleanisBinaryTypesAllowed()Indicates whether this custom field nature allows binary typesList<CustomFieldVO>list()Lists all contact custom fieldsList<ContactInfoField>listAll()Lists all additional contact information custom fieldsList<ContactInfoField>listEnabled(User user)Lists the additional contact information custom fields enabled for the given userList<ContactInfoField>listForMap()Lists the additional contact information custom fields that can show up on mapContactInfoFieldnewEntity(Void params)Should be implemented in order to instantiate a new entity based on the given context parametersprotected voidonBeforeRemove(ContactInfoField field)May be overridden in order to perform custom logic before removing an entityprotected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the network-
Methods inherited from class org.cyclos.impl.system.BaseCustomFieldServiceImpl
addCustomInternalNameValidations, getData, getPropertyClasses, isEntityInternalNameRequired, onBeforeSave, resolveValidator, supportsValues, toDetailedVOs, toDTO
-
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, isNameRequired, load, logEntity, onAfterRemove, onAfterSave, preProcessCurrentCopy, remove, remove, removeAll, removeAll, removeAllWithConfirmationPassword, removeWithConfirmationPassword, resolveDTOType, resolveEntityType, resolveExtensionPointAccessor, save, saveOrder, saveSkippingEntityLog, saveWithConfirmationPassword, shouldCheckConfirmationPassword, subClassMappings, 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.system.BaseCustomFieldService
saveOrder
-
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<CustomFieldVO> list()
Description copied from interface:ContactInfoFieldServiceLists all contact custom fields- Specified by:
listin interfaceContactInfoFieldService
-
listAll
public List<ContactInfoField> listAll()
Description copied from interface:ContactInfoFieldServiceLocalLists all additional contact information custom fields- Specified by:
listAllin interfaceContactInfoFieldServiceLocal
-
listEnabled
public List<ContactInfoField> listEnabled(User user)
Description copied from interface:ContactInfoFieldServiceLocalLists the additional contact information custom fields enabled for the given user- Specified by:
listEnabledin interfaceContactInfoFieldServiceLocal
-
listForMap
public List<ContactInfoField> listForMap()
Description copied from interface:ContactInfoFieldServiceLocalLists the additional contact information custom fields that can show up on map- Specified by:
listForMapin interfaceContactInfoFieldServiceLocal
-
newEntity
public ContactInfoField 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<ContactInfoField,ContactInfoFieldDTO,ContactInfoFieldData,Void>- Specified by:
newEntityin classCRUDServiceImpl<ContactInfoField,QContactInfoField,ContactInfoFieldDTO,ContactInfoFieldData,Void>
-
addCustomValidations
protected void addCustomValidations(Validator validator, ContactInfoFieldDTO dto)
Description copied from class:BaseCustomFieldServiceImplIt may be overridden to add specific validations for the custom field. NOTE: You musn't add validations for the followings properties: 'internal_name' and 'name'.
UseCRUDServiceImpl.addCustomInternalNameValidations(Property, org.cyclos.model.EntityDTO)orCRUDServiceImpl.addCustomNameValidations(Property, org.cyclos.model.EntityDTO)instead.- Overrides:
addCustomValidationsin classBaseCustomFieldServiceImpl<ContactInfoField,ContactInfoFieldPossibleValueCategory,ContactInfoFieldPossibleValue,QContactInfoField,ContactInfoFieldDTO,ContactInfoFieldData,Void>dto- the DTO to be validated
-
getMaxOrder
protected Integer getMaxOrder(ContactInfoField field)
Description copied from class:BaseCustomFieldServiceImplShould be implemented in order to return the maximum order number for fields like the given one
-
getPossibleValueCategoryService
protected ContactInfoFieldPossibleValueCategoryServiceLocal getPossibleValueCategoryService()
Description copied from class:BaseCustomFieldServiceImplMust be implemented in order to return the corresponding category service
-
getPossibleValueService
protected ContactInfoFieldPossibleValueServiceLocal getPossibleValueService()
Description copied from class:BaseCustomFieldServiceImplMust be implemented in order to return the corresponding possible value service
-
isBinaryTypesAllowed
protected boolean isBinaryTypesAllowed()
Description copied from class:BaseCustomFieldServiceImplIndicates whether this custom field nature allows binary types
-
onBeforeRemove
protected void onBeforeRemove(ContactInfoField field)
Description copied from class:CRUDServiceImplMay be overridden in order to perform custom logic before removing an entity- Overrides:
onBeforeRemovein classCRUDServiceImpl<ContactInfoField,QContactInfoField,ContactInfoFieldDTO,ContactInfoFieldData,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
-
-