Package org.seed.core.rest
Class RestServiceImpl
- All Implemented Interfaces:
ApplicationEntityService<Rest>,ModuleDependent<Rest>,SystemEntityService<Rest>,RestService,UserGroupDependent<Rest>,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@Service
public class RestServiceImpl
extends AbstractApplicationEntityService<Rest>
implements RestService, UserGroupDependent<Rest>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncallFunction(RestFunction function, RestFunction.MethodType method, Object body, String[] parameters, org.hibernate.Session session) createFunction(Rest rest) createInstance(Options options) org.springframework.web.client.RestTemplatecreateTemplate(String url) voiddeleteObject(Rest rest) findByMapping(org.hibernate.Session session, String mapping) getAvailablePermissions(Rest rest, org.hibernate.Session session) Class<? extends ApplicationEntityService<ApplicationEntity>>[]voidimportObjects(TransferContext context, org.hibernate.Session session) voidremoveFunction(Rest rest, RestFunction function) voidremoveObjects(Module module, Module currentVersionModule, org.hibernate.Session session) voidsaveObject(Rest rest) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Methods inherited from class org.seed.core.application.AbstractApplicationEntityService
analyzeObjects, createChangeLogs, findByUid, findObjectsWithoutModule, findUsage, handleSchemaUpdate, saveObjectMethods inherited from class org.seed.core.data.AbstractSystemEntityService
existObjects, findByName, findByName, getObject, getObject, getObjects, getObjects, initObject, 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, handleSchemaUpdate, saveObjectMethods inherited from interface org.seed.core.data.SystemEntityService
existObjects, findByName, findByName, getObject, getObject, getObjects, getObjects, initObject, isEntityType, reloadObject
-
Constructor Details
-
RestServiceImpl
public RestServiceImpl()
-
-
Method Details
-
createInstance
- Specified by:
createInstancein interfaceSystemEntityService<Rest>- Overrides:
createInstancein classAbstractSystemEntityService<Rest>
-
createTemplate
- Specified by:
createTemplatein interfaceRestService
-
createFunction
- Specified by:
createFunctionin interfaceRestService
-
removeFunction
- Specified by:
removeFunctionin interfaceRestService
-
getImportDependencies
- Specified by:
getImportDependenciesin interfaceApplicationEntityService<Rest>
-
findByMapping
- Specified by:
findByMappingin interfaceRestService
-
findUsage
- Specified by:
findUsagein interfaceUserGroupDependent<Rest>
-
callFunction
public Object callFunction(RestFunction function, RestFunction.MethodType method, Object body, String[] parameters, org.hibernate.Session session) - Specified by:
callFunctionin interfaceRestService
-
getAvailablePermissions
- Specified by:
getAvailablePermissionsin interfaceRestService
-
importObjects
public void importObjects(TransferContext context, org.hibernate.Session session) throws ValidationException - Specified by:
importObjectsin interfaceApplicationEntityService<Rest>- Throws:
ValidationException
-
deleteObject
- Specified by:
deleteObjectin interfaceSystemEntityService<Rest>- Overrides:
deleteObjectin classAbstractSystemEntityService<Rest>- Throws:
ValidationException
-
removeObjects
public void removeObjects(Module module, Module currentVersionModule, org.hibernate.Session session) - Specified by:
removeObjectsin interfaceApplicationEntityService<Rest>
-
saveObject
- Specified by:
saveObjectin interfaceSystemEntityService<Rest>- Overrides:
saveObjectin classAbstractSystemEntityService<Rest>- Throws:
ValidationException
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-