Class AnonApplicationService
java.lang.Object
dev.getelements.elements.service.application.AnonApplicationService
- All Implemented Interfaces:
ApplicationService
Created by patricktwohig on 6/26/17.
-
Constructor Summary
Constructors -
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.void
setApplicationDao
(ApplicationDao applicationDao) void
setApplicationUrls
(ApplicationUrls applicationUrls) updateApplication
(String nameOrId, UpdateApplicationRequest applicationRequest) Updates an application with the specific name/identifiers.
-
Constructor Details
-
AnonApplicationService
public AnonApplicationService()
-
-
Method Details
-
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:
applicationRequest
- the application- Returns:
- the application
-
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.
-
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
Description copied from interface:ApplicationService
Updates an application with the specific name/identifiers.- Specified by:
updateApplication
in interfaceApplicationService
- Parameters:
nameOrId
- the name, or idapplicationRequest
- 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
-