Package org.seed.core.form
Class FormServiceImpl
- All Implemented Interfaces:
ApplicationEntityService<Form>,ModuleDependent<Form>,SystemEntityService<Form>,EntityChangeAware,EntityDependent<Form>,FilterDependent<Form>,TransformerDependent<Form>,FormDependent<Form>,FormService,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@Service
public class FormServiceImpl
extends AbstractApplicationEntityService<Form>
implements FormService, EntityChangeAware, EntityDependent<Form>, FormDependent<Form>, FilterDependent<Form>, TransformerDependent<Form>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRelationForm(Form form, EntityRelation relation) addSubForm(Form form, NestedEntity nested) createCustomAction(Form form) createFunction(Form form) createPrintout(Form form) voiddeleteObject(Form form) voiddeleteObject(Form form, org.hibernate.Session session) findUsage(EntityFunction entityFunction, org.hibernate.Session session) findUsage(Entity entity, EntityFieldGroup fieldGroup) findUsage(Entity entity, EntityField entityField, org.hibernate.Session session) findUsage(Entity entity, EntityRelation entityRelation, org.hibernate.Session session) findUsage(EntityStatus entityStatus, org.hibernate.Session session) findUsage(NestedEntity nestedEntity, org.hibernate.Session session) findUsage(Transformer transformer, org.hibernate.Session session) getAvailableActions(Form form) getAvailableTransformers(Form form, org.hibernate.Session session) getDetailFormActions(Form form) getFilters(Form form, org.hibernate.Session session) getFormTransformers(Form form, User user, EntityStatus status) getFunctionClass(Form form, String functionName) Class<? extends ApplicationEntityService<ApplicationEntity>>[]getListFormActions(Form form) voidimportObjects(TransferContext context, org.hibernate.Session session) voidinitObject(Form form) voidnotifyBeforeChange(Entity entity, org.hibernate.Session session) voidnotifyChange(Entity entity, org.hibernate.Session session) voidnotifyCreate(Entity entity, org.hibernate.Session session) voidnotifyDelete(Entity entity, org.hibernate.Session session) voidremoveObjects(Module module, Module currentVersionModule, org.hibernate.Session session) voidsaveObject(Form form) voidsaveObject(Form form, org.hibernate.Session session) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Methods inherited from class org.seed.core.application.AbstractApplicationEntityService
analyzeObjects, createChangeLogs, findByUid, findObjectsWithoutModule, findUsage, handleSchemaUpdateMethods inherited from class org.seed.core.data.AbstractSystemEntityService
createInstance, existObjects, findByName, findByName, getObject, getObject, getObjects, getObjects, isEntityType, reloadObjectMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.seed.core.application.ApplicationEntityService
analyzeObjects, createChangeLogs, findByUid, findObjectsWithoutModule, handleSchemaUpdateMethods inherited from interface org.seed.core.data.SystemEntityService
createInstance, existObjects, findByName, findByName, getObject, getObject, getObjects, getObjects, isEntityType, reloadObject
-
Constructor Details
-
FormServiceImpl
public FormServiceImpl()
-
-
Method Details
-
initObject
- Specified by:
initObjectin interfaceSystemEntityService<Form>- Overrides:
initObjectin classAbstractSystemEntityService<Form>- Throws:
ValidationException
-
getFilters
- Specified by:
getFiltersin interfaceFormService
-
addSubForm
@Secured("ROLE_ADMIN_FORM") public SubForm addSubForm(Form form, NestedEntity nested) throws ValidationException - Specified by:
addSubFormin interfaceFormService- Throws:
ValidationException
-
addRelationForm
@Secured("ROLE_ADMIN_FORM") public void addRelationForm(Form form, EntityRelation relation) throws ValidationException - Specified by:
addRelationFormin interfaceFormService- Throws:
ValidationException
-
createFunction
- Specified by:
createFunctionin interfaceFormService
-
createPrintout
- Specified by:
createPrintoutin interfaceFormService
-
createCustomAction
- Specified by:
createCustomActionin interfaceFormService
-
findForms
- Specified by:
findFormsin interfaceFormService
-
findForms
- Specified by:
findFormsin interfaceFormService
-
findUsage
- Specified by:
findUsagein interfaceEntityDependent<Form>
-
findUsage
- Specified by:
findUsagein interfaceEntityDependent<Form>
-
findUsage
public List<Form> findUsage(Entity entity, EntityRelation entityRelation, org.hibernate.Session session) - Specified by:
findUsagein interfaceEntityDependent<Form>
-
findUsage
- Specified by:
findUsagein interfaceEntityDependent<Form>
-
findUsage
- Specified by:
findUsagein interfaceEntityDependent<Form>
-
findUsage
- Specified by:
findUsagein interfaceEntityDependent<Form>
-
findUsage
- Specified by:
findUsagein interfaceEntityDependent<Form>
-
findUsage
- Specified by:
findUsagein interfaceFormDependent<Form>
-
findUsage
- Specified by:
findUsagein interfaceTransformerDependent<Form>
-
findUsage
- Specified by:
findUsagein interfaceFilterDependent<Form>
-
getFormTransformers
- Specified by:
getFormTransformersin interfaceFormService
-
getAvailableTransformers
- Specified by:
getAvailableTransformersin interfaceFormService
-
getAvailableActions
- Specified by:
getAvailableActionsin interfaceFormService
-
getListFormActions
- Specified by:
getListFormActionsin interfaceFormService
-
getDetailFormActions
- Specified by:
getDetailFormActionsin interfaceFormService
-
getFunctionClass
- Specified by:
getFunctionClassin interfaceFormService
-
getImportDependencies
- Specified by:
getImportDependenciesin interfaceApplicationEntityService<Form>
-
importObjects
public void importObjects(TransferContext context, org.hibernate.Session session) throws ValidationException - Specified by:
importObjectsin interfaceApplicationEntityService<Form>- Throws:
ValidationException
-
removeObjects
public void removeObjects(Module module, Module currentVersionModule, org.hibernate.Session session) - Specified by:
removeObjectsin interfaceApplicationEntityService<Form>
-
deleteObject
- Specified by:
deleteObjectin interfaceSystemEntityService<Form>- Overrides:
deleteObjectin classAbstractSystemEntityService<Form>- Throws:
ValidationException
-
deleteObject
- Throws:
ValidationException
-
saveObject
- Specified by:
saveObjectin interfaceSystemEntityService<Form>- Overrides:
saveObjectin classAbstractSystemEntityService<Form>- Throws:
ValidationException
-
saveObject
- Specified by:
saveObjectin interfaceApplicationEntityService<Form>- Overrides:
saveObjectin classAbstractApplicationEntityService<Form>- Throws:
ValidationException
-
notifyCreate
- Specified by:
notifyCreatein interfaceEntityChangeAware
-
notifyDelete
- Specified by:
notifyDeletein interfaceEntityChangeAware
-
notifyBeforeChange
- Specified by:
notifyBeforeChangein interfaceEntityChangeAware
-
notifyChange
- Specified by:
notifyChangein interfaceEntityChangeAware
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-