public interface IPModeManager
PMode objects.| Modifier and Type | Method and Description |
|---|---|
default void |
createOrUpdatePMode(PMode aPMode)
Create or update the provided PMode.
|
void |
createPMode(PMode aPMode)
Create a new PMode.
|
com.helger.commons.state.EChange |
deletePMode(String sPModeID)
Delete the provided PMode.
|
IPMode |
findFirst(Predicate<? super IPMode> aFilter)
Find the first PMode matching the provided filter.
|
com.helger.commons.collection.impl.ICommonsList<IPMode> |
getAll() |
com.helger.commons.collection.impl.ICommonsSet<String> |
getAllIDs() |
static com.helger.commons.functional.IPredicate<IPMode> |
getPModeFilter(String sID,
String sInitiatorID,
String sResponderID)
Get a predicate that matches a PMode by ID, initiator ID and responder ID?
|
IPMode |
getPModeOfID(String sID)
Find the PMode with the provided ID
|
default IPMode |
getPModeOfServiceAndAction(String sService,
String sAction)
Find the first PMode that has the provided service and action.
|
com.helger.commons.state.EChange |
markPModeDeleted(String sPModeID)
Mark the provided PMode as deleted.
|
com.helger.commons.state.EChange |
updatePMode(IPMode aPMode)
Update an existing PMode.
|
default void |
validateAllPModes()
Validate all contained PModes at once.
|
default void |
validatePMode(IPMode aPMode)
Validate, that the provided PMode domain object is consistent according to
the underlying requirements.
|
void createPMode(@Nonnull PMode aPMode)
aPMode - The PMode to be created. May not be null.@Nonnull com.helger.commons.state.EChange updatePMode(@Nonnull IPMode aPMode)
aPMode - The PMode to be updated. May not be null.EChange.CHANGED if something changed,
EChange.UNCHANGED otherwise.@Nonnull default void createOrUpdatePMode(@Nonnull PMode aPMode)
aPMode - The PMode to be created or updated.@Nonnull com.helger.commons.state.EChange markPModeDeleted(@Nullable String sPModeID)
sPModeID - The ID of the PMode to be marked as deleted. May be
null.EChange@Nonnull com.helger.commons.state.EChange deletePMode(@Nullable String sPModeID)
sPModeID - The ID of the PMode to be deleted. May be null.EChange@Nullable IPMode findFirst(@Nonnull Predicate<? super IPMode> aFilter)
aFilter - The filter to be used. May not be null.null if no such PMode exists.@Nullable default IPMode getPModeOfServiceAndAction(@Nullable String sService, @Nullable String sAction)
sService - The service to be searched. May be null.sAction - The action to be searched. May be null.null if no such PMode exists.@Nonnull static com.helger.commons.functional.IPredicate<IPMode> getPModeFilter(@Nonnull String sID, @Nullable String sInitiatorID, @Nullable String sResponderID)
sID - PMode ID to search. May be null.sInitiatorID - Initiator ID to search. May be null.sResponderID - Responder ID to search. May be null.null.@Nullable IPMode getPModeOfID(@Nullable String sID)
sID - The ID to search. May be null.null if no such PMode exists.@Nonnull com.helger.commons.collection.impl.ICommonsList<IPMode> getAll()
null but maybe empty list of all contained
PModes.@Nonnull com.helger.commons.collection.impl.ICommonsSet<String> getAllIDs()
null but maybe empty set of the IDs of all
contained PModes.default void validatePMode(@Nullable IPMode aPMode) throws PModeValidationException
aPMode - The PMode to be validated. May be null.PModeValidationException - in case the PMode is invalid.default void validateAllPModes()
throws PModeValidationException
PModeValidationException - In case at least one PMode is invalidCopyright © 2015–2020 Philip Helger. All rights reserved.