Package com.helger.phase4.model.pmode
Class PModeManagerInMemory
java.lang.Object
com.helger.phase4.model.pmode.PModeManagerInMemory
- All Implemented Interfaces:
IPModeManager
Persisting manager for
PMode objects.- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateOrUpdatePMode(@NonNull PMode aPMode) Create or update the provided PMode.voidcreatePMode(@NonNull PMode aPMode) Create a new PMode.@NonNull com.helger.base.state.EChangedeletePMode(@Nullable String sPModeID) Delete the provided PMode.@Nullable IPModeFind the first PMode matching the provided filter.@NonNull com.helger.collection.commons.ICommonsList<IPMode> getAll()@NonNull com.helger.collection.commons.ICommonsSet<String> @Nullable IPModegetPModeOfID(@Nullable String sID) Find the PMode with the provided ID@NonNull com.helger.base.state.EChangemarkPModeDeleted(@Nullable String sPModeID) Mark the provided PMode as deleted.@NonNull com.helger.base.state.EChangeupdatePMode(@NonNull IPMode aNewPMode) Update an existing PMode.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.helger.phase4.model.pmode.IPModeManager
getPModeOfServiceAndAction, validateAllPModes, validatePMode
-
Constructor Details
-
PModeManagerInMemory
public PModeManagerInMemory()
-
-
Method Details
-
createPMode
Description copied from interface:IPModeManagerCreate a new PMode.- Specified by:
createPModein interfaceIPModeManager- Parameters:
aPMode- The PMode to be created. May not benull.
-
updatePMode
Description copied from interface:IPModeManagerUpdate an existing PMode.- Specified by:
updatePModein interfaceIPModeManager- Parameters:
aNewPMode- The PMode to be updated. May not benull.- Returns:
EChange.CHANGEDif something changed,EChange.UNCHANGEDotherwise.
-
createOrUpdatePMode
Description copied from interface:IPModeManagerCreate or update the provided PMode.- Specified by:
createOrUpdatePModein interfaceIPModeManager- Parameters:
aPMode- The PMode to be created or updated.
-
markPModeDeleted
Description copied from interface:IPModeManagerMark the provided PMode as deleted.- Specified by:
markPModeDeletedin interfaceIPModeManager- Parameters:
sPModeID- The ID of the PMode to be marked as deleted. May benull.- Returns:
EChange
-
deletePMode
Description copied from interface:IPModeManagerDelete the provided PMode.- Specified by:
deletePModein interfaceIPModeManager- Parameters:
sPModeID- The ID of the PMode to be deleted. May benull.- Returns:
EChange
-
getPModeOfID
Description copied from interface:IPModeManagerFind the PMode with the provided ID- Specified by:
getPModeOfIDin interfaceIPModeManager- Parameters:
sID- The ID to search. May benull.- Returns:
nullif no such PMode exists.
-
findFirst
Description copied from interface:IPModeManagerFind the first PMode matching the provided filter.- Specified by:
findFirstin interfaceIPModeManager- Parameters:
aFilter- The filter to be used. May not benull.- Returns:
nullif no such PMode exists.
-
getAll
- Specified by:
getAllin interfaceIPModeManager- Returns:
- A non-
nullbut maybe empty list of all contained PModes.
-
getAllIDs
- Specified by:
getAllIDsin interfaceIPModeManager- Returns:
- A non-
nullbut maybe empty set of the IDs of all contained PModes.
-