Package org.cyclos.impl.users
Class ContactCustomFieldServiceImpl
- 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<ContactCustomField,ContactCustomFieldPossibleValueCategory,ContactCustomFieldPossibleValue,QContactCustomField,ContactCustomFieldDTO,ContactCustomFieldData,Void>
-
- org.cyclos.impl.users.ContactCustomFieldServiceImpl
-
- All Implemented Interfaces:
CRUDServiceLocal<ContactCustomField,ContactCustomFieldDTO,ContactCustomFieldData,Void>,ContactCustomFieldServiceLocal,CRUDService<ContactCustomFieldDTO,ContactCustomFieldData,Void>,CRUDWithConfirmationPasswordService<ContactCustomFieldDTO,ContactCustomFieldData,Void>,Service,BaseCustomFieldService<ContactCustomFieldDTO,ContactCustomFieldData,Void>,ContactCustomFieldService
@Service public class ContactCustomFieldServiceImpl extends BaseCustomFieldServiceImpl<ContactCustomField,ContactCustomFieldPossibleValueCategory,ContactCustomFieldPossibleValue,QContactCustomField,ContactCustomFieldDTO,ContactCustomFieldData,Void> implements ContactCustomFieldServiceLocal
Service implementation forContactCustomFieldService
-
-
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.ContactCustomFieldServiceLocal
ATTR_CONTACT
-
-
Constructor Summary
Constructors Constructor Description ContactCustomFieldServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IntegergetMaxOrder(ContactCustomField field)Should be implemented in order to return the maximum order number for fields like the given oneprotected ContactCustomFieldPossibleValueCategoryServiceLocalgetPossibleValueCategoryService()Must be implemented in order to return the corresponding category serviceprotected ContactCustomFieldPossibleValueServiceLocalgetPossibleValueService()Must be implemented in order to return the corresponding possible value servicebooleanhasEditableFields(UserLocatorVO ownerVO)Returns whether there's at lease one editable field for the given owner, which is assumed to be the logged user when nullprotected booleanisBinaryTypesAllowed()Indicates whether this custom field nature allows binary typesList<CustomFieldVO>list()Lists all contact custom fieldsList<ContactCustomField>listAll()Lists all contact custom fieldsList<ContactCustomField>listEditable(User user)Lists the contact custom fields enabled for the given user that the logged user can editList<ContactCustomField>listEnabled(User user)Lists the contact custom fields enabled for the given userList<ContactCustomField>listInList(User user)Lists the contact custom fields shown in contact list results of the given userList<ContactCustomField>listInSearch(User user)Lists the contact custom fields the logged user filter use when searching the contact list of the given userList<ContactCustomField>listVisible(User user)Lists the contact custom fields enabled for the given user that the logged user can viewContactCustomFieldnewEntity(Void params)Should be implemented in order to instantiate a new entity based on the given context parametersprotected voidonAfterSave(ContactCustomField entity, ContactCustomField currentCopy, Object dataFromOnBeforeSave)May be overridden in order to perform custom logic after saving an entityprotected voidonBeforeRemove(ContactCustomField 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, addCustomValidations, 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, 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, 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.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
-
hasEditableFields
public boolean hasEditableFields(UserLocatorVO ownerVO)
Description copied from interface:ContactCustomFieldServiceReturns whether there's at lease one editable field for the given owner, which is assumed to be the logged user when null- Specified by:
hasEditableFieldsin interfaceContactCustomFieldService
-
list
public List<CustomFieldVO> list()
Description copied from interface:ContactCustomFieldServiceLists all contact custom fields- Specified by:
listin interfaceContactCustomFieldService
-
listAll
public List<ContactCustomField> listAll()
Description copied from interface:ContactCustomFieldServiceLocalLists all contact custom fields- Specified by:
listAllin interfaceContactCustomFieldServiceLocal
-
listEditable
public List<ContactCustomField> listEditable(User user)
Description copied from interface:ContactCustomFieldServiceLocalLists the contact custom fields enabled for the given user that the logged user can edit- Specified by:
listEditablein interfaceContactCustomFieldServiceLocal
-
listEnabled
public List<ContactCustomField> listEnabled(User user)
Description copied from interface:ContactCustomFieldServiceLocalLists the contact custom fields enabled for the given user- Specified by:
listEnabledin interfaceContactCustomFieldServiceLocal
-
listInList
public List<ContactCustomField> listInList(User user)
Description copied from interface:ContactCustomFieldServiceLocalLists the contact custom fields shown in contact list results of the given user- Specified by:
listInListin interfaceContactCustomFieldServiceLocal
-
listInSearch
public List<ContactCustomField> listInSearch(User user)
Description copied from interface:ContactCustomFieldServiceLocalLists the contact custom fields the logged user filter use when searching the contact list of the given user- Specified by:
listInSearchin interfaceContactCustomFieldServiceLocal
-
listVisible
public List<ContactCustomField> listVisible(User user)
Description copied from interface:ContactCustomFieldServiceLocalLists the contact custom fields enabled for the given user that the logged user can view- Specified by:
listVisiblein interfaceContactCustomFieldServiceLocal
-
newEntity
public ContactCustomField 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<ContactCustomField,ContactCustomFieldDTO,ContactCustomFieldData,Void>- Specified by:
newEntityin classCRUDServiceImpl<ContactCustomField,QContactCustomField,ContactCustomFieldDTO,ContactCustomFieldData,Void>
-
getMaxOrder
protected Integer getMaxOrder(ContactCustomField field)
Description copied from class:BaseCustomFieldServiceImplShould be implemented in order to return the maximum order number for fields like the given one
-
getPossibleValueCategoryService
protected ContactCustomFieldPossibleValueCategoryServiceLocal getPossibleValueCategoryService()
Description copied from class:BaseCustomFieldServiceImplMust be implemented in order to return the corresponding category service
-
getPossibleValueService
protected ContactCustomFieldPossibleValueServiceLocal 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
-
onAfterSave
protected void onAfterSave(ContactCustomField entity, ContactCustomField currentCopy, Object dataFromOnBeforeSave)
Description copied from class:CRUDServiceImplMay be overridden in order to perform custom logic after saving an entity- Overrides:
onAfterSavein classCRUDServiceImpl<ContactCustomField,QContactCustomField,ContactCustomFieldDTO,ContactCustomFieldData,Void>
-
onBeforeRemove
protected void onBeforeRemove(ContactCustomField field)
Description copied from class:CRUDServiceImplMay be overridden in order to perform custom logic before removing an entity- Overrides:
onBeforeRemovein classCRUDServiceImpl<ContactCustomField,QContactCustomField,ContactCustomFieldDTO,ContactCustomFieldData,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
-
-