com.evolveum.midpoint.web.model.impl
Class ResourceManagerImpl

java.lang.Object
  extended by com.evolveum.midpoint.web.model.impl.ObjectManagerImpl<ResourceType,GuiResourceDto>
      extended by com.evolveum.midpoint.web.model.impl.ResourceManagerImpl
All Implemented Interfaces:
ObjectManager<GuiResourceDto>, ResourceManager, java.io.Serializable

public class ResourceManagerImpl
extends ObjectManagerImpl<ResourceType,GuiResourceDto>
implements ResourceManager

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.evolveum.midpoint.web.model.ResourceManager
CLASS_NAME, GET_IMPORT_STATUS, IMPORT_FROM_RESOURCE, LIST_CONNECTORS, LIST_OBJECT_SHADOWS, LIST_RESOURCE_OBJECTS, TEST_CONNECTION
 
Constructor Summary
ResourceManagerImpl()
           
 
Method Summary
protected  GuiResourceDto createObject(ResourceType objectType)
           
 ConnectorDto getConnector(java.lang.String oid)
           
 TaskStatusType getImportStatus(java.lang.String resourceOid)
           
protected  java.lang.Class<? extends ObjectType> getSupportedObjectClass()
           
 void importFromResource(java.lang.String resourceOid, javax.xml.namespace.QName objectClass)
           
 java.util.Collection<GuiResourceDto> list(PagingType paging)
          List objects according to paging parameters.
 java.util.Collection<ConnectorDto> listConnectors()
           
<T extends ResourceObjectShadowType>
java.util.List<ResourceObjectShadowDto<T>>
listObjectShadows(java.lang.String oid, java.lang.Class<T> resourceObjectShadowType)
           
 java.util.Collection<ResourceObjectShadowDto<ResourceObjectShadowType>> listResourceObjects(java.lang.String resourceOid, javax.xml.namespace.QName objectClass, PagingType paging)
           
 java.util.Set<PropertyChange> submit(GuiResourceDto changedObject)
          Modify the object.
 OperationResult testConnection(java.lang.String resourceOid)
           
 
Methods inherited from class com.evolveum.midpoint.web.model.impl.ObjectManagerImpl
add, create, delete, get, get, getModel, getPropertyAvailableValues, list, list, list, printResults
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.evolveum.midpoint.web.model.ObjectManager
add, create, delete, get, getPropertyAvailableValues, list
 

Constructor Detail

ResourceManagerImpl

public ResourceManagerImpl()
Method Detail

getSupportedObjectClass

protected java.lang.Class<? extends ObjectType> getSupportedObjectClass()
Specified by:
getSupportedObjectClass in class ObjectManagerImpl<ResourceType,GuiResourceDto>

createObject

protected GuiResourceDto createObject(ResourceType objectType)
Specified by:
createObject in class ObjectManagerImpl<ResourceType,GuiResourceDto>

submit

public java.util.Set<PropertyChange> submit(GuiResourceDto changedObject)
Description copied from interface: ObjectManager
Modify the object. The method will change the object to a new state. It is not guaranteed that the object will be in the state specified by changedObject parameter when stored in the repository because many updates may be running in parallel. TODO Should not be normally used.

Specified by:
submit in interface ObjectManager<GuiResourceDto>
Parameters:
changedObject - new state of the object
Returns:
relative changes that will be applied to the object

list

public java.util.Collection<GuiResourceDto> list(PagingType paging)
Description copied from interface: ObjectManager
List objects according to paging parameters.

Specified by:
list in interface ObjectManager<GuiResourceDto>
Returns:
all objects from the repository.

listConnectors

public java.util.Collection<ConnectorDto> listConnectors()
Specified by:
listConnectors in interface ResourceManager

listObjectShadows

public <T extends ResourceObjectShadowType> java.util.List<ResourceObjectShadowDto<T>> listObjectShadows(java.lang.String oid,
                                                                                                         java.lang.Class<T> resourceObjectShadowType)
Specified by:
listObjectShadows in interface ResourceManager

testConnection

public OperationResult testConnection(java.lang.String resourceOid)
Specified by:
testConnection in interface ResourceManager

importFromResource

public void importFromResource(java.lang.String resourceOid,
                               javax.xml.namespace.QName objectClass)
Specified by:
importFromResource in interface ResourceManager

getImportStatus

public TaskStatusType getImportStatus(java.lang.String resourceOid)
Specified by:
getImportStatus in interface ResourceManager

listResourceObjects

public java.util.Collection<ResourceObjectShadowDto<ResourceObjectShadowType>> listResourceObjects(java.lang.String resourceOid,
                                                                                                   javax.xml.namespace.QName objectClass,
                                                                                                   PagingType paging)
Specified by:
listResourceObjects in interface ResourceManager

getConnector

public ConnectorDto getConnector(java.lang.String oid)
Specified by:
getConnector in interface ResourceManager


Copyright © 2011 evolveum. All Rights Reserved.