Interface ApplicationService
- All Known Implementing Classes:
AnonApplicationService,SuperUserApplicationService
public interface ApplicationService
Manages the lifecycle of the
Application instance.
Created by patricktwohig on 7/10/15.-
Method Summary
Modifier and TypeMethodDescriptioncreateApplication(CreateApplicationRequest applicationRequest) 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.updateApplication(String nameOrId, UpdateApplicationRequest applicationRequest) Updates an application with the specific name/identifiers.
-
Method Details
-
createApplication
Creates a new application and inserts it into the database. The retruned value represents theCreateApplicationRequestas it was inserted into the database.- Parameters:
applicationRequest- the application- Returns:
- the application
-
getApplications
Pagination<Application> getApplications()Lists allApplicationinstances avaiable to the current user.- Returns:
- a
Pagination<Application>for all available instances.
-
getApplications
Gets the applications registered in the databse given the offset and count.- Parameters:
offset- the offsetcount- the count- Returns:
- a
PaginationofApplicationinstances
-
getApplications
Gets the applications registered in the databse given the offset and count.- Parameters:
offset- the offsetcount- the countsearch- a query to filter the results- Returns:
- a
PaginationofApplicationinstances
-
getApplication
Gets an application with the specific name or identifier. -
updateApplication
Updates an application with the specific name/identifiers.- Parameters:
nameOrId- the name, or idapplicationRequest- theUpdateApplicationRequestobject to write- Returns:
- the
Applicationobject as it was persisted to the database.
-
deleteApplication
Deletes an Application with the specific name or identifier.- Parameters:
nameOrId- the name, or id
-