@Override protected Set<QName> getAspectNames(NodeRef nodeRef) { return nodeService.getAspects(nodeRef); }
/** * @return The list of aspects applied to this node */ public Set<QName> getAspectsSet() { if (this.aspects == null) { this.aspects = this.nodeService.getAspects(this.nodeRef); } return this.aspects; }
@Override protected Set<QName> getAspectNames(NodeRef nodeRef) { return nodeService.getAspects(nodeRef); }
/** * @return The list of aspects applied to this node */ public Set<QName> getAspectsSet() { if (this.aspects == null) { this.aspects = this.nodeService.getAspects(this.nodeRef); } return this.aspects; }
private boolean aspectMatches(QName aspect, NodeRef parent) { return aspect == null || nodeService.getAspects(parent).contains(aspect); }
public Set<QName> getNodeAspects() { if ((nodeAspects == null) && (nodeRef != null)) { nodeAspects = connector.getNodeService().getAspects(nodeRef); } return nodeAspects; } }
@Override public Set<QName> getAspects(NodeRef nodeRef) { NodeService nodeService = apiFacet.getNodeService(); return nodeService.getAspects(nodeRef); }
private void checkQuickShareNode(final NodeRef nodeRef) { if (! nodeService.getAspects(nodeRef).contains(QuickShareModel.ASPECT_QSHARE)) { throw new InvalidNodeRefException(nodeRef); } }
/** * Aspects translation for version store */ public Set<QName> getAspects(NodeRef nodeRef) throws InvalidNodeRefException { Set<QName> aspects = this.dbNodeService.getAspects(VersionUtil.convertNodeRef(nodeRef)); aspects.remove(Version2Model.ASPECT_VERSION); return aspects; }
public Set<QName> getNodeAspects() { if ((nodeAspects == null) && (nodeRef != null)) { nodeAspects = connector.getNodeService().getAspects(nodeRef); } return nodeAspects; } }
/** * Aspects translation for version store */ public Set<QName> getAspects(NodeRef nodeRef) throws InvalidNodeRefException { Set<QName> aspects = this.dbNodeService.getAspects(VersionUtil.convertNodeRef(nodeRef)); aspects.remove(Version2Model.ASPECT_VERSION); return aspects; }
private void checkQuickShareNode(final NodeRef nodeRef) { if (! nodeService.getAspects(nodeRef).contains(QuickShareModel.ASPECT_QSHARE)) { throw new InvalidNodeRefException(nodeRef); } }
@Override public Set<QName> getAspects(NodeRef nodeRef) { NodeService nodeService = apiFacet.getNodeService(); return nodeService.getAspects(nodeRef); }
/** * @return The list of aspects applied to this node */ @Override public Set<QName> getAspects() { if (this.aspects == null) { this.aspects = parent.services.getNodeService().getAspects(this.version.getFrozenStateNodeRef()); } return this.aspects; }
/** * @return The list of aspects applied to this node */ public Set<QName> getAspects() { if (this.aspects == null) { this.aspects = this.services.getNodeService().getAspects(getNodeRef()); } return this.aspects; }
/** * @return The list of aspects applied to this node */ public Set<QName> getAspects() { if (this.aspects == null) { this.aspects = this.services.getNodeService().getAspects(getNodeRef()); } return this.aspects; }
public boolean isRendition(NodeRef node) { final QName aspectToCheckFor = RenditionModel.ASPECT_RENDITION; Set<QName> existingAspects = nodeService.getAspects(node); for (QName nextAspect : existingAspects) { if (nextAspect.equals(aspectToCheckFor) || dictionaryService.isSubClass(nextAspect, aspectToCheckFor)) { return true; } } return false; }
public Set<PermissionReference> getExposedPermissions(NodeRef nodeRef) { return getAllPermissionsImpl(nodeService.getType(nodeRef), nodeService.getAspects(nodeRef), true); }
@Override public Void doWork() throws Exception { assertFalse( nodeService.getAspects(testNode).contains(QuickShareModel.ASPECT_QSHARE)); assertNull(nodeService.getProperty(testNode, QuickShareModel.PROP_QSHARE_SHAREDID)); assertNull(nodeService.getProperty(testNode, QuickShareModel.PROP_QSHARE_SHAREDBY)); return null; }
@Override public Void doWork() throws Exception { assertTrue(nodeService.getAspects(testNode).contains(ContentModel.ASPECT_AUDITABLE)); assertNotNull(nodeService.getProperty(testNode, ContentModel.PROP_MODIFIER)); assertEquals("The modifier has changed after sharing.", user1.getUsername(), nodeService.getProperty(testNode, ContentModel.PROP_MODIFIER)); assertNotNull(nodeService.getProperty(testNode, ContentModel.PROP_MODIFIED)); assertEquals("The modified date has changed after sharing.", modifiedDate, nodeService.getProperty(testNode, ContentModel.PROP_MODIFIED)); return null; } });