com.evolveum.midpoint.model.test
Class DummyResourceContoller

java.lang.Object
  extended by com.evolveum.midpoint.test.ldap.AbstractResourceController
      extended by com.evolveum.midpoint.model.test.DummyResourceContoller

public class DummyResourceContoller
extends AbstractResourceController

Author:
semancik

Field Summary
static String DUMMY_ACCOUNT_ATTRIBUTE_DRINK_NAME
           
static String DUMMY_ACCOUNT_ATTRIBUTE_FULLNAME_NAME
           
static String DUMMY_ACCOUNT_ATTRIBUTE_GOSSIP_NAME
           
static String DUMMY_ACCOUNT_ATTRIBUTE_LOCATION_NAME
           
static String DUMMY_ACCOUNT_ATTRIBUTE_LOOT_NAME
           
static String DUMMY_ACCOUNT_ATTRIBUTE_QUOTE_NAME
           
static String DUMMY_ACCOUNT_ATTRIBUTE_SHIP_NAME
           
static String DUMMY_ACCOUNT_ATTRIBUTE_TITLE_NAME
           
static String DUMMY_ACCOUNT_ATTRIBUTE_WATER_NAME
           
static String DUMMY_ACCOUNT_ATTRIBUTE_WEAPON_NAME
           
 
Fields inherited from class com.evolveum.midpoint.test.ldap.AbstractResourceController
resource
 
Constructor Summary
DummyResourceContoller()
           
 
Method Summary
 void addAccount(String userId, String fullName)
           
 void addAccount(String userId, String fullName, String location)
           
 void assertRefinedSchemaSanity(RefinedResourceSchema refinedSchema)
           
static DummyResourceContoller create(String instanceName)
           
static DummyResourceContoller create(String instanceName, PrismObject<ResourceType> resource)
           
 void extendDummySchema()
           
 ItemPath getAttributeFullnamePath()
           
 QName getAttributeFullnameQName()
           
 ItemPath getAttributeWeaponPath()
           
 QName getAttributeWeaponQName()
           
 DummyResource getDummyResource()
           
 String getName()
           
 void populateWithDefaultSchema()
           
 
Methods inherited from class com.evolveum.midpoint.test.ldap.AbstractResourceController
getAttributePath, getAttributeQName, getNamespace, getResource, setResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DUMMY_ACCOUNT_ATTRIBUTE_FULLNAME_NAME

public static final String DUMMY_ACCOUNT_ATTRIBUTE_FULLNAME_NAME
See Also:
Constant Field Values

DUMMY_ACCOUNT_ATTRIBUTE_TITLE_NAME

public static final String DUMMY_ACCOUNT_ATTRIBUTE_TITLE_NAME
See Also:
Constant Field Values

DUMMY_ACCOUNT_ATTRIBUTE_LOCATION_NAME

public static final String DUMMY_ACCOUNT_ATTRIBUTE_LOCATION_NAME
See Also:
Constant Field Values

DUMMY_ACCOUNT_ATTRIBUTE_LOOT_NAME

public static final String DUMMY_ACCOUNT_ATTRIBUTE_LOOT_NAME
See Also:
Constant Field Values

DUMMY_ACCOUNT_ATTRIBUTE_SHIP_NAME

public static final String DUMMY_ACCOUNT_ATTRIBUTE_SHIP_NAME
See Also:
Constant Field Values

DUMMY_ACCOUNT_ATTRIBUTE_WEAPON_NAME

public static final String DUMMY_ACCOUNT_ATTRIBUTE_WEAPON_NAME
See Also:
Constant Field Values

DUMMY_ACCOUNT_ATTRIBUTE_DRINK_NAME

public static final String DUMMY_ACCOUNT_ATTRIBUTE_DRINK_NAME
See Also:
Constant Field Values

DUMMY_ACCOUNT_ATTRIBUTE_QUOTE_NAME

public static final String DUMMY_ACCOUNT_ATTRIBUTE_QUOTE_NAME
See Also:
Constant Field Values

DUMMY_ACCOUNT_ATTRIBUTE_GOSSIP_NAME

public static final String DUMMY_ACCOUNT_ATTRIBUTE_GOSSIP_NAME
See Also:
Constant Field Values

DUMMY_ACCOUNT_ATTRIBUTE_WATER_NAME

public static final String DUMMY_ACCOUNT_ATTRIBUTE_WATER_NAME
See Also:
Constant Field Values
Constructor Detail

DummyResourceContoller

public DummyResourceContoller()
Method Detail

create

public static DummyResourceContoller create(String instanceName)

create

public static DummyResourceContoller create(String instanceName,
                                            PrismObject<ResourceType> resource)

getDummyResource

public DummyResource getDummyResource()

getName

public String getName()

populateWithDefaultSchema

public void populateWithDefaultSchema()

extendDummySchema

public void extendDummySchema()
                       throws ConnectException,
                              FileNotFoundException
Throws:
ConnectException
FileNotFoundException

getAttributeFullnameQName

public QName getAttributeFullnameQName()

getAttributeFullnamePath

public ItemPath getAttributeFullnamePath()

getAttributeWeaponQName

public QName getAttributeWeaponQName()

getAttributeWeaponPath

public ItemPath getAttributeWeaponPath()

assertRefinedSchemaSanity

public void assertRefinedSchemaSanity(RefinedResourceSchema refinedSchema)

addAccount

public void addAccount(String userId,
                       String fullName)
                throws ObjectAlreadyExistsException,
                       SchemaViolationException
Throws:
ObjectAlreadyExistsException
SchemaViolationException

addAccount

public void addAccount(String userId,
                       String fullName,
                       String location)
                throws ObjectAlreadyExistsException,
                       SchemaViolationException
Throws:
ObjectAlreadyExistsException
SchemaViolationException


Copyright © 2013 evolveum. All Rights Reserved.