Class SelectableBeanImpl<T extends Serializable>
- java.lang.Object
-
- com.evolveum.midpoint.web.component.util.Selectable<T>
-
- com.evolveum.midpoint.web.component.util.SelectableBeanImpl<T>
-
- All Implemented Interfaces:
DebugDumpable,SelectableBean<T>,SelectableRow<T>,Serializable,org.apache.wicket.model.IDetachable,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
AssignmentEditorDto,TaskErrorSelectableBeanImpl,TaskErrorSelectableBeanImplOld,TreeSelectableBean
public class SelectableBeanImpl<T extends Serializable> extends Selectable<T> implements SelectableBean<T>, org.apache.wicket.model.IDetachable
- Author:
- lazyman
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringF_VALUE-
Fields inherited from class com.evolveum.midpoint.web.component.util.Selectable
F_SELECTED
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description SelectableBeanImpl()SelectableBeanImpl(org.apache.wicket.model.IModel<T> value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdebugDump()Show the content of the object intended for diagnostics by system administrator.StringdebugDump(int indent)voiddetach()booleanequals(Object obj)intgetActiveSessions()ObjectgetCustomData()Obtains custom data related to T (e.g.org.apache.wicket.model.IModel<T>getModel()List<String>getNodes()OperationResultgetResult()TgetValue()inthashCode()voidsetActiveSessions(int activeSessions)voidsetCustomData(Object customData)Stores custom data, seeSelectableBean.getCustomData().voidsetModel(org.apache.wicket.model.IModel<T> value)voidsetNodes(List<String> nodes)voidsetResult(OperationResult result)voidsetResult(OperationResultType resultType)-
Methods inherited from class com.evolveum.midpoint.web.component.util.Selectable
isSelected, setSelected
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDumpLazily, debugDumpLazily
-
Methods inherited from interface com.evolveum.midpoint.web.component.util.SelectableBean
isSelected, setSelected
-
-
-
-
Field Detail
-
F_VALUE
public static final String F_VALUE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SelectableBeanImpl
public SelectableBeanImpl()
-
SelectableBeanImpl
public SelectableBeanImpl(org.apache.wicket.model.IModel<T> value)
-
-
Method Detail
-
getValue
public T getValue()
- Specified by:
getValuein interfaceSelectableBean<T extends Serializable>- Overrides:
getValuein classSelectable<T extends Serializable>
-
setModel
public void setModel(org.apache.wicket.model.IModel<T> value)
- Specified by:
setModelin interfaceSelectableBean<T extends Serializable>
-
getModel
public org.apache.wicket.model.IModel<T> getModel()
-
getResult
public OperationResult getResult()
- Specified by:
getResultin interfaceSelectableBean<T extends Serializable>
-
setResult
public void setResult(OperationResult result)
- Specified by:
setResultin interfaceSelectableBean<T extends Serializable>
-
setResult
public void setResult(OperationResultType resultType) throws SchemaException
- Specified by:
setResultin interfaceSelectableBean<T extends Serializable>- Throws:
SchemaException
-
setActiveSessions
public void setActiveSessions(int activeSessions)
-
getActiveSessions
public int getActiveSessions()
-
debugDump
public String debugDump()
Description copied from interface:DebugDumpableShow the content of the object intended for diagnostics by system administrator. The out put should be suitable to use in system logs at "debug" level. It may be multi-line, but in that case it should be well indented and quite terse. As it is intended to be used by system administrator, it should not use any developer terms such as class names, exceptions or stack traces.- Specified by:
debugDumpin interfaceDebugDumpable- Returns:
- content of the object intended for diagnostics by system administrator.
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDumpin interfaceDebugDumpable
-
getCustomData
public Object getCustomData()
Description copied from interface:SelectableBeanObtains custom data related to T (e.g. information extracted from the value of T) into the bean. Currently used to storeTaskInformationUtilfor tasks. FIXME: TEMPORARY SOLUTION! Replace by subclassingSelectableBeanImplfor tasks!- Specified by:
getCustomDatain interfaceSelectableBean<T extends Serializable>
-
setCustomData
public void setCustomData(Object customData)
Description copied from interface:SelectableBeanStores custom data, seeSelectableBean.getCustomData(). FIXME: TEMPORARY SOLUTION!- Specified by:
setCustomDatain interfaceSelectableBean<T extends Serializable>
-
detach
public void detach()
- Specified by:
detachin interfaceorg.apache.wicket.model.IDetachable
-
-