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

java.lang.Object
  extended by com.evolveum.midpoint.web.model.impl.ObjectManagerImpl<ObjectType,ObjectDto<ObjectType>>
      extended by com.evolveum.midpoint.web.model.impl.BasicObjectManagerImpl
All Implemented Interfaces:
ObjectManager<ObjectDto<ObjectType>>, java.io.Serializable

public class BasicObjectManagerImpl
extends ObjectManagerImpl<ObjectType,ObjectDto<ObjectType>>

Author:
lazyman
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.evolveum.midpoint.web.model.ObjectManager
ADD, CLASS_NAME, CREATE, DELETE, GET, GET_PROPERTY_AVAILABLE_VALUES, LIST, SUBMIT
 
Constructor Summary
BasicObjectManagerImpl()
           
 
Method Summary
protected  ObjectDto<ObjectType> createObject(ObjectType objectType)
           
protected  java.lang.Class<? extends ObjectType> getSupportedObjectClass()
           
 java.util.Collection<ObjectDto<ObjectType>> list(PagingType paging)
          List objects according to paging parameters.
 java.util.Set<PropertyChange> submit(ObjectDto<ObjectType> changedObject, Task task, OperationResult parentResult)
          Modify the object.
 
Methods inherited from class com.evolveum.midpoint.web.model.impl.ObjectManagerImpl
add, create, delete, get, get, getModel, getPropertyAvailableValues, getTaskManager, list, list, list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicObjectManagerImpl

public BasicObjectManagerImpl()
Method Detail

list

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

Returns:
all objects from the repository.

submit

public java.util.Set<PropertyChange> submit(ObjectDto<ObjectType> changedObject,
                                            Task task,
                                            OperationResult parentResult)
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.

Parameters:
changedObject - new state of the object
Returns:
relative changes that will be applied to the object

getSupportedObjectClass

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

createObject

protected ObjectDto<ObjectType> createObject(ObjectType objectType)
Specified by:
createObject in class ObjectManagerImpl<ObjectType,ObjectDto<ObjectType>>


Copyright © 2012 evolveum. All Rights Reserved.