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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BranchIdModel()
BranchIdModel(IPluginContext context, String handleIdentifier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
detach()
Detaches model after use.String
getBranchId()
org.apache.commons.lang3.tuple.Pair<String,String>
getBranchInfo()
String
getBranchName()
IModelReference<org.apache.commons.lang3.tuple.Pair<String,String>>
getObject()
static BranchIdModel
initialize(IPluginContext context, Node documentHandleNode)
boolean
isDefined()
void
setBranchInfo(String branchId, String branchName)
void
setInitialBranchInfo(String branchId, String branchName)
void
setObject(IModelReference<org.apache.commons.lang3.tuple.Pair<String,String>> object)
-
-
-
Constructor Detail
-
BranchIdModel
public BranchIdModel()
-
BranchIdModel
public BranchIdModel(IPluginContext context, String handleIdentifier)
-
-
Method Detail
-
getObject
public IModelReference<org.apache.commons.lang3.tuple.Pair<String,String>> getObject()
- Specified by:
getObject
in interfaceorg.apache.wicket.model.IModel<IModelReference<org.apache.commons.lang3.tuple.Pair<String,String>>>
-
setObject
public void setObject(IModelReference<org.apache.commons.lang3.tuple.Pair<String,String>> object)
- Specified by:
setObject
in interfaceorg.apache.wicket.model.IModel<IModelReference<org.apache.commons.lang3.tuple.Pair<String,String>>>
-
getBranchId
public String getBranchId()
-
getBranchName
public String getBranchName()
-
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()
-
-