@Service @Transactional public class ModelRelationService extends Object
Constructor and Description |
---|
ModelRelationService() |
Modifier and Type | Method and Description |
---|---|
protected List<com.activiti.domain.editor.ModelInformation> |
convert(List<Object[]> rawResults) |
List<com.activiti.domain.editor.ModelInformation> |
findParentModels(Long modelId)
Returns the models which have a
ModelRelation with the given model,
where the given model is the one that is referenced. |
List<com.activiti.domain.editor.ModelInformation> |
findReferencedModels(Long modelId)
Returns the models which have a
ModelRelation with the given model,
where the model references those directly or indirectly. |
public List<com.activiti.domain.editor.ModelInformation> findReferencedModels(Long modelId)
ModelRelation
with the given model,
where the model references those directly or indirectly.
ie modelId here is the parent of the relation.public List<com.activiti.domain.editor.ModelInformation> findParentModels(Long modelId)
ModelRelation
with the given model,
where the given model is the one that is referenced.
ie modelId is the child of the relationCopyright © 2014–2015 Alfresco. All rights reserved.