public interface IMPCManager
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsWithID(String sID)
Check if an MPC with the specified ID is contained.
|
void |
createMPC(MPC aMPC)
Create a new MPC.
|
com.helger.commons.state.EChange |
deleteMPC(String sMPCID)
Delete the MPC with the provided ID.
|
IMPC |
getMPCOfID(String sID)
Get the MPC with the specified ID.
|
default IMPC |
getMPCOrDefaultOfID(String sID)
Get the MPC with the specified ID, or the default MPC.
|
com.helger.commons.state.EChange |
markMPCDeleted(String sMPCID)
Mark the MPC with the provided ID as deleted.
|
com.helger.commons.state.EChange |
updateMPC(IMPC aMPC)
Update an existing MPC
|
void createMPC(@Nonnull MPC aMPC)
aMPC - The MPC to be added. May not be null.@Nonnull com.helger.commons.state.EChange updateMPC(@Nonnull IMPC aMPC)
aMPC - The MPC to be updated. May not be null.EChange.CHANGED if something changed,
EChange.UNCHANGED otherwise.@Nonnull com.helger.commons.state.EChange markMPCDeleted(@Nullable String sMPCID)
sMPCID - The ID of the MPC to be marked as deleted. May be null.EChange.CHANGED if marking as deleted succeeded,
EChange.UNCHANGED otherwise.@Nonnull com.helger.commons.state.EChange deleteMPC(@Nullable String sMPCID)
sMPCID - The ID of the MPC to be deleted. May be null.EChange.CHANGED if deleting succeeded,
EChange.UNCHANGED otherwise.@Nullable IMPC getMPCOfID(@Nullable String sID)
sID - The ID to search. May be null.null if no such MPC exists, the MPC otherwise.boolean containsWithID(@Nullable String sID)
sID - The ID to search. May be null.true if such an MPC is contained, false
otherwise.@Nullable default IMPC getMPCOrDefaultOfID(@Nullable String sID)
sID - The ID to search. If it is null or empty, the default
MPC will be used.null if no such MPC exists, the MPC otherwise.CAS4.DEFAULT_MPC_IDCopyright © 2015–2020 Philip Helger. All rights reserved.