Class OrganizationServiceImpl
java.lang.Object
org.example.crmedu.domain.service.organization.OrganizationServiceImpl
- All Implemented Interfaces:
OrganizationService
Implementation of the
OrganizationService
interface. Provides business logic for managing Organization
entities.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Check if organization with this unique identifier exists.create
(Organization organization) Creates a new organization.void
Deletes an organization by its unique identifier.findAll
(int pageNumber, int pageSize) Retrieves a paginated list of organizations.Retrieves an organization by its unique identifier.void
update
(Organization organization, Long id) Updates an existing organization.
-
Constructor Details
-
OrganizationServiceImpl
public OrganizationServiceImpl()
-
-
Method Details
-
create
Description copied from interface:OrganizationService
Creates a new organization.- Specified by:
create
in interfaceOrganizationService
- Parameters:
organization
- the organization to create- Returns:
- the created
Organization
-
findById
Description copied from interface:OrganizationService
Retrieves an organization by its unique identifier.- Specified by:
findById
in interfaceOrganizationService
- Parameters:
id
- the unique identifier of the organization- Returns:
- the found
Organization
-
checkExistanceById
Description copied from interface:OrganizationService
Check if organization with this unique identifier exists.- Specified by:
checkExistanceById
in interfaceOrganizationService
- Parameters:
id
- the unique identifier of the organization
-
findAll
Description copied from interface:OrganizationService
Retrieves a paginated list of organizations.- Specified by:
findAll
in interfaceOrganizationService
- Parameters:
pageNumber
- the page number (starting from 0)pageSize
- the number of organizations per page- Returns:
- a
Page
containing the requested subjects
-
update
Description copied from interface:OrganizationService
Updates an existing organization.- Specified by:
update
in interfaceOrganizationService
- Parameters:
organization
- the updated organization dataid
- the unique identifier of the organization
-
delete
Description copied from interface:OrganizationService
Deletes an organization by its unique identifier.- Specified by:
delete
in interfaceOrganizationService
- Parameters:
id
- the unique identifier of the organization to delete
-