code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
try {
var jsonObject = jsonUtils.toObject(requestbody.content);
var document = jsonObject.document;
var destination = jsonObject.pathNodeRef;
var keyPassword = jsonObject.password;
var reason = jsonObject.reason;
var location = jsonObject.location;
var contact = jsonObject.contact;
var position = json... | JavaScript |
<import resource="classpath:/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/evaluator.lib.js">
<import resource="classpath:/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/parse-args.lib.js">
var items = [], item;
var filterPerson = args["filterPerson"];
var filterDate... | JavaScript |
var keyPassword = args["password"];
var noderef = args["noderef"];
if (keyPassword == null) {
status.setCode(status.STATUS_BAD_REQUEST, "password parameter is not present");
return;
}
if (noderef == null) {
status.setCode(status.STATUS_BAD_REQUEST, "noderef parameter is not present");
return;
}
... | JavaScript |
(function() {
/**
* Triggers the zip stream webscript
*
* @method onActionDownloadAsZip
* @param file
* {object} Object literal representing one or more file(s) or
* folder(s) to be actioned
*/
Alfresco.DocListToolbar.prototype.onActionDownloadAsZip = function DLTB_onAc... | JavaScript |
(function() {
/**
* Triggers the zip stream webscript
*
* @method onActionDownloadAsZip
* @param file
* {object} Object literal representing one or more file(s) or
* folder(s) to be actioned
*/
Alfresco.DocListToolbar.prototype.onActionDownloadAsZip = function DLTB_onAc... | JavaScript |
/**
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at ... | JavaScript |
/**
* Admin Console Javascript Console component
*/
function main()
{
}
main(); | JavaScript |
function main()
{
// Get the site
var siteId = url.templateArgs.site;
var site = siteService.getSite(siteId);
//TODO determine by a localized properties file
var containerId = "Procurement";
if (site === null)
{
status.setCode(status.STATUS_NOT_FOUND, "Site not found: '" + ... | JavaScript |
(function() {
/**
* Triggers the zip stream webscript
*
* @method onActionDownloadAsZip
* @param file
* {object} Object literal representing one or more file(s) or
* folder(s) to be actioned
*/
Alfresco.DocListToolbar.prototype.onActionDownloadAsZip = function DLTB_onAc... | JavaScript |
/**
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at ... | JavaScript |
/*
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | JavaScript |
/*
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | JavaScript |
if (model.widgets)
{
for (var i = 0; i < model.widgets.length; i++)
{
var widget = model.widgets[i];
if (widget.id == "WebPreview")
{
var conditions = [];
// Insert new pluginCondition(s) at start of the chain
conditions.push({
attributes: {
... | JavaScript |
/**
* Copyright (C) 2010-2012 Share Extras Contributors.
*/
/**
* This is the "SVG" plugin used to display documents using the google-code-SVG project.
*
* It supports any text-based format such as XML/HTML mark-up, source code and CSS that are supported
* by google code SVG. See the SVG project site for... | JavaScript |
logger.log("Rated?" + mratings.hasRatings(document));
logger.log("Rating document three times");
mratings.rate(document, 1, person.properties.userName);
mratings.rate(document, 2, person.properties.userName);
mratings.rate(document, 3, person.properties.userName);
logger.log("Rated?" + mratings.hasRatings(document)); | JavaScript |
logger.log("Rated?" + mratings.hasRatings(document));
logger.log("Deleting ratings");
mratings.deleteRatings(document);
logger.log("Rated?" + mratings.hasRatings(document)); | JavaScript |
logger.log("User rating:" + mratings.getUserRating(document, person.properties.userName));
var ratingData = mratings.getRatingData(document);
logger.log("Average:" + ratingData.getRating());
logger.log("Count:" + ratingData.getCount());
logger.log("Total:" + ratingData.getTotal()); | JavaScript |
<import resource="classpath:alfresco/module/com_metaversant_fivestar/scripts/rating.js">
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www... | JavaScript |
<import resource="classpath:alfresco/module/com_metaversant_fivestar/scripts/rating.js">
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www... | JavaScript |
<import resource="classpath:alfresco/module/com_metaversant_fivestar/scripts/rating.js">
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www... | JavaScript |
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | JavaScript |
<import resource="classpath:/alfresco/module/com_metaversant_fivestar/scripts/rating.js">
/**
* Search Component: search
*
* Inputs:
* optional: site = the site to search into.
* optional: container = the component the search in
*
* Outputs:
* data.items/data.error - object containing list of search resul... | JavaScript |
<import resource="classpath:/alfresco/extension/templates/webscripts/org/alfresco/slingshot/search/search.lib.js">
function main()
{
var siteId = (args.site !== undefined) ? args.site : null;
var containerId = (args.container !== undefined) ? args.container : null;
var term = (args.term !== undefined) ? args.t... | JavaScript |
<import resource="classpath:/alfresco/module/com_metaversant_fivestar/scripts/rating.js">
var Evaluator =
{
/**
* Node Type evaluator
*/
getNodeType: function Evaluator_getNodeType(node)
{
var nodeType = "";
if (node.isContainer)
{
nodeType = "folder";
}
else if ... | JavaScript |
<import resource="classpath:/alfresco/extension/templates/webscripts/org/alfresco/slingshot/documentlibrary/evaluator.lib.js">
<import resource="classpath:/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/filters.lib.js">
<import resource="classpath:/alfresco/templates/webscripts/org/alfresco/slings... | JavaScript |
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | JavaScript |
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | JavaScript |
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | JavaScript |
/**
* Metaversant five star ratings component
*
* @namespace Metaversant
* @class Metaversant.RepositoryDocumentList
*/
(function()
{
/**
* Alfresco Slingshot aliases
*/
var $html = Alfresco.util.encodeHTML,
$links = Alfresco.util.activateLinks,
$combine = Alfresco.util.combi... | JavaScript |
/**
* Metaversant five star ratings component
*
* @namespace Metaversant
* @class Metaversant.DocumentList
*/
(function()
{
/**
* YUI Library aliases
*/
var Dom = YAHOO.util.Dom,
Event = YAHOO.util.Event;
/**
* Alfresco Slingshot aliases
*/
var $html = Alfresco.util.enco... | JavaScript |
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | JavaScript |
/**
* Metaversant five star ratings component
*
* @namespace Metaversant
* @class Metaversant.DocumentList
*/
(function()
{
/**
* Alfresco Slingshot aliases
*/
var $html = Alfresco.util.encodeHTML,
$links = Alfresco.util.activateLinks,
$combine = Alfresco.util.combinePaths,
$... | JavaScript |
/**
* Metaversant five star ratings component
*
* @namespace Metaversant
* @class Metaversant.Search
*/
(function()
{
/**
* YUI Library aliases
*/
var Dom = YAHOO.util.Dom,
Event = YAHOO.util.Event;
/**
* Alfresco Slingshot aliases
*/
var $html = Alfresco.util.encodeHT... | JavaScript |
logger.log("Rated?" + mratings.hasRatings(document));
logger.log("Rating document three times");
mratings.rate(document, 1, person.properties.userName);
mratings.rate(document, 2, person.properties.userName);
mratings.rate(document, 3, person.properties.userName);
logger.log("Rated?" + mratings.hasRatings(document)); | JavaScript |
logger.log("Rated?" + mratings.hasRatings(document));
logger.log("Deleting ratings");
mratings.deleteRatings(document);
logger.log("Rated?" + mratings.hasRatings(document)); | JavaScript |
logger.log("User rating:" + mratings.getUserRating(document, person.properties.userName));
var ratingData = mratings.getRatingData(document);
logger.log("Average:" + ratingData.getRating());
logger.log("Count:" + ratingData.getCount());
logger.log("Total:" + ratingData.getTotal()); | JavaScript |
<import resource="classpath:alfresco/module/com_metaversant_fivestar/scripts/rating.js">
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www... | JavaScript |
<import resource="classpath:alfresco/module/com_metaversant_fivestar/scripts/rating.js">
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www... | JavaScript |
<import resource="classpath:alfresco/module/com_metaversant_fivestar/scripts/rating.js">
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www... | JavaScript |
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | JavaScript |
<import resource="classpath:/alfresco/module/com_metaversant_fivestar/scripts/rating.js">
/**
* Search Component: search
*
* Inputs:
* optional: site = the site to search into.
* optional: container = the component the search in
*
* Outputs:
* data.items/data.error - object containing list of search resul... | JavaScript |
<import resource="classpath:/alfresco/extension/templates/webscripts/org/alfresco/slingshot/search/search.lib.js">
function main()
{
var siteId = (args.site !== undefined) ? args.site : null;
var containerId = (args.container !== undefined) ? args.container : null;
var term = (args.term !== undefined) ? args.t... | JavaScript |
<import resource="classpath:/alfresco/module/com_metaversant_fivestar/scripts/rating.js">
var Evaluator =
{
/**
* Node Type evaluator
*/
getNodeType: function Evaluator_getNodeType(node)
{
var nodeType = "";
if (node.isContainer)
{
nodeType = "folder";
}
else if ... | JavaScript |
<import resource="classpath:/alfresco/extension/templates/webscripts/org/alfresco/slingshot/documentlibrary/evaluator.lib.js">
<import resource="classpath:/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/filters.lib.js">
<import resource="classpath:/alfresco/templates/webscripts/org/alfresco/slings... | JavaScript |
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | JavaScript |
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | JavaScript |
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | JavaScript |
/**
* Metaversant five star ratings component
*
* @namespace Metaversant
* @class Metaversant.RepositoryDocumentList
*/
(function()
{
/**
* Alfresco Slingshot aliases
*/
var $html = Alfresco.util.encodeHTML,
$links = Alfresco.util.activateLinks,
$combine = Alfresco.util.combi... | JavaScript |
/**
* Metaversant five star ratings component
*
* @namespace Metaversant
* @class Metaversant.DocumentList
*/
(function()
{
/**
* YUI Library aliases
*/
var Dom = YAHOO.util.Dom,
Event = YAHOO.util.Event;
/**
* Alfresco Slingshot aliases
*/
var $html = Alfresco.util.enco... | JavaScript |
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | JavaScript |
/**
* Metaversant five star ratings component
*
* @namespace Metaversant
* @class Metaversant.DocumentList
*/
(function()
{
/**
* Alfresco Slingshot aliases
*/
var $html = Alfresco.util.encodeHTML,
$links = Alfresco.util.activateLinks,
$combine = Alfresco.util.combinePaths,
$... | JavaScript |
/**
* Metaversant five star ratings component
*
* @namespace Metaversant
* @class Metaversant.Search
*/
(function()
{
/**
* YUI Library aliases
*/
var Dom = YAHOO.util.Dom,
Event = YAHOO.util.Event;
/**
* Alfresco Slingshot aliases
*/
var $html = Alfresco.util.encodeHT... | JavaScript |
logger.log("Rated?" + mratings.hasRatings(document));
logger.log("Rating document three times");
mratings.rate(document, 1, person.properties.userName);
mratings.rate(document, 2, person.properties.userName);
mratings.rate(document, 3, person.properties.userName);
logger.log("Rated?" + mratings.hasRatings(document)); | JavaScript |
logger.log("Rated?" + mratings.hasRatings(document));
logger.log("Deleting ratings");
mratings.deleteRatings(document);
logger.log("Rated?" + mratings.hasRatings(document)); | JavaScript |
logger.log("User rating:" + mratings.getUserRating(document, person.properties.userName));
var ratingData = mratings.getRatingData(document);
logger.log("Average:" + ratingData.getRating());
logger.log("Count:" + ratingData.getCount());
logger.log("Total:" + ratingData.getTotal()); | JavaScript |
<import resource="classpath:alfresco/module/com_metaversant_fivestar/scripts/rating.js">
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www... | JavaScript |
<import resource="classpath:alfresco/module/com_metaversant_fivestar/scripts/rating.js">
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www... | JavaScript |
<import resource="classpath:alfresco/module/com_metaversant_fivestar/scripts/rating.js">
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www... | JavaScript |
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | JavaScript |
<import resource="classpath:/alfresco/module/com_metaversant_fivestar/scripts/rating.js">
/**
* Search Component: search
*
* Inputs:
* optional: site = the site to search into.
* optional: container = the component the search in
*
* Outputs:
* data.items/data.error - object containing list of search resul... | JavaScript |
<import resource="classpath:/alfresco/extension/templates/webscripts/org/alfresco/slingshot/search/search.lib.js">
function main()
{
var siteId = (args.site !== undefined) ? args.site : null;
var containerId = (args.container !== undefined) ? args.container : null;
var term = (args.term !== undefined) ? args.t... | JavaScript |
<import resource="classpath:/alfresco/module/com_metaversant_fivestar/scripts/rating.js">
var Evaluator =
{
/**
* Node Type evaluator
*/
getNodeType: function Evaluator_getNodeType(node)
{
var nodeType = "";
if (node.isContainer)
{
nodeType = "folder";
}
else if ... | JavaScript |
<import resource="classpath:/alfresco/extension/templates/webscripts/org/alfresco/slingshot/documentlibrary/evaluator.lib.js">
<import resource="classpath:/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/filters.lib.js">
<import resource="classpath:/alfresco/templates/webscripts/org/alfresco/slings... | JavaScript |
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | JavaScript |
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | JavaScript |
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | JavaScript |
/**
* Metaversant five star ratings component
*
* @namespace Metaversant
* @class Metaversant.RepositoryDocumentList
*/
(function()
{
/**
* Alfresco Slingshot aliases
*/
var $html = Alfresco.util.encodeHTML,
$links = Alfresco.util.activateLinks,
$combine = Alfresco.util.combinePath... | JavaScript |
/**
* Metaversant five star ratings component
*
* @namespace Metaversant
* @class Metaversant.DocumentList
*/
(function()
{
/**
* Alfresco Slingshot aliases
*/
var $html = Alfresco.util.encodeHTML,
$links = Alfresco.util.activateLinks,
$combine = Alfresco.util.combinePaths;
... | JavaScript |
/**
Copyright 2011, Jeff Potts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | JavaScript |
/**
* Metaversant five star ratings component
*
* @namespace Metaversant
* @class Metaversant.DocumentList
*/
(function()
{
/**
* Alfresco Slingshot aliases
*/
var $html = Alfresco.util.encodeHTML,
$links = Alfresco.util.activateLinks,
$combine = Alfresco.util.combinePaths;
... | JavaScript |
/**
* Metaversant five star ratings component
*
* @namespace Metaversant
* @class Metaversant.Search
*/
(function()
{
/**
* YUI Library aliases
*/
var Dom = YAHOO.util.Dom,
Event = YAHOO.util.Event;
/**
* Alfresco Slingshot aliases
*/
var $html = Alfresco.util.encodeHT... | JavaScript |
/**
Alfresco Javascript Library
**/
/**
* alfresco root namespace.
*/
if (typeof alfresco == "undefined" || !alfresco)
{
var alfresco = {};
}
/**
* alfresco top-level service namespace.
*/
alfresco.message = alfresco.message || {};
/**
* Utilities for handling alfresco ticket based authen... | JavaScript |
/**
* Copyright (C) 2010-2012 Share Extras Contributors.
*/
/**
* This is the "Freemind" plugin used to display documents using the google-code-Freemind project.
*
* It supports any text-based format such as XML/HTML mark-up, source code and CSS that are supported
* by google code Freemind. See the Freem... | JavaScript |
if (model.widgets)
{
for (var i = 0; i < model.widgets.length; i++)
{
var widget = model.widgets[i];
if (widget.id == "WebPreview")
{
var conditions = [];
// Insert new pluginCondition(s) at start of the chain
conditions.push({
attributes: {
... | JavaScript |
/**
* Copyright 2008-2012 Alfresco Software Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | JavaScript |
function splitatpage()
{
/*
* This script depends on the test data from the bootstrap ACP file being loaded into
* the PDF Toolkit Examples folder in the repository. This can be done by enabling the bootstrap
* load of this test data in context/bootstrap-context.xml
*/
// Get the PDF to be split
var pdf =... | JavaScript |
function sign()
{
/*
* This script depends on the test data from the bootstrap ACP file being loaded into
* the PDF Toolkit Examples folder in the repository. This can be done by enabling the bootstrap
* load of this test data in context/bootstrap-context.xml
*/
// Get the PDF to be signed
var pdf = compa... | JavaScript |
function insert()
{
/*
* This script depends on the test data from the bootstrap ACP file being loaded into
* the PDF Toolkit Examples folder in the repository. This can be done by enabling the bootstrap
* load of this test data in context/bootstrap-context.xml
*/
// Get the PDF to be inserted to
var pdf ... | JavaScript |
function encrypt()
{
/*
* This script depends on the test data from the bootstrap ACP file being loaded into
* the PDF Toolkit Examples folder in the repository. This can be done by enabling the bootstrap
* load of this test data in context/bootstrap-context.xml
*/
// Get the PDF to be encrypted
var pdf =... | JavaScript |
function watermark()
{
/*
* This script depends on the test data from the bootstrap ACP file being loaded into
* the PDF Toolkit Examples folder in the repository. This can be done by enabling the bootstrap
* load of this test data in context/bootstrap-context.xml
*/
// Get the PDF to be watermarked
var p... | JavaScript |
function append()
{
/*
* This script depends on the test data from the bootstrap ACP file being loaded into
* the PDF Toolkit Examples folder in the repository. This can be done by enabling the bootstrap
* load of this test data in context/bootstrap-context.xml
*/
// Get the PDF to be appended to
var pdf ... | JavaScript |
function watermark()
{
/*
* This script depends on the test data from the bootstrap ACP file being loaded into
* the PDF Toolkit Examples folder in the repository. This can be done by enabling the bootstrap
* load of this test data in context/bootstrap-context.xml
*/
// Get the PDF to be watermarked
var p... | JavaScript |
function split()
{
/*
* This script depends on the test data from the bootstrap ACP file being loaded into
* the PDF Toolkit Examples folder in the repository. This can be done by enabling the bootstrap
* load of this test data in context/bootstrap-context.xml
*/
// Get the PDF to be split
var pdf = compa... | JavaScript |
function deletepage()
{
/*
* This script depends on the test data from the bootstrap ACP file being loaded into
* the PDF Toolkit Examples folder in the repository. This can be done by enabling the bootstrap
* load of this test data in context/bootstrap-context.xml
*/
// Get the PDF to be modified
var pdf... | JavaScript |
function sign()
{
/*
* This script depends on the test data from the bootstrap ACP file being loaded into
* the PDF Toolkit Examples folder in the repository. This can be done by enabling the bootstrap
* load of this test data in context/bootstrap-context.xml
*/
// Get the PDF to be signed
var pdf = compa... | JavaScript |
/**
* Copyright 2008-2012 Alfresco Software Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | JavaScript |
/*
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | JavaScript |
/*
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | JavaScript |
var renditions = ["ws:mediumDeckShareThumbnail", "ws:largeDeckShareThumbnail"];
for (var i = 0; i < space.children.length; i++) {
for (var j = 0; j < renditions.length; j++) {
if (space.children[i].name == "index.html") {
continue;
} else {
renditionService.render(space.chil... | JavaScript |
function main() {
var node = findFromReference();
// var luceneQuery = " +PATH:\""+ node.qnamePath +"/member\""; // direct members
var luceneQuery = " +PATH:\""+ node.qnamePath +"//member\""; // direct members and subcategory members
var members = search.luceneSearch(luceneQuery);
//var articles = new Articles... | JavaScript |
function main() {
// node can be either a nodeRef or a QName
var nodeRefString = url.templateArgs.nodeRef;
var nodePathString = url.templateArgs.nodePath;
var nodeRef;
if (nodeRefString != null && nodeRefString != "") {
nodeRef = search.findNode(nodeRefString);
} else if (nodePathString != nul... | JavaScript |
function main() {
// node can be either a nodeRef or a QName
var nodeRefString = url.templateArgs.nodeRef;
var nodePathString = url.templateArgs.nodePath;
var nodeRef;
if (nodeRefString != null && nodeRefString != "") {
nodeRef = search.findNode(nodeRefString);
} else if (nodePathString != nul... | JavaScript |
<import resource="classpath:/alfresco/extension/templates/webscripts/org/alfresco/deckshare/related/related.lib.js">
function main() {
var nodeRef = getNode();
if (nodeRef != null) {
var relatedDocs = nodeRef.assocs['ds:related'];
model.results = relatedDocs;
}
}
main(); | JavaScript |
<import resource="classpath:/alfresco/extension/templates/webscripts/org/alfresco/deckshare/related/related.lib.js">
function main() {
var nodeRef = getNode();
if (nodeRef != null) {
var relatedDocs = nodeRef.assocs['ds:supporting'];
model.results = relatedDocs;
}
}
main(); | JavaScript |
function getNode() {
var nodeRefString = url.templateArgs.nodeRef;
var nodeRef;
if (nodeRefString != null && nodeRefString != "") {
nodeRef = search.findNode(nodeRefString);
} else {
status.setCode(status.STATUS_BAD_REQUEST);
status.setRedirect(true);
return;
}
... | JavaScript |
/**
* This script will search for the content of a particular category
* in the DeckShare folder.
*/
function main() {
var category = (url.templateArgs.category !== null) ? url.templateArgs.category : "";
var summaryList = new Array();
// TODO? Make the path configurable in a config file?
var query = "PATH:\"/... | JavaScript |
model.pageNumber = results.query.resultsToSkip / results.query.maxResults + 1;
model.totalPages = Math.ceil(results.totalSize / results.query.maxResults);
model.prevSkip = results.query.resultsToSkip - results.query.maxResults;
model.nextSkip = results.query.resultsToSkip + results.query.maxResults;
// If a link... | JavaScript |
// Get the collection of articles indicated in the component properties
model.articles = collectionService.getCollection(context.properties.section.id, args.collection);
// If a link page is specified in the component properties then pass this to the view
if (args.linkPage != null)
{
model.linkParam = '?view='+args.... | JavaScript |
// Get the collection of articles indicated in the component properties
model.articles = collectionService.getCollection(context.properties.section.id, args.collection);
// If a link page is specified in the component properties then pass this to the view
if (args.linkPage != null)
{
model.linkParam = '?view='+args.... | JavaScript |
// Get the collection of articles indicated in the component properties
model.articles = collectionService.getCollection(context.properties.section.id, args.collection);
// If a link page is specified in the component properties then pass this to the view
if (args.linkPage != null)
{
model.linkParam = '?view='+arg... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.