Class SuperUserApplicationService
java.lang.Object
dev.getelements.elements.service.application.SuperUserApplicationService
- All Implemented Interfaces:
ApplicationService
ApplicationService implemented for when the current user has User.Level.SUPERUSER access.
Created by patricktwohig on 7/10/15.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateApplication(CreateApplicationRequest createApplicationRequest) Creates a new application and inserts it into the database.voiddeleteApplication(String nameOrId) Deletes an Application with the specific name or identifier.getApplication(String nameOrId) Gets an application with the specific name or identifier.Lists allApplicationinstances avaiable to the current user.getApplications(int offset, int count) Gets the applications registered in the databse given the offset and count.getApplications(int offset, int count, String search) Gets the applications registered in the databse given the offset and count.voidsetApplicationDao(ApplicationDao applicationDao) voidsetApplicationUrls(ApplicationUrls applicationUrls) voidsetDozerMapper(MapperRegistry dozerMapperRegistry) updateApplication(String nameOrId, UpdateApplicationRequest updateApplicationRequest) Updates an application with the specific name/identifiers.
-
Constructor Details
-
SuperUserApplicationService
public SuperUserApplicationService()
-
-
Method Details
-
getApplications
Description copied from interface:ApplicationServiceLists allApplicationinstances avaiable to the current user.- Specified by:
getApplicationsin interfaceApplicationService- Returns:
- a
Pagination<Application>for all available instances.
-
createApplication
Description copied from interface:ApplicationServiceCreates a new application and inserts it into the database. The retruned value represents theCreateApplicationRequestas it was inserted into the database.- Specified by:
createApplicationin interfaceApplicationService- Parameters:
createApplicationRequest- the application- Returns:
- the application
-
getApplications
Description copied from interface:ApplicationServiceGets the applications registered in the databse given the offset and count.- Specified by:
getApplicationsin interfaceApplicationService- Parameters:
offset- the offsetcount- the count- Returns:
- a
PaginationofApplicationinstances
-
getApplications
Description copied from interface:ApplicationServiceGets the applications registered in the databse given the offset and count.- Specified by:
getApplicationsin interfaceApplicationService- Parameters:
offset- the offsetcount- the countsearch- a query to filter the results- Returns:
- a
PaginationofApplicationinstances
-
getApplication
Description copied from interface:ApplicationServiceGets an application with the specific name or identifier.- Specified by:
getApplicationin interfaceApplicationService
-
updateApplication
public Application updateApplication(String nameOrId, UpdateApplicationRequest updateApplicationRequest) Description copied from interface:ApplicationServiceUpdates an application with the specific name/identifiers.- Specified by:
updateApplicationin interfaceApplicationService- Parameters:
nameOrId- the name, or idupdateApplicationRequest- theUpdateApplicationRequestobject to write- Returns:
- the
Applicationobject as it was persisted to the database.
-
deleteApplication
Description copied from interface:ApplicationServiceDeletes an Application with the specific name or identifier.- Specified by:
deleteApplicationin interfaceApplicationService- Parameters:
nameOrId- the name, or id
-
getApplicationDao
-
setApplicationDao
-
getApplicationUrls
-
setApplicationUrls
-
getDozerMapper
-
setDozerMapper
-