public abstract class DummyObject extends Object implements Dumpable, DebugDumpable
Modifier and Type | Field and Description |
---|---|
protected DummyResource |
resource |
INDENT_STRING
Constructor and Description |
---|
DummyObject() |
DummyObject(String name) |
Modifier and Type | Method and Description |
---|---|
void |
addAttributeValue(String name,
Object value) |
void |
addAttributeValues(String name,
Collection<Object> valuesToAdd) |
void |
addAttributeValues(String name,
String... valuesToAdd) |
protected void |
checkSchema(String attrName,
Collection<Object> values,
String operationName) |
String |
debugDump()
Show the content of the object intended for diagnostics by system administrator.
|
String |
debugDump(int indent) |
String |
dump()
Show the content of the object intended for diagnostics by developer.
|
protected void |
extendDebugDump(StringBuilder sb,
int indent) |
Set<String> |
getAttributeNames() |
String |
getAttributeValue(String attrName) |
<T> T |
getAttributeValue(String attrName,
Class<T> type) |
<T> Set<T> |
getAttributeValues(String attrName,
Class<T> type) |
String |
getName() |
protected abstract DummyObjectClass |
getObjectClass() |
DummyResource |
getResource() |
abstract String |
getShortTypeName() |
Date |
getValidFrom() |
Date |
getValidTo() |
boolean |
isEnabled() |
void |
removeAttributeValue(String name,
Object value) |
void |
removeAttributeValues(String name,
Collection<Object> values) |
void |
replaceAttributeValue(String name,
Object value) |
void |
replaceAttributeValues(String name,
Collection<Object> values) |
void |
replaceAttributeValues(String name,
Object... values) |
void |
setEnabled(boolean enabled) |
void |
setName(String username) |
void |
setResource(DummyResource resource) |
void |
setValidFrom(Date validFrom) |
void |
setValidTo(Date validTo) |
String |
toString() |
protected String |
toStringContent() |
protected DummyResource resource
public DummyObject()
public DummyObject(String name)
public DummyResource getResource()
public void setResource(DummyResource resource)
public String getName()
public void setName(String username)
public boolean isEnabled()
public void setEnabled(boolean enabled) throws ConnectException, FileNotFoundException
public Date getValidFrom()
public void setValidFrom(Date validFrom) throws ConnectException, FileNotFoundException
public Date getValidTo()
public void setValidTo(Date validTo) throws ConnectException, FileNotFoundException
public void replaceAttributeValue(String name, Object value) throws SchemaViolationException, ConnectException, FileNotFoundException
public void replaceAttributeValues(String name, Collection<Object> values) throws SchemaViolationException, ConnectException, FileNotFoundException
public void replaceAttributeValues(String name, Object... values) throws SchemaViolationException, ConnectException, FileNotFoundException
public void addAttributeValue(String name, Object value) throws SchemaViolationException, ConnectException, FileNotFoundException
public void addAttributeValues(String name, Collection<Object> valuesToAdd) throws SchemaViolationException, ConnectException, FileNotFoundException
public void addAttributeValues(String name, String... valuesToAdd) throws SchemaViolationException, ConnectException, FileNotFoundException
public void removeAttributeValue(String name, Object value) throws SchemaViolationException, ConnectException, FileNotFoundException
public void removeAttributeValues(String name, Collection<Object> values) throws SchemaViolationException, ConnectException, FileNotFoundException
protected void checkSchema(String attrName, Collection<Object> values, String operationName) throws SchemaViolationException
SchemaViolationException
protected abstract DummyObjectClass getObjectClass() throws ConnectException, FileNotFoundException
public abstract String getShortTypeName()
protected String toStringContent()
public String debugDump()
DebugDumpable
debugDump
in interface DebugDumpable
public String debugDump(int indent)
debugDump
in interface DebugDumpable
protected void extendDebugDump(StringBuilder sb, int indent)
public String dump()
Dumpable
Copyright © 2013 evolveum. All rights reserved.