public void setRootNodeRef(NodeRef nodeRef) { m_rootNodeRef = nodeRef; setShareName(nodeRef.toString()); }
private QName tagScopeToLockQName(NodeRef tagScope) { QName lockQName = QName.createQName("TagScope_" + tagScope.toString()); return lockQName; } protected String lockTagScope(NodeRef tagScope)
public void setRootNodeRef(NodeRef nodeRef) { m_rootNodeRef = nodeRef; setShareName(nodeRef.toString()); }
private QName tagScopeToLockQName(NodeRef tagScope) { QName lockQName = QName.createQName("TagScope_" + tagScope.toString()); return lockQName; } protected String lockTagScope(NodeRef tagScope)
public String constructObjectId(NodeRef incomingNodeRef, String versionLabel, boolean dropStoreRef) { StringBuilder sb = new StringBuilder(); sb.append(dropStoreRef ? incomingNodeRef.getId() : incomingNodeRef.toString()); if(versionLabel != null) { sb.append(CMISConnector.ID_SEPERATOR); sb.append(versionLabel); } return sb.toString(); }
public void postActivity(String activityType, String siteId, String appTool, NodeRef nodeRef, String name) { ParameterCheck.mandatory("nodeRef", nodeRef); StringBuffer sb = new StringBuffer(); sb.append("{").append("\""+PostLookup.JSON_NODEREF_LOOKUP+"\":\"").append(nodeRef.toString()).append("\"").append(",") .append("\"name\":\"").append(name).append("\"") .append("}"); postActivity(activityType, siteId, appTool, sb.toString(), ActivityPostEntity.STATUS.PENDING, getCurrentUser(),null,null); }
private String getPackageRef(Map<String, Object> executionVariables) { String packageName = WorkflowModel.ASSOC_PACKAGE.toPrefixString(namespaceService).replace(":", "_"); ScriptNode packageNode = (ScriptNode) executionVariables.get(packageName); String packageRef = packageNode.getNodeRef().toString(); return packageRef; }
public void cancelRenditions(NodeRef sourceNode, String type) { if (log.isDebugEnabled()) { log.debug("cancelling renditions of type " + type + " on nodeRef: " + sourceNode.toString()); } List<ExecutionSummary> executionSummaries = actionTrackingService.getExecutingActions(type, sourceNode); for (ExecutionSummary executionSummary : executionSummaries) { actionTrackingService.requestActionCancellation(executionSummary); } }
public void endACL(NodeRef nodeRef) { try { contentHandler.endElement(ACL_QNAME.getNamespaceURI(), ACL_QNAME.getLocalName(), toPrefixString(ACL_QNAME)); } catch (SAXException e) { throw new ExporterException("Failed to process end ACL event - node ref " + nodeRef.toString()); } }
public void endACL(NodeRef nodeRef) { try { contentHandler.endElement(ACL_QNAME.getNamespaceURI(), ACL_QNAME.getLocalName(), toPrefixString(ACL_QNAME)); } catch (SAXException e) { throw new ExporterException("Failed to process end ACL event - node ref " + nodeRef.toString()); } }
public void endNode(NodeRef nodeRef) { try { QName type = nodeService.getType(nodeRef); contentHandler.endElement(type.getNamespaceURI(), type.getLocalName(), toPrefixString(type)); } catch (SAXException e) { throw new ExporterException("Failed to process end node event - node ref " + nodeRef.toString(), e); } }
public void endAspect(NodeRef nodeRef, QName aspect) { try { contentHandler.endElement(aspect.getNamespaceURI(), aspect.getLocalName(), toPrefixString(aspect)); } catch (SAXException e) { throw new ExporterException("Failed to process end aspect event - node ref " + nodeRef.toString() + "; aspect " + toPrefixString(aspect), e); } }
public void endAspect(NodeRef nodeRef, QName aspect) { try { contentHandler.endElement(aspect.getNamespaceURI(), aspect.getLocalName(), toPrefixString(aspect)); } catch (SAXException e) { throw new ExporterException("Failed to process end aspect event - node ref " + nodeRef.toString() + "; aspect " + toPrefixString(aspect), e); } }
public void startAspect(NodeRef nodeRef, QName aspect) { try { contentHandler.startElement(aspect.getNamespaceURI(), aspect.getLocalName(), toPrefixString(aspect), EMPTY_ATTRIBUTES); } catch (SAXException e) { throw new ExporterException("Failed to process start aspect event - node ref " + nodeRef.toString() + "; aspect " + toPrefixString(aspect), e); } }
private void testCancelled(NodeRef transferRecord) throws TransferFatalException { Status currentStatus = Status.valueOf((String)nodeService.getProperty(transferRecord, TransferModel.PROP_TRANSFER_STATUS)); if (Status.CANCELLED.equals(currentStatus)) { throw new TransferFatalException(MSG_TRANSFER_CANCELLED, new Object[] { transferRecord.toString() }); } }
private UidValidityTransactionListener getUidValidityTransactionListener(NodeRef folderRef) { String key = UIDVALIDITY_TRANSACTION_LISTENER + folderRef.toString(); UidValidityTransactionListener txnListener = AlfrescoTransactionSupport.getResource(key); if (txnListener == null) { txnListener = new UidValidityTransactionListener(folderRef); AlfrescoTransactionSupport.bindListener(txnListener); AlfrescoTransactionSupport.bindResource(key, txnListener); } return txnListener; }
private UidValidityTransactionListener getUidValidityTransactionListener(NodeRef folderRef) { String key = UIDVALIDITY_TRANSACTION_LISTENER + folderRef.toString(); UidValidityTransactionListener txnListener = AlfrescoTransactionSupport.getResource(key); if (txnListener == null) { txnListener = new UidValidityTransactionListener(folderRef); AlfrescoTransactionSupport.bindListener(txnListener); AlfrescoTransactionSupport.bindResource(key, txnListener); } return txnListener; }
@Test public void testFormContext() throws Exception { Map<String, Object> context = new HashMap<String, Object>(2); context.put("nodeRef", this.folder); context.put("name", "Gavin Cornwell"); Form form = this.formService.getForm(new Item(NODE_FORM_ITEM_KIND, this.document.toString()), context); assertNotNull(form); }
@Override public Void execute(CmisService cmisService) { for (FileInfo fileInfo : docs) { cmisService.deleteContentStream(repositoryId, new Holder<String>(fileInfo.getNodeRef().toString()), null, null); } return null; } }, CmisVersion.CMIS_1_1);
@Test public void process() throws Exception { NodeRef nodeRef = new NodeRef("workspace://spacesStore/test-id"); OnContentUpdatePolicyEvent policyEvent = new OnContentUpdatePolicyEvent(); policyEvent.setNodeRef(nodeRef.toString()); policyEvent.setNewContent(true); Exchange exchange = createExchange(policyEvent); renditionEventProcessor.process(exchange); }