Interface IAdminService
- All Known Implementing Classes:
AdminService
public interface IAdminService
Interface for the admin service. This interface defines methods for admin-related operations
such as cancelling projects and finding all projects with pagination.
-
Method Summary
Modifier and TypeMethodDescriptioncallofproject.dev.data.common.clas.ResponseMessage<Object>
cancelProject
(UUID projectId) Cancels a project given its unique identifier.callofproject.dev.data.common.clas.ResponseMessage<Object>
cancelProjectCallback
(UUID projectId) Callback method for after a project cancellation is processed.callofproject.dev.data.common.clas.MultipleResponseMessagePageable<Object>
findAll
(int page) Retrieves a paginated list of all projects.
-
Method Details
-
cancelProject
Cancels a project given its unique identifier. This method is responsible for initiating the process to cancel a project.- Parameters:
projectId
- The UUID of the project to be cancelled.- Returns:
- A ResponseMessage containing an object, usually providing information about the operation's success or failure.
-
cancelProjectCallback
Callback method for after a project cancellation is processed. This method might be used for operations that need to be performed after a project has been successfully cancelled.- Parameters:
projectId
- The UUID of the cancelled project.- Returns:
- A ResponseMessage containing an object, typically details or status of the post-cancellation process.
-
findAll
Retrieves a paginated list of all projects. This method is used for fetching projects in a paginated format, useful for admin dashboard listing or similar use cases.- Parameters:
page
- The page number for which the data is to be fetched.- Returns:
- A MultipleResponseMessagePageable containing a list of objects (projects) with pagination information.
-