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.RestTemplate
createTemplate
(String url) void
deleteObject
(Rest rest) findByMapping
(org.hibernate.Session session, String mapping) getAvailablePermissions
(Rest rest, org.hibernate.Session session) Class<? extends ApplicationEntityService<ApplicationEntity>>[]
void
importObjects
(TransferContext context, org.hibernate.Session session) void
removeFunction
(Rest rest, RestFunction function) void
removeObjects
(Module module, Module currentVersionModule, org.hibernate.Session session) void
saveObject
(Rest rest) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) Methods inherited from class org.seed.core.application.AbstractApplicationEntityService
analyzeObjects, createChangeLogs, findByUid, findObjectsWithoutModule, findUsage, handleSchemaUpdate, saveObject
Methods inherited from class org.seed.core.data.AbstractSystemEntityService
existObjects, findByName, findByName, getObject, getObject, getObjects, getObjects, initObject, 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, saveObject
Methods 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:
createInstance
in interfaceSystemEntityService<Rest>
- Overrides:
createInstance
in classAbstractSystemEntityService<Rest>
-
createTemplate
- Specified by:
createTemplate
in interfaceRestService
-
createFunction
- Specified by:
createFunction
in interfaceRestService
-
removeFunction
- Specified by:
removeFunction
in interfaceRestService
-
getImportDependencies
- Specified by:
getImportDependencies
in interfaceApplicationEntityService<Rest>
-
findByMapping
- Specified by:
findByMapping
in interfaceRestService
-
findUsage
- Specified by:
findUsage
in interfaceUserGroupDependent<Rest>
-
callFunction
public Object callFunction(RestFunction function, RestFunction.MethodType method, Object body, String[] parameters, org.hibernate.Session session) - Specified by:
callFunction
in interfaceRestService
-
getAvailablePermissions
- Specified by:
getAvailablePermissions
in interfaceRestService
-
importObjects
public void importObjects(TransferContext context, org.hibernate.Session session) throws ValidationException - Specified by:
importObjects
in interfaceApplicationEntityService<Rest>
- Throws:
ValidationException
-
deleteObject
- Specified by:
deleteObject
in interfaceSystemEntityService<Rest>
- Overrides:
deleteObject
in classAbstractSystemEntityService<Rest>
- Throws:
ValidationException
-
removeObjects
public void removeObjects(Module module, Module currentVersionModule, org.hibernate.Session session) - Specified by:
removeObjects
in interfaceApplicationEntityService<Rest>
-
saveObject
- Specified by:
saveObject
in interfaceSystemEntityService<Rest>
- Overrides:
saveObject
in classAbstractSystemEntityService<Rest>
- Throws:
ValidationException
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-