com.evolveum.midpoint.model.controller
Class ModelControllerImpl

java.lang.Object
  extended by com.evolveum.midpoint.model.controller.ModelControllerImpl
All Implemented Interfaces:
ModelService, ModelController

@Component(value="modelController")
@Scope
public class ModelControllerImpl
extends java.lang.Object
implements ModelController

Author:
lazyman

Field Summary
 
Fields inherited from interface com.evolveum.midpoint.model.controller.ModelController
ADD_OBJECT, CLASS_NAME, GET_OBJECT, MODIFY_OBJECT_WITH_EXCLUSION, SEARCH_OBJECTS_IN_PROVISIONING
 
Constructor Summary
ModelControllerImpl()
           
 
Method Summary
 java.lang.String addObject(ObjectType object, OperationResult result)
           
 java.lang.String addUser(UserType user, UserTemplateType userTemplate, OperationResult result)
           
 boolean deleteObject(java.lang.String oid, OperationResult result)
           
 TaskStatusType getImportStatus(java.lang.String resourceOid, OperationResult result)
          Deprecated. 
<T extends ObjectType>
T
getObject(java.lang.String oid, PropertyReferenceListType resolve, java.lang.Class<T> clazz, OperationResult result)
           
<T extends ObjectType>
T
getObject(java.lang.String oid, PropertyReferenceListType resolve, OperationResult result, java.lang.Class<T> clazz, boolean fromProvisioning)
           
 PropertyAvailableValuesListType getPropertyAvailableValues(java.lang.String oid, PropertyReferenceListType properties, OperationResult result)
           
 void importFromResource(java.lang.String resourceOid, javax.xml.namespace.QName objectClass, Task task)
           
 UserType listAccountShadowOwner(java.lang.String accountOid, OperationResult result)
           
 ObjectListType listObjects(java.lang.Class<? extends ObjectType> objectType, PagingType paging, OperationResult result)
           
 ObjectListType listResourceObjects(java.lang.String resourceOid, javax.xml.namespace.QName objectType, PagingType paging, OperationResult result)
           
<T extends ResourceObjectShadowType>
java.util.List<T>
listResourceObjectShadows(java.lang.String resourceOid, java.lang.Class<T> resourceObjectShadowType, OperationResult result)
           
 void modifyObject(ObjectModificationType change, OperationResult result)
           
 void modifyObjectWithExclusion(ObjectModificationType change, java.lang.String accountOid, OperationResult result)
           
 ObjectListType searchObjectsInProvisioning(QueryType query, PagingType paging, OperationResult result)
           
 ObjectListType searchObjectsInRepository(QueryType query, PagingType paging, OperationResult result)
           
 OperationResult testResource(java.lang.String resourceOid)
          This returns OperationResult instead of taking it as in/out argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelControllerImpl

public ModelControllerImpl()
Method Detail

addObject

public java.lang.String addObject(ObjectType object,
                                  OperationResult result)
                           throws ObjectAlreadyExistsException,
                                  ObjectNotFoundException
Specified by:
addObject in interface ModelService
Throws:
ObjectAlreadyExistsException
ObjectNotFoundException

addUser

public java.lang.String addUser(UserType user,
                                UserTemplateType userTemplate,
                                OperationResult result)
                         throws ObjectAlreadyExistsException,
                                ObjectNotFoundException
Specified by:
addUser in interface ModelService
Throws:
ObjectAlreadyExistsException
ObjectNotFoundException

getObject

public <T extends ObjectType> T getObject(java.lang.String oid,
                                          PropertyReferenceListType resolve,
                                          java.lang.Class<T> clazz,
                                          OperationResult result)
                               throws ObjectNotFoundException
Specified by:
getObject in interface ModelService
Throws:
ObjectNotFoundException

listObjects

public ObjectListType listObjects(java.lang.Class<? extends ObjectType> objectType,
                                  PagingType paging,
                                  OperationResult result)
Specified by:
listObjects in interface ModelService

searchObjectsInProvisioning

public ObjectListType searchObjectsInProvisioning(QueryType query,
                                                  PagingType paging,
                                                  OperationResult result)
Specified by:
searchObjectsInProvisioning in interface ModelController

searchObjectsInRepository

public ObjectListType searchObjectsInRepository(QueryType query,
                                                PagingType paging,
                                                OperationResult result)
Specified by:
searchObjectsInRepository in interface ModelService

modifyObject

public void modifyObject(ObjectModificationType change,
                         OperationResult result)
                  throws ObjectNotFoundException
Specified by:
modifyObject in interface ModelService
Throws:
ObjectNotFoundException

modifyObjectWithExclusion

public void modifyObjectWithExclusion(ObjectModificationType change,
                                      java.lang.String accountOid,
                                      OperationResult result)
                               throws ObjectNotFoundException
Specified by:
modifyObjectWithExclusion in interface ModelController
Throws:
ObjectNotFoundException

deleteObject

public boolean deleteObject(java.lang.String oid,
                            OperationResult result)
                     throws ObjectNotFoundException
Specified by:
deleteObject in interface ModelService
Throws:
ObjectNotFoundException

getPropertyAvailableValues

public PropertyAvailableValuesListType getPropertyAvailableValues(java.lang.String oid,
                                                                  PropertyReferenceListType properties,
                                                                  OperationResult result)
Specified by:
getPropertyAvailableValues in interface ModelService

listAccountShadowOwner

public UserType listAccountShadowOwner(java.lang.String accountOid,
                                       OperationResult result)
                                throws ObjectNotFoundException
Specified by:
listAccountShadowOwner in interface ModelService
Throws:
ObjectNotFoundException

listResourceObjectShadows

public <T extends ResourceObjectShadowType> java.util.List<T> listResourceObjectShadows(java.lang.String resourceOid,
                                                                                        java.lang.Class<T> resourceObjectShadowType,
                                                                                        OperationResult result)
                                                                             throws ObjectNotFoundException
Specified by:
listResourceObjectShadows in interface ModelService
Throws:
ObjectNotFoundException

listResourceObjects

public ObjectListType listResourceObjects(java.lang.String resourceOid,
                                          javax.xml.namespace.QName objectType,
                                          PagingType paging,
                                          OperationResult result)
Specified by:
listResourceObjects in interface ModelService

testResource

public OperationResult testResource(java.lang.String resourceOid)
                             throws ObjectNotFoundException
Description copied from interface: ModelService
This returns OperationResult instead of taking it as in/out argument. This is different from the other methods. The testResource method is not using OperationResult to track its own execution but rather to track the execution of resource tests (that in fact happen in provisioning).

Specified by:
testResource in interface ModelService
Returns:
Throws:
ObjectNotFoundException

importFromResource

public void importFromResource(java.lang.String resourceOid,
                               javax.xml.namespace.QName objectClass,
                               Task task)
                        throws ObjectNotFoundException
Specified by:
importFromResource in interface ModelService
Throws:
ObjectNotFoundException

getImportStatus

@Deprecated
public TaskStatusType getImportStatus(java.lang.String resourceOid,
                                                 OperationResult result)
                               throws ObjectNotFoundException
Deprecated. 

Specified by:
getImportStatus in interface ModelService
Throws:
ObjectNotFoundException

getObject

public <T extends ObjectType> T getObject(java.lang.String oid,
                                          PropertyReferenceListType resolve,
                                          OperationResult result,
                                          java.lang.Class<T> clazz,
                                          boolean fromProvisioning)
                               throws ObjectNotFoundException
Specified by:
getObject in interface ModelController
Throws:
ObjectNotFoundException


Copyright © 2011 evolveum. All Rights Reserved.