com.evolveum.icf.dummy.resource
Class DummyAccount

java.lang.Object
  extended by com.evolveum.icf.dummy.resource.DummyAccount
All Implemented Interfaces:
DebugDumpable, Dumpable

public class DummyAccount
extends Object
implements Dumpable, DebugDumpable

Author:
Radovan Semancik

Field Summary
 
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
 
Constructor Summary
DummyAccount()
           
DummyAccount(String username)
           
 
Method Summary
 void addAttributeValue(String name, Object value)
           
 void addAttributeValues(String name, Collection<Object> valuesToAdd)
           
 void addAttributeValues(String name, String... valuesToAdd)
           
 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.
 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 getPassword()
           
 DummyResource getResource()
           
 String getUsername()
           
 boolean isEnabled()
           
 void removeAttributeValues(String name, Collection<Object> values)
           
 void replaceAttributeValue(String name, Object value)
           
 void replaceAttributeValues(String name, Collection<Object> values)
           
 void setEnabled(boolean enabled)
           
 void setPassword(String password)
           
 void setResource(DummyResource resource)
           
 void setUsername(String username)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DummyAccount

public DummyAccount()

DummyAccount

public DummyAccount(String username)
Method Detail

getResource

public DummyResource getResource()

setResource

public void setResource(DummyResource resource)

getUsername

public String getUsername()

setUsername

public void setUsername(String username)

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean enabled)

getAttributeNames

public Set<String> getAttributeNames()

getAttributeValues

public <T> Set<T> getAttributeValues(String attrName,
                                     Class<T> type)

getAttributeValue

public <T> T getAttributeValue(String attrName,
                               Class<T> type)

getAttributeValue

public String getAttributeValue(String attrName)

replaceAttributeValue

public void replaceAttributeValue(String name,
                                  Object value)
                           throws SchemaViolationException
Throws:
SchemaViolationException

replaceAttributeValues

public void replaceAttributeValues(String name,
                                   Collection<Object> values)
                            throws SchemaViolationException
Throws:
SchemaViolationException

addAttributeValue

public void addAttributeValue(String name,
                              Object value)
                       throws SchemaViolationException
Throws:
SchemaViolationException

addAttributeValues

public void addAttributeValues(String name,
                               Collection<Object> valuesToAdd)
                        throws SchemaViolationException
Throws:
SchemaViolationException

addAttributeValues

public void addAttributeValues(String name,
                               String... valuesToAdd)
                        throws SchemaViolationException
Throws:
SchemaViolationException

removeAttributeValues

public void removeAttributeValues(String name,
                                  Collection<Object> values)
                           throws SchemaViolationException
Throws:
SchemaViolationException

toString

public String toString()
Overrides:
toString in class Object

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 interface DebugDumpable
Returns:
content of the object intended for diagnostics by system administrator.

debugDump

public String debugDump(int indent)
Specified by:
debugDump in interface DebugDumpable

dump

public 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 © 2013 evolveum. All Rights Reserved.