Package org.hippoecm.frontend.model
Class BranchIdModel
java.lang.Object
org.hippoecm.frontend.model.BranchIdModel
- All Implemented Interfaces:
Serializable
,org.apache.wicket.model.IDetachable
,org.apache.wicket.model.IModel<IModelReference<org.apache.commons.lang3.tuple.Pair<String,
,String>>> org.apache.wicket.util.io.IClusterable
public class BranchIdModel
extends Object
implements org.apache.wicket.model.IModel<IModelReference<org.apache.commons.lang3.tuple.Pair<String,String>>>
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
void
detach()
Detaches model after use.IModelReference<org.apache.commons.lang3.tuple.Pair<String,
String>> static BranchIdModel
initialize
(IPluginContext context, Node documentHandleNode) boolean
void
setBranchInfo
(String branchId, String branchName) void
setInitialBranchInfo
(String branchId, String branchName) void
setObject
(IModelReference<org.apache.commons.lang3.tuple.Pair<String, String>> object) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.wicket.model.IModel
as, combineWith, filter, flatMap, isPresent, map, orElse, orElseGet
-
Constructor Details
-
BranchIdModel
public BranchIdModel() -
BranchIdModel
-
-
Method Details
-
getObject
- Specified by:
getObject
in interfaceorg.apache.wicket.model.IModel<IModelReference<org.apache.commons.lang3.tuple.Pair<String,
String>>>
-
setObject
- Specified by:
setObject
in interfaceorg.apache.wicket.model.IModel<IModelReference<org.apache.commons.lang3.tuple.Pair<String,
String>>>
-
getBranchId
-
getBranchName
-
getBranchInfo
-
setBranchInfo
-
setInitialBranchInfo
-
destroy
public void destroy() -
detach
public void detach()Detaches model after use. This is generally used to null out transient references that can be re-attached later.- Specified by:
detach
in interfaceorg.apache.wicket.model.IDetachable
- Specified by:
detach
in interfaceorg.apache.wicket.model.IModel<IModelReference<org.apache.commons.lang3.tuple.Pair<String,
String>>>
-
initialize
public static BranchIdModel initialize(IPluginContext context, Node documentHandleNode) throws RepositoryException - Throws:
RepositoryException
-
isDefined
public boolean isDefined()
-