com.evolveum.icf.dummy.resource
Class DummyAccount
java.lang.Object
com.evolveum.icf.dummy.resource.DummyAccount
- All Implemented Interfaces:
- DebugDumpable, Dumpable
public class DummyAccount
- extends java.lang.Object
- implements Dumpable, DebugDumpable
- Author:
- Radovan Semancik
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DummyAccount
public DummyAccount()
DummyAccount
public DummyAccount(java.lang.String username)
getResource
public DummyResource getResource()
setResource
public void setResource(DummyResource resource)
getUsername
public java.lang.String getUsername()
setUsername
public void setUsername(java.lang.String username)
getPassword
public java.lang.String getPassword()
setPassword
public void setPassword(java.lang.String password)
isEnabled
public boolean isEnabled()
setEnabled
public void setEnabled(boolean enabled)
getAttributeNames
public java.util.Set<java.lang.String> getAttributeNames()
getAttributeValues
public <T> java.util.Set<T> getAttributeValues(java.lang.String attrName,
java.lang.Class<T> type)
getAttributeValue
public <T> T getAttributeValue(java.lang.String attrName,
java.lang.Class<T> type)
getAttributeValue
public java.lang.String getAttributeValue(java.lang.String attrName)
replaceAttributeValue
public void replaceAttributeValue(java.lang.String name,
java.lang.Object value)
throws SchemaViolationException
- Throws:
SchemaViolationException
replaceAttributeValues
public void replaceAttributeValues(java.lang.String name,
java.util.Collection<java.lang.Object> values)
throws SchemaViolationException
- Throws:
SchemaViolationException
addAttributeValue
public void addAttributeValue(java.lang.String name,
java.lang.Object value)
throws SchemaViolationException
- Throws:
SchemaViolationException
addAttributeValues
public void addAttributeValues(java.lang.String name,
java.util.Collection<java.lang.Object> valuesToAdd)
throws SchemaViolationException
- Throws:
SchemaViolationException
addAttributeValues
public void addAttributeValues(java.lang.String name,
java.lang.String... valuesToAdd)
throws SchemaViolationException
- Throws:
SchemaViolationException
removeAttributeValues
public void removeAttributeValues(java.lang.String name,
java.util.Collection<java.lang.Object> values)
throws SchemaViolationException
- Throws:
SchemaViolationException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
debugDump
public java.lang.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 interface DebugDumpable
- Returns:
- content of the object intended for diagnostics by system administrator.
debugDump
public java.lang.String debugDump(int indent)
- Specified by:
debugDump
in interface DebugDumpable
dump
public java.lang.String dump()
- Description copied from interface:
Dumpable
- Show the content of the object intended for diagnostics by developer.
The content may be multi-line, in case of hierarchical objects it may be intended.
The use of this method may not be efficient. It is not supposed to be used in normal operation.
However, it is very useful in tests or in case of dumping objects in severe error situations.
- Specified by:
dump
in interface Dumpable
- Returns:
- content of the object intended for diagnostics.
Copyright © 2012 evolveum. All Rights Reserved.