Search in sources :

Example 1 with GetAspectsMethod

use of org.alfresco.repo.virtual.ref.GetAspectsMethod in project alfresco-repository by Alfresco.

the class VirtualNodeServiceExtension method getAspects.

@Override
public Set<QName> getAspects(NodeRef nodeRef) {
    NodeServiceTrait theTrait = getTrait();
    Reference reference = Reference.fromNodeRef(nodeRef);
    if (reference != null) {
        GetAspectsMethod method = new GetAspectsMethod(theTrait, environment);
        return reference.execute(method);
    } else {
        return theTrait.getAspects(nodeRef);
    }
}
Also used : GetAspectsMethod(org.alfresco.repo.virtual.ref.GetAspectsMethod) NodeServiceTrait(org.alfresco.repo.node.db.traitextender.NodeServiceTrait) Reference(org.alfresco.repo.virtual.ref.Reference)

Aggregations

NodeServiceTrait (org.alfresco.repo.node.db.traitextender.NodeServiceTrait)1 GetAspectsMethod (org.alfresco.repo.virtual.ref.GetAspectsMethod)1 Reference (org.alfresco.repo.virtual.ref.Reference)1