Package com.priint.pubserverapi.person
Interface PersonServiceLocal
public interface PersonServiceLocal
Local interface for person-related services.
This interface provides the contract for creating a query object
to retrieve data related to a person.
Example usage:
PersonServiceLocal service = PlannerEngineServiceLocator.INSTANCE.getPersonServiceLocal(); // obtain reference to service
PersonQuery query = service.createPersonQuery();
-
Method Summary
Modifier and TypeMethodDescriptionCreates a newPersonQueryobject that can be used to query person data.getPersonById(PersonId personId) Retrieves aPersonby its ID.
-
Method Details
-
createPersonQuery
PersonQuery createPersonQuery()Creates a newPersonQueryobject that can be used to query person data.- Returns:
- a new instance of
PersonQuery
-
getPersonById
Retrieves aPersonby its ID.- Parameters:
personId- the unique identifier of the person to retrieve- Returns:
- an
Optionalcontaining thePersonif found, otherwise an emptyOptional - Throws:
PersonServiceException- if an error occurs during retrieval
-