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.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.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 theCreateApplicationRequest
as it was inserted into the database.- Parameters:
applicationRequest
- the application- Returns:
- the application
-
getApplications
Pagination<Application> getApplications()Lists allApplication
instances 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
Pagination
ofApplication
instances
-
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
Pagination
ofApplication
instances
-
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
- theUpdateApplicationRequest
object to write- Returns:
- the
Application
object as it was persisted to the database.
-
deleteApplication
Deletes an Application with the specific name or identifier.- Parameters:
nameOrId
- the name, or id
-