Class AdminService
java.lang.Object
callofproject.dev.project.service.AdminService
- All Implemented Interfaces:
IAdminService
Service class for admin-related operations.
It implements the IAdminService interface.
-
Constructor Summary
ConstructorsConstructorDescriptionAdminService
(callofproject.dev.data.project.dal.ProjectServiceHelper projectServiceHelper, callofproject.dev.nosql.dal.ProjectTagServiceHelper tagServiceHelper, callofproject.dev.nosql.dal.ProjectTagServiceHelper projectTagServiceHelper, IProjectParticipantMapper participantMapper, IProjectMapper projectMapper) Constructor for the AdminService class. -
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.
-
Constructor Details
-
AdminService
public AdminService(callofproject.dev.data.project.dal.ProjectServiceHelper projectServiceHelper, callofproject.dev.nosql.dal.ProjectTagServiceHelper tagServiceHelper, callofproject.dev.nosql.dal.ProjectTagServiceHelper projectTagServiceHelper, IProjectParticipantMapper participantMapper, IProjectMapper projectMapper) Constructor for the AdminService class. It is used to inject dependencies into the service.- Parameters:
projectServiceHelper
- The ProjectServiceHelper object to be injected.tagServiceHelper
- The ProjectTagServiceHelper object to be injected.projectTagServiceHelper
- The ProjectTagServiceHelper object to be injected.participantMapper
- The IProjectParticipantMapper object to be injected.projectMapper
- The IProjectMapper object to be injected.
-
-
Method Details
-
cancelProject
Cancels a project given its unique identifier. This method is responsible for initiating the process to cancel a project.- Specified by:
cancelProject
in interfaceIAdminService
- 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
public callofproject.dev.data.common.clas.ResponseMessage<Object> cancelProjectCallback(UUID projectId) 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.- Specified by:
cancelProjectCallback
in interfaceIAdminService
- 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.- Specified by:
findAll
in interfaceIAdminService
- 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.
-