06-18-2013 06:39 AM
06-18-2013 06:44 AM
06-18-2013 09:47 AM
06-19-2013 12:13 AM
06-20-2013 06:16 AM
06-24-2013 01:22 AM
06-26-2013 02:25 AM
06-26-2013 06:13 AM
<webscript kind="org.alfresco.repository.content.stream">
<shortname>Show Document</shortname>
<description>
Returns the content for a supplied node.
</description>
<url>/farthest-gate/get-pdf-rendition</url>
<format default="html">extension</format>
<authentication runas="system">none</authentication>
<transaction>required</transaction>
<family>Farthest Gate</family>
</webscript>
function main(){
var nodeRef = args.noderef;
// get the node from the reference
if(nodeRef) {
var doc = search.findNode(nodeRef);
if (doc)
{
model.contentNode = doc;
}
else
{
status.code = 400;
status.message = "Node " + nodeRef + " does not exist";
status.redirect = true;
}
} else {
status.code = 404;
status.message = "Noderef not given";
status.redirect = true;
}
}
main();
06-26-2013 11:21 PM
06-27-2013 05:52 AM
dest.move(C:\Alfresco\alf_data\archive)
var query = '+PATH:"/app:company_home/cm:archive" +TYPE:"cm:folder"';
var queryDef = {
query: query,
language: "lucene"
};
var qResult = search.query(queryDef);
if (qResult.length == 1) { // If we had more that 1 returned, we have more than 1 archive folder which is a problem
document.move(qResult[0].nodeRef);
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.