@PermitAll public class HumanTypeFactoryImpl extends Object implements HumanTypeFactory
Constructor and Description |
---|
HumanTypeFactoryImpl()
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addToBatchLoading(Collection<ExternalValue> values)
Register value to be loaded in batch
|
void |
addToBatchLoading(ExternalValue value,
RecordType type)
Register value to be loaded in batch
|
RecordHolder |
convertJavaObjectToHolder(ModelInstance modelInstance,
RecordType recordType,
Object value)
Converts given java object to external holder.
|
RecordHolder |
convertValueToHolder(ExternalValue value,
RecordType recordType)
Converts given external type value to external holder.
|
RecordHolder |
createRecord(ModelInstance modelInstance,
RecordType type,
Map<String,?> values)
Creates a new record of the specified type.
|
RecordHolder |
getSavedDocument(ModelInstance modelInstance,
long savedDocumentId)
Creates a saved document holder.
|
Collection<String> |
getSupportedRecordTypes()
Returns a collection of supported record types.
|
RecordHolder |
getTodoEscalationHolder(ModelInstance modelInstance,
long todoEscalationId)
Creates a todo escalation holder.
|
RecordHolder |
getTodoHolder(ModelInstance modelInstance,
long todoId)
Creates a todo holder.
|
public RecordHolder convertValueToHolder(ExternalValue value, RecordType recordType)
ExternalTypeFactory
convertValueToHolder
in interface ExternalTypeFactory
public RecordHolder convertJavaObjectToHolder(ModelInstance modelInstance, RecordType recordType, Object value)
ExternalTypeFactory
convertJavaObjectToHolder
in interface ExternalTypeFactory
public RecordHolder createRecord(ModelInstance modelInstance, RecordType type, Map<String,?> values)
ExternalTypeFactory
createRecord
in interface ExternalTypeFactory
modelInstance
- the model instancetype
- the record typevalues
- initial record field values @return new RecordHolderpublic RecordHolder getTodoHolder(ModelInstance modelInstance, long todoId)
HumanTypeFactory
getTodoHolder
in interface HumanTypeFactory
public RecordHolder getTodoEscalationHolder(ModelInstance modelInstance, long todoEscalationId)
HumanTypeFactory
getTodoEscalationHolder
in interface HumanTypeFactory
public RecordHolder getSavedDocument(ModelInstance modelInstance, long savedDocumentId)
HumanTypeFactory
getSavedDocument
in interface HumanTypeFactory
public Collection<String> getSupportedRecordTypes()
ExternalTypeFactory
getSupportedRecordTypes
in interface ExternalTypeFactory
public void addToBatchLoading(ExternalValue value, RecordType type)
ExternalTypeFactory
addToBatchLoading
in interface ExternalTypeFactory
public void addToBatchLoading(Collection<ExternalValue> values)
ExternalTypeFactory
addToBatchLoading
in interface ExternalTypeFactory
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.