Class MobilePageServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.CRUDServiceImpl<MobilePage,QMobilePage,MobilePageDTO,MobilePageData,ConfigurationVO>
-
- org.cyclos.impl.contentmanagement.MobilePageServiceImpl
-
- All Implemented Interfaces:
MobilePageServiceLocal,CRUDServiceLocal<MobilePage,MobilePageDTO,MobilePageData,ConfigurationVO>,MobilePageService,CRUDService<MobilePageDTO,MobilePageData,ConfigurationVO>,CRUDWithConfirmationPasswordService<MobilePageDTO,MobilePageData,ConfigurationVO>,Service
@Service public class MobilePageServiceImpl extends CRUDServiceImpl<MobilePage,QMobilePage,MobilePageDTO,MobilePageData,ConfigurationVO> implements MobilePageServiceLocal
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.CRUDServiceImpl
$, ATTR_CURRENT_COPY, cacheHandler, dtoClass, entityClass, extensionPointService, idPath, internalNamePath, namePath, ownerEntityIdPath, ownerEntityPath, ownerEntityPropertyName, passwordHandler, 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 MobilePageServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddCustomNameValidations(Property name, MobilePageDTO dto)This method may be overridden to add custom validations for the NAME property.protected List<MobilePage>doList(Configuration configuration)protected List<MobilePage>doList(Configuration configuration, Boolean forMobileApp, Boolean forMobilePos)StringgetContent(Long id)Returns the content of a mobile pageprotected MobilePageDatagetData(MobilePage entity)Returns details data for the given entityMobilePagesListDatagetListData(ConfigurationVO configurationVO)Returns data with a list of mobile pages in a given configurationList<MobilePage>getMobilePages()Returns the mobile pages for the current configuration including ancestorsprotected StringgetNameLabel(MobilePageDTO dto)List<MobilePage>getPosMobilePages()Returns the mobile pages for the current configuration including ancestors shown in POS.List<MobilePage>getUserMobilePages()Returns the mobile pages for the current configuration including ancestors shown in Mobile.List<MobilePageVO>list(ConfigurationVO configurationVO)Lists all mobile pages for the given configurationMobilePagenewEntity(ConfigurationVO configurationVO)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(MobilePageDTO dto)MobilePageDTOtoDTO(MobilePage entity)Converts the given entity in a DTO, handling theCRUDServiceImpl.subClassMappings()mappings for subclassesMobilePagetoEntity(MobilePageDTO dto)Converts the given DTO in an entity, handling theCRUDServiceImpl.subClassMappings()mappings for subclasses-
Methods inherited from class org.cyclos.impl.CRUDServiceImpl
addCustomInternalNameValidations, checkConfirmationPassword, doRemove, find, findAll, from, getConfirmationPasswordInput, getConfirmationPasswordInputForRemove, getData, getDataForNew, getDeviceConfirmationParams, getEntityClass, getEntityInternalNameKey, getExcludedPropertiesToDTO, getExcludedPropertiesToEntity, 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, 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, validate
-
Methods inherited from interface org.cyclos.services.contentmanagement.MobilePageService
saveOrder
-
-
-
-
Method Detail
-
getContent
public String getContent(Long id) throws FrameworkException
Description copied from interface:MobilePageServiceReturns the content of a mobile page- Specified by:
getContentin interfaceMobilePageService- Throws:
FrameworkException
-
getListData
public MobilePagesListData getListData(ConfigurationVO configurationVO) throws FrameworkException
Description copied from interface:MobilePageServiceReturns data with a list of mobile pages in a given configuration- Specified by:
getListDatain interfaceMobilePageService- Throws:
FrameworkException
-
getMobilePages
public List<MobilePage> getMobilePages() throws FrameworkException
Description copied from interface:MobilePageServiceLocalReturns the mobile pages for the current configuration including ancestors- Specified by:
getMobilePagesin interfaceMobilePageServiceLocal- Throws:
FrameworkException
-
getPosMobilePages
public List<MobilePage> getPosMobilePages() throws FrameworkException
Description copied from interface:MobilePageServiceLocalReturns the mobile pages for the current configuration including ancestors shown in POS.- Specified by:
getPosMobilePagesin interfaceMobilePageServiceLocal- Throws:
FrameworkException
-
getUserMobilePages
public List<MobilePage> getUserMobilePages() throws FrameworkException
Description copied from interface:MobilePageServiceLocalReturns the mobile pages for the current configuration including ancestors shown in Mobile.- Specified by:
getUserMobilePagesin interfaceMobilePageServiceLocal- Throws:
FrameworkException
-
list
public List<MobilePageVO> list(ConfigurationVO configurationVO) throws FrameworkException
Description copied from interface:MobilePageServiceLists all mobile pages for the given configuration- Specified by:
listin interfaceMobilePageService- Throws:
FrameworkException
-
newEntity
public MobilePage newEntity(ConfigurationVO configurationVO)
Description copied from class:CRUDServiceImplShould be implemented in order to instantiate a new entity based on the given context parameters- Specified by:
newEntityin interfaceCRUDServiceLocal<MobilePage,MobilePageDTO,MobilePageData,ConfigurationVO>- Specified by:
newEntityin classCRUDServiceImpl<MobilePage,QMobilePage,MobilePageDTO,MobilePageData,ConfigurationVO>
-
toDTO
public MobilePageDTO toDTO(MobilePage entity)
Description copied from class:CRUDServiceImplConverts the given entity in a DTO, handling theCRUDServiceImpl.subClassMappings()mappings for subclasses- Specified by:
toDTOin interfaceCRUDServiceLocal<MobilePage,MobilePageDTO,MobilePageData,ConfigurationVO>- Overrides:
toDTOin classCRUDServiceImpl<MobilePage,QMobilePage,MobilePageDTO,MobilePageData,ConfigurationVO>
-
toEntity
public MobilePage toEntity(MobilePageDTO dto)
Description copied from class:CRUDServiceImplConverts the given DTO in an entity, handling theCRUDServiceImpl.subClassMappings()mappings for subclasses- Specified by:
toEntityin interfaceCRUDServiceLocal<MobilePage,MobilePageDTO,MobilePageData,ConfigurationVO>- Overrides:
toEntityin classCRUDServiceImpl<MobilePage,QMobilePage,MobilePageDTO,MobilePageData,ConfigurationVO>
-
addCustomNameValidations
protected void addCustomNameValidations(Property name, MobilePageDTO dto)
Description copied from class:CRUDServiceImplThis method may be overridden to add custom validations for the NAME property.- Overrides:
addCustomNameValidationsin classCRUDServiceImpl<MobilePage,QMobilePage,MobilePageDTO,MobilePageData,ConfigurationVO>
-
doList
protected List<MobilePage> doList(Configuration configuration)
-
doList
protected List<MobilePage> doList(Configuration configuration, Boolean forMobileApp, Boolean forMobilePos)
-
getData
protected MobilePageData getData(MobilePage entity)
Description copied from class:CRUDServiceImplReturns details data for the given entity- Specified by:
getDatain classCRUDServiceImpl<MobilePage,QMobilePage,MobilePageDTO,MobilePageData,ConfigurationVO>
-
getNameLabel
protected String getNameLabel(MobilePageDTO dto)
- Overrides:
getNameLabelin classCRUDServiceImpl<MobilePage,QMobilePage,MobilePageDTO,MobilePageData,ConfigurationVO>
-
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(MobilePageDTO dto)
- Specified by:
resolveValidatorin classCRUDServiceImpl<MobilePage,QMobilePage,MobilePageDTO,MobilePageData,ConfigurationVO>
-
-