@AccessLevel(value=EXTERNAL) public interface CompartmentDAO extends curam.util.persistence.StandardDAO<Compartment>
Modifier and Type | Method and Description |
---|---|
java.util.Set<Compartment> |
getActiveParentCompartmentForProvider(curam.util.type.Date currentDate,
Provider provider,
curam.place.impl.CompartmentStatusEntry compartmentStatusEntry)
Gets the active parent compartment for the provider.
|
curam.cpm.sl.entity.struct.CompartmentKeyList |
getChildCompartmentIDs(curam.cpm.sl.entity.struct.CompartmentKey compartmentKey)
Gets the list of all the child compartment IDs recursively for a given
compartment.
|
java.util.Set<Compartment> |
searchAllCompartments(Provider provider)
Searches all the compartments for the provider.
|
java.util.Set<Compartment> |
searchChildren(Compartment compartment)
Searches all children of the compartment.
|
java.util.Set<Compartment> |
searchImmediateChildren(Compartment compartment)
Searches immediate children of compartment.
|
java.util.Set<Compartment> |
searchOtherCompartmentsForProvider(Compartment compartment)
Searches all the compartments for the provider apart from the specified
one.
|
java.util.Set<Compartment> searchChildren(Compartment compartment)
compartment
- Compartment that needs to be searched.java.util.Set<Compartment> searchImmediateChildren(Compartment compartment)
compartment
- Compartment that needs to be searched.java.util.Set<Compartment> searchAllCompartments(Provider provider)
provider
- Provider that needs to be searched for compartments.java.util.Set<Compartment> searchOtherCompartmentsForProvider(Compartment compartment)
compartment
- Compartment that needs to be excluded.java.util.Set<Compartment> getActiveParentCompartmentForProvider(curam.util.type.Date currentDate, Provider provider, curam.place.impl.CompartmentStatusEntry compartmentStatusEntry)
currentDate
- Contains the current date.provider
- Contains the provider details.compartmentStatusEntry
- Contains the compartment Status entry used to compare.curam.cpm.sl.entity.struct.CompartmentKeyList getChildCompartmentIDs(curam.cpm.sl.entity.struct.CompartmentKey compartmentKey) throws curam.util.exception.AppException, curam.util.exception.InformationalException
compartment
- Contains the parent compartment key.curam.util.exception.InformationalException
- Generic Exception Signature.curam.util.exception.AppException
- Generic Exception Signature.