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 TypeMethodDescriptionvoid
addRelationForm
(Form form, EntityRelation relation) addSubForm
(Form form, NestedEntity nested) createCustomAction
(Form form) createFunction
(Form form) createPrintout
(Form form) void
deleteObject
(Form form) void
deleteObject
(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) void
importObjects
(TransferContext context, org.hibernate.Session session) void
initObject
(Form form) void
notifyBeforeChange
(Entity entity, org.hibernate.Session session) void
notifyChange
(Entity entity, org.hibernate.Session session) void
notifyCreate
(Entity entity, org.hibernate.Session session) void
notifyDelete
(Entity entity, org.hibernate.Session session) void
removeObjects
(Module module, Module currentVersionModule, org.hibernate.Session session) void
saveObject
(Form form) void
saveObject
(Form form, org.hibernate.Session session) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) Methods inherited from class org.seed.core.application.AbstractApplicationEntityService
analyzeObjects, createChangeLogs, findByUid, findObjectsWithoutModule, findUsage, handleSchemaUpdate
Methods inherited from class org.seed.core.data.AbstractSystemEntityService
createInstance, existObjects, findByName, findByName, getObject, getObject, getObjects, getObjects, isEntityType, reloadObject
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.seed.core.application.ApplicationEntityService
analyzeObjects, createChangeLogs, findByUid, findObjectsWithoutModule, handleSchemaUpdate
Methods 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:
initObject
in interfaceSystemEntityService<Form>
- Overrides:
initObject
in classAbstractSystemEntityService<Form>
- Throws:
ValidationException
-
getFilters
- Specified by:
getFilters
in interfaceFormService
-
addSubForm
@Secured("ROLE_ADMIN_FORM") public SubForm addSubForm(Form form, NestedEntity nested) throws ValidationException - Specified by:
addSubForm
in interfaceFormService
- Throws:
ValidationException
-
addRelationForm
@Secured("ROLE_ADMIN_FORM") public void addRelationForm(Form form, EntityRelation relation) throws ValidationException - Specified by:
addRelationForm
in interfaceFormService
- Throws:
ValidationException
-
createFunction
- Specified by:
createFunction
in interfaceFormService
-
createPrintout
- Specified by:
createPrintout
in interfaceFormService
-
createCustomAction
- Specified by:
createCustomAction
in interfaceFormService
-
findForms
- Specified by:
findForms
in interfaceFormService
-
findForms
- Specified by:
findForms
in interfaceFormService
-
findUsage
- Specified by:
findUsage
in interfaceEntityDependent<Form>
-
findUsage
- Specified by:
findUsage
in interfaceEntityDependent<Form>
-
findUsage
public List<Form> findUsage(Entity entity, EntityRelation entityRelation, org.hibernate.Session session) - Specified by:
findUsage
in interfaceEntityDependent<Form>
-
findUsage
- Specified by:
findUsage
in interfaceEntityDependent<Form>
-
findUsage
- Specified by:
findUsage
in interfaceEntityDependent<Form>
-
findUsage
- Specified by:
findUsage
in interfaceEntityDependent<Form>
-
findUsage
- Specified by:
findUsage
in interfaceEntityDependent<Form>
-
findUsage
- Specified by:
findUsage
in interfaceFormDependent<Form>
-
findUsage
- Specified by:
findUsage
in interfaceTransformerDependent<Form>
-
findUsage
- Specified by:
findUsage
in interfaceFilterDependent<Form>
-
getFormTransformers
- Specified by:
getFormTransformers
in interfaceFormService
-
getAvailableTransformers
- Specified by:
getAvailableTransformers
in interfaceFormService
-
getAvailableActions
- Specified by:
getAvailableActions
in interfaceFormService
-
getListFormActions
- Specified by:
getListFormActions
in interfaceFormService
-
getDetailFormActions
- Specified by:
getDetailFormActions
in interfaceFormService
-
getFunctionClass
- Specified by:
getFunctionClass
in interfaceFormService
-
getImportDependencies
- Specified by:
getImportDependencies
in interfaceApplicationEntityService<Form>
-
importObjects
public void importObjects(TransferContext context, org.hibernate.Session session) throws ValidationException - Specified by:
importObjects
in interfaceApplicationEntityService<Form>
- Throws:
ValidationException
-
removeObjects
public void removeObjects(Module module, Module currentVersionModule, org.hibernate.Session session) - Specified by:
removeObjects
in interfaceApplicationEntityService<Form>
-
deleteObject
- Specified by:
deleteObject
in interfaceSystemEntityService<Form>
- Overrides:
deleteObject
in classAbstractSystemEntityService<Form>
- Throws:
ValidationException
-
deleteObject
- Throws:
ValidationException
-
saveObject
- Specified by:
saveObject
in interfaceSystemEntityService<Form>
- Overrides:
saveObject
in classAbstractSystemEntityService<Form>
- Throws:
ValidationException
-
saveObject
- Specified by:
saveObject
in interfaceApplicationEntityService<Form>
- Overrides:
saveObject
in classAbstractApplicationEntityService<Form>
- Throws:
ValidationException
-
notifyCreate
- Specified by:
notifyCreate
in interfaceEntityChangeAware
-
notifyDelete
- Specified by:
notifyDelete
in interfaceEntityChangeAware
-
notifyBeforeChange
- Specified by:
notifyBeforeChange
in interfaceEntityChangeAware
-
notifyChange
- Specified by:
notifyChange
in interfaceEntityChangeAware
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-