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 String
F_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 String
debugDump()
Show the content of the object intended for diagnostics by system administrator.String
debugDump(int indent)
void
detach()
boolean
equals(Object obj)
int
getActiveSessions()
Object
getCustomData()
Obtains custom data related to T (e.g.List<String>
getNodes()
OperationResult
getResult()
T
getValue()
int
hashCode()
void
setActiveSessions(int activeSessions)
void
setCustomData(Object customData)
Stores custom data, seeSelectableBean.getCustomData()
.void
setModel(org.apache.wicket.model.IModel<T> value)
void
setNodes(List<String> nodes)
void
setResult(OperationResult result)
void
setResult(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:
getValue
in interfaceSelectableBean<T extends Serializable>
- Overrides:
getValue
in classSelectable<T extends Serializable>
-
setModel
public void setModel(org.apache.wicket.model.IModel<T> value)
- Specified by:
setModel
in interfaceSelectableBean<T extends Serializable>
-
getResult
public OperationResult getResult()
- Specified by:
getResult
in interfaceSelectableBean<T extends Serializable>
-
setResult
public void setResult(OperationResult result)
- Specified by:
setResult
in interfaceSelectableBean<T extends Serializable>
-
setResult
public void setResult(OperationResultType resultType) throws SchemaException
- Specified by:
setResult
in interfaceSelectableBean<T extends Serializable>
- Throws:
SchemaException
-
setActiveSessions
public void setActiveSessions(int activeSessions)
-
getActiveSessions
public int getActiveSessions()
-
debugDump
public String debugDump()
Description copied from interface:DebugDumpable
Show 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:
debugDump
in interfaceDebugDumpable
- Returns:
- content of the object intended for diagnostics by system administrator.
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
getCustomData
public Object getCustomData()
Description copied from interface:SelectableBean
Obtains custom data related to T (e.g. information extracted from the value of T) into the bean. Currently used to storeTaskInformationUtil
for tasks. FIXME: TEMPORARY SOLUTION! Replace by subclassingSelectableBeanImpl
for tasks!- Specified by:
getCustomData
in interfaceSelectableBean<T extends Serializable>
-
setCustomData
public void setCustomData(Object customData)
Description copied from interface:SelectableBean
Stores custom data, seeSelectableBean.getCustomData()
. FIXME: TEMPORARY SOLUTION!- Specified by:
setCustomData
in interfaceSelectableBean<T extends Serializable>
-
detach
public void detach()
- Specified by:
detach
in interfaceorg.apache.wicket.model.IDetachable
-
-