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.void
deleteApplication
(String nameOrId) Deletes an Application with the specific name or identifier.getApplication
(String nameOrId) Gets an application with the specific name or identifier.Lists allApplication
instances 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.void
setApplicationDao
(ApplicationDao applicationDao) void
setApplicationUrls
(ApplicationUrls applicationUrls) void
setDozerMapper
(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:ApplicationService
Lists allApplication
instances avaiable to the current user.- Specified by:
getApplications
in interfaceApplicationService
- Returns:
- a
Pagination<Application>
for all available instances.
-
createApplication
Description copied from interface:ApplicationService
Creates a new application and inserts it into the database. The retruned value represents theCreateApplicationRequest
as it was inserted into the database.- Specified by:
createApplication
in interfaceApplicationService
- Parameters:
createApplicationRequest
- the application- Returns:
- the application
-
getApplications
Description copied from interface:ApplicationService
Gets the applications registered in the databse given the offset and count.- Specified by:
getApplications
in interfaceApplicationService
- Parameters:
offset
- the offsetcount
- the count- Returns:
- a
Pagination
ofApplication
instances
-
getApplications
Description copied from interface:ApplicationService
Gets the applications registered in the databse given the offset and count.- Specified by:
getApplications
in interfaceApplicationService
- Parameters:
offset
- the offsetcount
- the countsearch
- a query to filter the results- Returns:
- a
Pagination
ofApplication
instances
-
getApplication
Description copied from interface:ApplicationService
Gets an application with the specific name or identifier.- Specified by:
getApplication
in interfaceApplicationService
-
updateApplication
public Application updateApplication(String nameOrId, UpdateApplicationRequest updateApplicationRequest) Description copied from interface:ApplicationService
Updates an application with the specific name/identifiers.- Specified by:
updateApplication
in interfaceApplicationService
- Parameters:
nameOrId
- the name, or idupdateApplicationRequest
- theUpdateApplicationRequest
object to write- Returns:
- the
Application
object as it was persisted to the database.
-
deleteApplication
Description copied from interface:ApplicationService
Deletes an Application with the specific name or identifier.- Specified by:
deleteApplication
in interfaceApplicationService
- Parameters:
nameOrId
- the name, or id
-
getApplicationDao
-
setApplicationDao
-
getApplicationUrls
-
setApplicationUrls
-
getDozerMapper
-
setDozerMapper
-