Interface TuaOrganizationService
- All Known Implementing Classes:
DefaultTuaOrganizationService
public interface TuaOrganizationService
Service responsible for handling
TuaOrganizationModel related operations.- Since:
- 2208
-
Method Summary
Modifier and TypeMethodDescriptionCreates an instance ofTuaOrganizationModelfindOrganizationParties(PmOrganizationFilteringContextData pmOrganizationFilteringContext, Integer offset, Integer limit) Retrieves a list ofTuaOrganizationModelfor a given filtering context.getNumberOfOrganizationParties(PmOrganizationFilteringContextData pmOrganizationFilteringContext) Retrieves the total number of organization parties found for a given filtering context.Returns the organization for the provided id.voidremoveOrganization(TuaOrganizationModel organization) Removes the givenTuaOrganizationModelvoidsaveOrganization(TuaOrganizationModel organizationModel) Saves a givenTuaOrganizationModel
-
Method Details
-
getOrganization
Returns the organization for the provided id.- Parameters:
id- The unique identifier of the organization- Returns:
- The
TuaOrganizationModelfor the provided id
-
findOrganizationParties
List<TuaOrganizationModel> findOrganizationParties(PmOrganizationFilteringContextData pmOrganizationFilteringContext, Integer offset, Integer limit) Retrieves a list ofTuaOrganizationModelfor a given filtering context.- Parameters:
pmOrganizationFilteringContext- the organization party context.offset- the offset.limit- the maximum number of returned parties.- Returns:
- the list of organization parties found for the given context.
-
getNumberOfOrganizationParties
Integer getNumberOfOrganizationParties(PmOrganizationFilteringContextData pmOrganizationFilteringContext) Retrieves the total number of organization parties found for a given filtering context.- Parameters:
pmOrganizationFilteringContext- the organization party context.- Returns:
- the number of organization parties found.
-
removeOrganization
Removes the givenTuaOrganizationModel- Parameters:
organization- the organization to be removed
-
createOrganization
TuaOrganizationModel createOrganization()Creates an instance ofTuaOrganizationModel- Returns:
- the newly created organization
-
saveOrganization
Saves a givenTuaOrganizationModel- Parameters:
organizationModel- the organization to be saved
-