Class TypedObjectConverter
java.lang.Object
com.emc.documentum.rest.dfc.conversion.TypedObjectConverter
Convert DFC objects to Core REST model
-
Constructor Summary
ConstructorsConstructorDescriptionTypedObjectConverter
(com.documentum.fc.client.IDfTypedObject dfcObject) Init the converterTypedObjectConverter
(com.documentum.fc.client.IDfTypedObject dfcObject, com.documentum.fc.client.IDfTypedObject otherObject, AttributeView attributeView) Init the converterTypedObjectConverter
(com.documentum.fc.client.IDfTypedObject dfcObject, AttributeView attributeView) Init the converter -
Method Summary
Modifier and TypeMethodDescription<T extends PersistentObject>
TConvert the dfc object to instance ofPersistentObject
-
Constructor Details
-
TypedObjectConverter
public TypedObjectConverter(com.documentum.fc.client.IDfTypedObject dfcObject) Init the converter- Parameters:
dfcObject
- DFC object to convert
-
TypedObjectConverter
public TypedObjectConverter(com.documentum.fc.client.IDfTypedObject dfcObject, AttributeView attributeView) Init the converter- Parameters:
dfcObject
- DFC object to convertattributeView
- attribute view applied during convert
-
TypedObjectConverter
public TypedObjectConverter(com.documentum.fc.client.IDfTypedObject dfcObject, com.documentum.fc.client.IDfTypedObject otherObject, AttributeView attributeView) Init the converter- Parameters:
dfcObject
- DFC object to convertotherObject
- if some attributes are missed indfcObject
, get them fromotherObject
attributeView
- attribute view applied during convert
-
-
Method Details
-
convert
public <T extends PersistentObject> T convert(Class<T> clazz) throws com.documentum.fc.common.DfException Convert the dfc object to instance ofPersistentObject
- Type Parameters:
T
- the type of the target object- Parameters:
clazz
- Class object of typeT
- Returns:
- converted instance of
PersistentObject
- Throws:
com.documentum.fc.common.DfException
- the exception during convert
-