Merge branch 'master' into feature/RM-2718_ViewCaveatMarks

Conflicts:
	README.txt
	rm-community/rm-community-share/pom.xml
	rm-enterprise/rm-enterprise-repo/src/main/java/org/alfresco/module/org_alfresco_module_rm/caveat/model/CaveatModel.java
	rm-enterprise/rm-enterprise-share/src/main/amp/web/js/alfresco/rm/renderers/CaveatGroup.js
This commit is contained in:
Tuna Aksoy
2016-03-08 18:25:25 +00:00
843 changed files with 22628 additions and 10539 deletions

View File

@@ -50,6 +50,15 @@ To run the automated UI tests, change to the rm-automation directory and run:
Depending on your local Firefox version, you may need to modify the rm-automation/pom.xml to use version 1.7 of selenium-grid
Updating License Headers:
-------------------------
In order to refesh out of date license source headers run the following command:
mvn clean install -Dlicense.update.dryrun=false
SNAPSHOT dependencies:
----------------------

View File

@@ -0,0 +1,18 @@
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.

View File

@@ -0,0 +1,165 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.

1
license/description.ftl Normal file
View File

@@ -0,0 +1 @@
Alfresco Records Management Module

View File

@@ -0,0 +1,2 @@
alfresco_community=Alfresco Community
alfresco_enterprise=Alfresco Enterprise

57
pom.xml
View File

@@ -89,6 +89,11 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<argLine>-Xmx1024m -XX:MaxPermSize=256m -Duser.language=en -Dcom.sun.management.jmxremote</argLine>
<!-- license properties -->
<license.update.dryrun>true</license.update.dryrun>
<license.verbose>false</license.verbose>
</properties>
<build>
@@ -241,6 +246,58 @@
<artifactId>sql-maven-plugin</artifactId>
<version>1.5</version>
</plugin>
<!-- License header generation -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>1.8</version>
<configuration>
<verbose>${license.verbose}</verbose>
<addSvnKeyWords>false</addSvnKeyWords>
<!-- header configuration -->
<organizationName>Alfresco Software Limited</organizationName>
<descriptionTemplate>${project.parent.parent.basedir}/license/description.ftl</descriptionTemplate>
<canUpdateCopyright>true</canUpdateCopyright>
<canUpdateDescription>true</canUpdateDescription>
<!-- licence configuration -->
<licenseResolver>file:${project.parent.parent.basedir}/license</licenseResolver>
<!-- dry run options -->
<dryRun>${license.update.dryrun}</dryRun>
<failOnMissingHeader>true</failOnMissingHeader>
<failOnNotUptodateHeader>true</failOnNotUptodateHeader>
<!-- default root -->
<roots>
<root>src</root>
</roots>
<!-- exculsions -->
<excludes>
<exclude>**/package-info.java</exclude>
<exclude>**/*.properties</exclude>
<exclude>**/*.css</exclude>
<exclude>**/*.xml</exclude>
<exclude>**/*.json</exclude>
<exclude>**/*.txt</exclude>
<exclude>**/*.html</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>first</id>
<goals>
<goal>update-file-header</goal>
</goals>
<phase>process-sources</phase>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>

View File

@@ -13,11 +13,13 @@
</parent>
<properties>
<selenium.version>2.45.0</selenium.version>
<spring.version>4.0.5.RELEASE</spring.version>
<maven.build.sourceVersion>1.8</maven.build.sourceVersion>
<suiteXmlFile>testng.xml</suiteXmlFile>
<skip.automationtests>true</skip.automationtests>
</properties>
<build>
@@ -65,7 +67,56 @@
</execution>
</executions>
</plugin>
<!-- License header generation -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<configuration>
<licenseName>alfresco_enterprise</licenseName>
<licenseResolver>file:${project.parent.basedir}/license</licenseResolver>
<descriptionTemplate>${project.parent.basedir}/license/description.ftl</descriptionTemplate>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
license-maven-plugin
</artifactId>
<versionRange>
[1.8,)
</versionRange>
<goals>
<goal>
update-file-header
</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<dependencies>

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<html>
<head>
<style type="text/css"><!--
@@ -121,4 +147,4 @@
</tr>
</table>
</body>
</html>
</html>

View File

@@ -1,3 +1,29 @@
/*
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* 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 your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
/**
* Main entrypoint for script.
*

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<html>
<head>
<style type="text/css"><!--

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<html>
<head>
<style type="text/css"><!--

View File

@@ -1,3 +1,29 @@
/*
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* 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 your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
/**
* Main entrypoint for script.
* This sample script simply echoes the name of the node with the changed property.

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<html>
<head>
<style type="text/css"><!--
@@ -113,4 +139,4 @@
</tr>
</table>
</body>
</html>
</html>

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<html>
<head>
<style type="text/css"><!--
@@ -117,4 +143,4 @@
</tr>
</table>
</body>
</html>
</html>

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<#assign isAccession=node.properties["rma:transferAccessionIndicator"]>
@@ -84,4 +110,4 @@
${transferNode.properties["declaredOn"]?string(message("file.report.date.format"))?html}
</#if>
</div>
</#macro>
</#macro>

View File

@@ -1 +1,27 @@
<#include "classes.get.json.ftl">
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#include "classes.get.json.ftl">

View File

@@ -1 +1,27 @@
<#include "properties.get.json.ftl">
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#include "properties.get.json.ftl">

View File

@@ -1 +1,27 @@
{}
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
{}

View File

@@ -1 +1,27 @@
{}
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
{}

View File

@@ -1 +1,27 @@
<#include "actionconditiondefinitions.get.json.ftl">
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#include "actionconditiondefinitions.get.json.ftl">

View File

@@ -1 +1,27 @@
<#include "actiondefinitions.get.json.ftl">
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#include "actiondefinitions.get.json.ftl">

View File

@@ -1,8 +1,34 @@
{
"substitutions":
[
<#list substitutions as substitution>
"${substitution}"<#if substitution_has_next>,</#if>
</#list>
]
}
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
{
"substitutions":
[
<#list substitutions as substitution>
"${substitution}"<#if substitution_has_next>,</#if>
</#list>
]
}

View File

@@ -1,3 +1,29 @@
/*
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* 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 your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
var PeopleCache = {};
/**
@@ -122,4 +148,4 @@ function main()
model.versions = versions;
}
main();
main();

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
[
<#list versions as v>
@@ -19,4 +45,4 @@
}<#if (v_has_next)>,</#if>
</#list>
]
</#escape>
</#escape>

View File

@@ -1,7 +1,33 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "emailmap.lib.ftl" as emailmapLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data": <@emailmapLib.emailmapJSON emailmap=emailmap />
}
</#escape>
</#escape>

View File

@@ -1,7 +1,33 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "emailmap.lib.ftl" as emailmapLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data": <@emailmapLib.emailmapJSON emailmap=emailmap />
}
</#escape>
</#escape>

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#-- renders an email map object -->
<#macro emailmapJSON emailmap>
@@ -11,4 +37,4 @@
]
}
</#escape>
</#macro>
</#macro>

View File

@@ -1,7 +1,33 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "emailmap.lib.ftl" as emailmapLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data": <@emailmapLib.emailmapJSON emailmap=emailmap />
}
</#escape>
</#escape>

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data" :
@@ -10,4 +36,4 @@
]
}
}
</#escape>
</#escape>

View File

@@ -1,3 +1,29 @@
/*
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* 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 your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
function existsTitle(caveatConfig, title)
{
var constraints = caveatConfig.allConstraints;
@@ -15,4 +41,4 @@ function existsTitle(caveatConfig, title)
}
return alreadyExists;
}
}

View File

@@ -1,3 +1,29 @@
/*
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* 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 your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
/**
* Delete the rm constraint list
*/
@@ -24,4 +50,4 @@ function main()
}
}
main();
main();

View File

@@ -1,5 +1,31 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data": { }
}
</#escape>
</#escape>

View File

@@ -1,3 +1,29 @@
/*
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* 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 your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
/**
* Get the detail of the rm constraint
*/
@@ -22,4 +48,4 @@ function main()
}
}
main();
main();

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "rmconstraint.lib.ftl" as rmconstraintLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
@@ -5,4 +31,4 @@
"data": <@rmconstraintLib.constraintJSON constraint=constraint />
}
</#escape>
</#escape>

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#-- renders an rm constraint object -->
<#macro constraintSummaryJSON constraint>
@@ -58,4 +84,4 @@
}
}
</#escape>
</#macro>
</#macro>

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "rmconstraint.lib.ftl" as rmconstraintLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
@@ -8,4 +34,4 @@
"message" : "${msg(errorMessage, title)}"
</#if>
}
</#escape>
</#escape>

View File

@@ -1,5 +1,32 @@
<import resource="classpath:/alfresco/templates/webscripts/org/alfresco/rma/admin/rmconstraint/rmconstraint-utils.js">
/*
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* 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 your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
/**
* Update an rm constraint
*/
@@ -57,4 +84,4 @@ function main()
}
}
main();
main();

View File

@@ -1,3 +1,29 @@
/*
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* 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 your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
/**
* List the names of the rm constraints
*/
@@ -16,4 +42,4 @@ function main()
}
}
main();
main();

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "rmconstraint.lib.ftl" as rmconstraintLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
@@ -10,4 +36,4 @@
</#list>
]
}
</#escape>
</#escape>

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "rmconstraint.lib.ftl" as rmconstraintLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
@@ -8,4 +34,4 @@
"message" : "${msg(errorMessage, title)}"
</#if>
}
</#escape>
</#escape>

View File

@@ -1,5 +1,32 @@
<import resource="classpath:/alfresco/templates/webscripts/org/alfresco/rma/admin/rmconstraint/rmconstraint-utils.js">
/*
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* 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 your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
/**
* Create a new RM Constraint List
*/
@@ -51,4 +78,4 @@ function main()
model.constraint = caveatConfig.createConstraint(name, title, allowedValues);
}
main();
main();

View File

@@ -1,3 +1,29 @@
/*
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* 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 your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
/**
* Get the detail of the rm constraint
*/
@@ -22,4 +48,4 @@ function main()
}
}
main();
main();

View File

@@ -1,7 +1,33 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "../rmconstraint.lib.ftl" as rmconstraintLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data": <@rmconstraintLib.constraintWithValuesJSON constraint=constraint />
}
</#escape>
</#escape>

View File

@@ -1,7 +1,33 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "../rmconstraint.lib.ftl" as rmconstraintLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data": <@rmconstraintLib.constraintWithValuesJSON constraint=constraint />
}
</#escape>
</#escape>

View File

@@ -1,3 +1,29 @@
/*
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* 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 your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
/**
* Update the details of a value in an rm constraint
*/
@@ -36,4 +62,4 @@ function main()
}
}
main();
main();

View File

@@ -1,3 +1,29 @@
/*
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* 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 your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
/**
* Delete the rm constraint list
*/
@@ -38,4 +64,4 @@ function main()
}
}
main();
main();

View File

@@ -1,7 +1,33 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "../rmconstraint.lib.ftl" as rmconstraintLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data": <@rmconstraintLib.constraintWithValuesJSON constraint=constraint />
}
</#escape>
</#escape>

View File

@@ -1,3 +1,29 @@
/*
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* 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 your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
/**
* Get the detail of the rm constraint
*/
@@ -33,4 +59,4 @@ function main()
}
}
main();
main();

View File

@@ -1,7 +1,33 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "../rmconstraint.lib.ftl" as rmconstraintLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data": <@rmconstraintLib.constraintWithValueJSON constraint=constraint value=value/>
}
</#escape>
</#escape>

View File

@@ -1 +1,27 @@
{}
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
{}

View File

@@ -1,8 +1,34 @@
<#import "rmevent.lib.ftl" as rmEventLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
<@rmEventLib.eventJSON event=event />
}
</#escape>
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "rmevent.lib.ftl" as rmEventLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
<@rmEventLib.eventJSON event=event />
}
</#escape>

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#-- renders an rm event object -->
<#macro eventJSON event>

View File

@@ -1,8 +1,34 @@
<#import "rmevent.lib.ftl" as rmEventLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
<@rmEventLib.eventJSON event=event />
}
</#escape>
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "rmevent.lib.ftl" as rmEventLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
<@rmEventLib.eventJSON event=event />
}
</#escape>

View File

@@ -1,13 +1,39 @@
<#import "rmevent.lib.ftl" as rmEventLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
{
<#list events as event>
"${event.name}":
<@rmEventLib.eventJSON event=event /><#if event_has_next>,</#if>
</#list>
}
}
</#escape>
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "rmevent.lib.ftl" as rmEventLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
{
<#list events as event>
"${event.name}":
<@rmEventLib.eventJSON event=event /><#if event_has_next>,</#if>
</#list>
}
}
</#escape>

View File

@@ -1,9 +1,35 @@
<#import "rmevent.lib.ftl" as rmEventLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
<@rmEventLib.eventJSON event=event />
}
}
</#escape>
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "rmevent.lib.ftl" as rmEventLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
<@rmEventLib.eventJSON event=event />
}
}
</#escape>

View File

@@ -1,16 +1,42 @@
<#import "rmevent.lib.ftl" as rmEventLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
{
<#list eventtypes as eventtype>
"${eventtype.name}":
{
"eventTypeName" : "${eventtype.name}",
"eventTypeDisplayLabel" : "<#if eventtype.displayLabel??>${eventtype.displayLabel}<#else></#if>"
}<#if eventtype_has_next>,</#if>
</#list>
}
}
</#escape>
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "rmevent.lib.ftl" as rmEventLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
{
<#list eventtypes as eventtype>
"${eventtype.name}":
{
"eventTypeName" : "${eventtype.name}",
"eventTypeDisplayLabel" : "<#if eventtype.displayLabel??>${eventtype.displayLabel}<#else></#if>"
}<#if eventtype_has_next>,</#if>
</#list>
}
}
</#escape>

View File

@@ -1 +1,27 @@
{}
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
{}

View File

@@ -1,8 +1,34 @@
<#import "rmrole.lib.ftl" as rmRoleLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
<@rmRoleLib.roleJSON role=role />
}
</#escape>
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "rmrole.lib.ftl" as rmRoleLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
<@rmRoleLib.roleJSON role=role />
}
</#escape>

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#-- renders an rm role object -->
<#macro roleJSON role>
<#escape x as jsonUtils.encodeJSONString(x)>
@@ -36,4 +62,4 @@
</#if>
}
</#escape>
</#macro>
</#macro>

View File

@@ -1,8 +1,34 @@
<#import "rmrole.lib.ftl" as rmRoleLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
<@rmRoleLib.roleJSON role=role />
}
</#escape>
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "rmrole.lib.ftl" as rmRoleLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
<@rmRoleLib.roleJSON role=role />
}
</#escape>

View File

@@ -1,13 +1,39 @@
<#import "rmrole.lib.ftl" as rmRoleLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
{
<#list roles as role>
"${role.name}":
<@rmRoleLib.roleJSON role=role /><#if role_has_next>,</#if>
</#list>
}
}
</#escape>
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "rmrole.lib.ftl" as rmRoleLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
{
<#list roles as role>
"${role.name}":
<@rmRoleLib.roleJSON role=role /><#if role_has_next>,</#if>
</#list>
}
}
</#escape>

View File

@@ -1,8 +1,34 @@
<#import "rmrole.lib.ftl" as rmRoleLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
<@rmRoleLib.roleJSON role=role />
}
</#escape>
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "rmrole.lib.ftl" as rmRoleLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
<@rmRoleLib.roleJSON role=role />
}
</#escape>

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"success": ${success?string}

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"success": ${success?string}

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"success": ${success?string}

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
{
"data":
{
@@ -30,4 +56,4 @@
]
</#if>
}
}
}

View File

@@ -1,14 +1,40 @@
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
[
<#list items as item>
{
"name" : "${item.name}",
"isAspect" : ${item.isAspect?string},
"title" : "${item.title}"
}<#if item_has_next>,</#if>
</#list>
]
}
</#escape>
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
[
<#list items as item>
{
"name" : "${item.name}",
"isAspect" : ${item.isAspect?string},
"title" : "${item.title}"
}<#if item_has_next>,</#if>
</#list>
]
}
</#escape>

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"propId": "${propId!""}",

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"propId": "${propId!""}",

View File

@@ -1,43 +1,69 @@
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
{
"customProperties":
{
<#list customProps as prop>
"${prop.name.toPrefixString()}":
{
"dataType": "<#if prop.dataType??>${prop.dataType.name.toPrefixString()}</#if>",
"label": "${prop.title!""}",
"description": "${prop.description!""}",
"mandatory": ${prop.mandatory?string},
"multiValued": ${prop.multiValued?string},
"defaultValue": "${prop.defaultValue!""}",
"protected": ${prop.protected?string},
"propId": "${prop.name.localName}",
"constraintRefs":
[
<#list prop.constraints as con>
{
"name": "${con.constraint.shortName!""}",
"title": "${msg(con.constraint.title)!""}",
"type": "${con.constraint.type!""}",
"parameters":
{
<#-- Basic implementation. Only providing 2 hardcoded parameters. -->
<#assign lov = con.constraint.parameters["allowedValues"]>
"caseSensitive": ${con.constraint.parameters["caseSensitive"]?string},
"listOfValues" :
[
<#list lov as val>"${val}"<#if val_has_next>,</#if></#list>
]
}
}<#if con_has_next>,</#if>
</#list>
]
}<#if prop_has_next>,</#if>
</#list>
}
}
}
</#escape>
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
{
"customProperties":
{
<#list customProps as prop>
"${prop.name.toPrefixString()}":
{
"dataType": "<#if prop.dataType??>${prop.dataType.name.toPrefixString()}</#if>",
"label": "${prop.title!""}",
"description": "${prop.description!""}",
"mandatory": ${prop.mandatory?string},
"multiValued": ${prop.multiValued?string},
"defaultValue": "${prop.defaultValue!""}",
"protected": ${prop.protected?string},
"propId": "${prop.name.localName}",
"constraintRefs":
[
<#list prop.constraints as con>
{
"name": "${con.constraint.shortName!""}",
"title": "${msg(con.constraint.title)!""}",
"type": "${con.constraint.type!""}",
"parameters":
{
<#-- Basic implementation. Only providing 2 hardcoded parameters. -->
<#assign lov = con.constraint.parameters["allowedValues"]>
"caseSensitive": ${con.constraint.parameters["caseSensitive"]?string},
"listOfValues" :
[
<#list lov as val>"${val}"<#if val_has_next>,</#if></#list>
]
}
}<#if con_has_next>,</#if>
</#list>
]
}<#if prop_has_next>,</#if>
</#list>
}
}
}
</#escape>

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
{
"success": ${success?string}
}
}

View File

@@ -1,5 +1,31 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"success": ${success?string}
}
</#escape>
</#escape>

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"success": ${success?string},
@@ -7,4 +33,4 @@
"url": "${url?string}"
}
}
</#escape>
</#escape>

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"refId": "${refId}",

View File

@@ -1,16 +1,42 @@
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
{
"customReferences":
[
<#list customRefs as ref>
{
<#assign keys = ref?keys>
<#list keys as key>"${key}": "${ref[key]}"<#if key_has_next>,</#if></#list>
}<#if ref_has_next>,</#if>
</#list>
]
}
}
</#escape>
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
{
"customReferences":
[
<#list customRefs as ref>
{
<#assign keys = ref?keys>
<#list keys as key>"${key}": "${ref[key]}"<#if key_has_next>,</#if></#list>
}<#if ref_has_next>,</#if>
</#list>
]
}
}
</#escape>

View File

@@ -1,27 +1,53 @@
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
{
"nodeName": "${nodeName!""}",
"nodeTitle": "${nodeTitle!""}",
"customReferencesFrom":
[
<#list customRefsFrom as ref>
{
<#assign keys = ref?keys>
<#list keys as key>"${key}": "${ref[key]}"<#if key_has_next>,</#if></#list>
}<#if ref_has_next>,</#if>
</#list>
],
"customReferencesTo":
[
<#list customRefsTo as ref>
{
<#assign keys = ref?keys>
<#list keys as key>"${key}": "${ref[key]}"<#if key_has_next>,</#if></#list>
}<#if ref_has_next>,</#if>
</#list>
]
}
}
</#escape>
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
{
"nodeName": "${nodeName!""}",
"nodeTitle": "${nodeTitle!""}",
"customReferencesFrom":
[
<#list customRefsFrom as ref>
{
<#assign keys = ref?keys>
<#list keys as key>"${key}": "${ref[key]}"<#if key_has_next>,</#if></#list>
}<#if ref_has_next>,</#if>
</#list>
],
"customReferencesTo":
[
<#list customRefsTo as ref>
{
<#assign keys = ref?keys>
<#list keys as key>"${key}": "${ref[key]}"<#if key_has_next>,</#if></#list>
}<#if ref_has_next>,</#if>
</#list>
]
}
}
</#escape>

View File

@@ -1,6 +1,32 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"success": ${success?string},
"message": "${message}"
}
</#escape>
</#escape>

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
{
"data":
{
@@ -12,4 +38,4 @@
</#list>
]
}
}
}

View File

@@ -1 +1,27 @@
<#include "dispositionschedule.get.json.ftl">
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#include "dispositionschedule.get.json.ftl">

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#macro actionJSON action>
<#escape x as jsonUtils.encodeJSONString(x)>
{
@@ -15,4 +41,4 @@
"eligibleOnFirstCompleteEvent": ${action.eligibleOnFirstCompleteEvent?string}
}
</#escape>
</#macro>
</#macro>

View File

@@ -1,5 +1,31 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "dispositionactiondefinition.lib.ftl" as actionDefLib/>
{
"data":
<@actionDefLib.actionJSON action=action/>
}
}

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "dispositionactiondefinition.lib.ftl" as actionDefLib/>
{
"data":

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
@@ -37,4 +63,4 @@
</#if>
}
}
</#escape>
</#escape>

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
{
"data" :
{
@@ -11,4 +37,4 @@
</#list>
]
}
}
}

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "dispositionactiondefinition.lib.ftl" as actionDefLib/>
<@scheduleJSON schedule=schedule/>
@@ -26,4 +52,4 @@
}
}
</#escape>
</#macro>
</#macro>

View File

@@ -1,16 +1,42 @@
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
{
"dodCustomTypes":
[
<#list dodCustomTypes as aspDef>
{
"name": "${aspDef.name.prefixString}",
"title": "${aspDef.title!""}"
}<#if aspDef_has_next>,</#if>
</#list>
]
}
}
</#escape>
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
{
"dodCustomTypes":
[
<#list dodCustomTypes as aspDef>
{
"name": "${aspDef.name.prefixString}",
"title": "${aspDef.title!""}"
}<#if aspDef_has_next>,</#if>
</#list>
]
}
}
</#escape>

View File

@@ -1,19 +1,45 @@
<html>
<head>
<title>Export failure</title>
</head>
<body>
<#if (args.failureCallbackFunction?exists)>
<script type="text/javascript">
${args.failureCallbackFunction}.call(${args.failureCallbackScope!'window'}, {
status: {
"code" : ${status.code},
"name" : "${status.codeName}",
"description" : "${status.codeDescription}"
},
message: "${jsonUtils.encodeJSONString(status.message)}"
});
</script>
</#if>
</body>
</html>
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<html>
<head>
<title>Export failure</title>
</head>
<body>
<#if (args.failureCallbackFunction?exists)>
<script type="text/javascript">
${args.failureCallbackFunction}.call(${args.failureCallbackScope!'window'}, {
status: {
"code" : ${status.code},
"name" : "${status.codeName}",
"description" : "${status.codeDescription}"
},
message: "${jsonUtils.encodeJSONString(status.message)}"
});
</script>
</#if>
</body>
</html>

View File

@@ -1,196 +1,222 @@
/**
* Main entry point for this webscript.
* Builds a nodeRef from the url and creates a records series, category and/or folder
* template model depending on what nodeRef that has been given.
*
* @method main
*/
function main()
{
// Get the node from the URL
var pathSegments = url.match.split("/");
var reference = [ url.templateArgs.store_type, url.templateArgs.store_id ].concat(url.templateArgs.id.split("/"));
var node = search.findNode(pathSegments[2], reference);
// 404 if the node is not found
if (node == null)
{
status.setCode(status.STATUS_NOT_FOUND, "The node could not be found");
return;
}
// Get rid of the model URL to enable support for both older DOD5015 and new recordsmanagement model namespaces
var nodeType = node.type.split("}")[1];
// Get the record series, categories and/or folders
if(nodeType == "filePlan")
{
var recordSeries = [],
seriesNodes = node.children,
seriesNode;
for (var rsi = 0, rsl = seriesNodes.length; rsi < rsl; rsi++)
{
var seriesNode = seriesNodes[rsi];
if(seriesNode.type.split("}")[1] == "recordSeries")
{
recordSeries.push(getRecordSeries(seriesNode));
}
}
recordSeries.sort(sortByName);
model.recordSeries = recordSeries;
}
else if(nodeType == "recordSeries")
{
var recordSeries = [];
recordSeries.push(getRecordSeries(node));
model.recordSeries = recordSeries;
}
else if(nodeType == "recordCategory")
{
var recordCategories = [];
recordCategories.push(getRecordCategory(node, "/" + node.parent.name + "/"));
model.recordCategories = recordCategories;
}
else if(nodeType == "recordFolder")
{
var recordFolders = [];
var recordCategory = node.parent;
recordFolders.push(getRecordFolder(node, "" + recordCategory.parent.name + "/" + recordCategory.name + "/"));
model.recordFolders = recordFolders;
} else
{
// Throw an error if we don't recognise the node type
status.setCode(status.STATUS_INTERNAL_SERVER_ERROR, "Unrecognised node type: " + node.type)
return;
}
}
/**
* Sort helper function for objects with names
*
* @method sortByName
* @param obj1
* @param obj2
*/
function sortByName(obj1, obj2)
{
return (obj1.name > obj2.name) ? 1 : (obj1.name < obj2.name) ? -1 : 0;
}
/**
* Takes a ScriptNode and builds a Record Series template model from it
*
* @method getRecordSeries
* @param seriesNode {ScriptNode} A ScriptNode of type "rma:recordSeries"
*/
function getRecordSeries(seriesNode)
{
// Create Record Series object
var recordSerie = {
parentPath: "/",
name: seriesNode.name,
identifier: seriesNode.properties["rma:identifier"],
description: seriesNode.properties["description"]
};
// Find all Record Categories
var recordCategories = [],
categoryNodes = seriesNode.children,
categoryNode;
for (var rci = 0, rcl = categoryNodes.length; rci < rcl; rci++)
{
categoryNode = categoryNodes[rci];
if(categoryNode.type == "{http://www.alfresco.org/model/dod5015/1.0}recordCategory")
{
// Create and add Record Category object
recordCategories.push(getRecordCategory(categoryNode, "/" + seriesNode.name + "/"));
}
}
recordCategories.sort(sortByName);
recordSerie.recordCategories = recordCategories;
// Return Record Series
return recordSerie;
}
/**
* Takes a ScriptNode and builds a Record Category template model from it
*
* @method getRecordCategory
* @param categoryNode {ScriptNode} A ScriptNode of type "rma:recordCategory"
* @param parentPath {string} The file path starting from the top of the fileplan
*/
function getRecordCategory(categoryNode, parentPath)
{
// Create Record Category object
var recordCategory = {
parentPath: parentPath,
name: categoryNode.name,
identifier: categoryNode.properties["rma:identifier"],
vitalRecordIndicator: categoryNode.properties["vitalRecordIndicator"],
dispositionAuthority: categoryNode.properties["dispositionAuthority"],
recordFolders: [],
dispositionActions: []
};
// Find all Record Folders & Disposition information
var recordFolders = [],
dispositionActions = [],
categoryChildren = categoryNode.children,
categoryChild,
dispScheduleChildren,
dispScheduleChild;
for (var cci = 0, ccil = categoryChildren.length; cci < ccil; cci++)
{
categoryChild = categoryChildren[cci]
if (categoryChild.type == "{http://www.alfresco.org/model/recordsmanagement/1.0}recordFolder")
{
// Create and add Record Folder object
recordFolders.push(getRecordFolder(categoryChild, parentPath + categoryNode.name + "/"));
}
else if (categoryChild.type == "{http://www.alfresco.org/model/recordsmanagement/1.0}dispositionSchedule")
{
// Get Disposition authority
recordCategory.dispositionAuthority = categoryChild.properties["rma:dispositionAuthority"];
dispScheduleChildren = categoryChild.children;
for (var dsi = 0, dsil = dispScheduleChildren.length; dsi < dsil; dsi++)
{
dispScheduleChild = dispScheduleChildren[dsi];
if (dispScheduleChild.type == "{http://www.alfresco.org/model/recordsmanagement/1.0}dispositionActionDefinition")
{
// Add Disposition Action description
dispositionActions.push({
dispositionDescription: dispScheduleChild.properties["rma:dispositionDescription"]
});
}
}
}
}
// Add Record Category to the list
recordFolders.sort(sortByName);
recordCategory.recordFolders = recordFolders;
recordCategory.dispositionActions = dispositionActions;
return recordCategory;
}
/**
* Takes a ScriptNode and builds a Record Category template model from it
*
* @method getRecordFolder
* @param recordFolder {ScriptNode} A ScriptNode of type "rma:recordrecordFolder"
* @param parentPath {string} The file path starting from the top of the fileplan
*/
function getRecordFolder(recordFolder, parentPath)
{
return {
parentPath: parentPath,
name: recordFolder.name,
identifier: recordFolder.properties["rma:identifier"],
vitalRecordIndicator: recordFolder.properties["vitalRecordIndicator"]
};
}
// Start webscript
main();
/*
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
*
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* 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 your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
/**
* Main entry point for this webscript.
* Builds a nodeRef from the url and creates a records series, category and/or folder
* template model depending on what nodeRef that has been given.
*
* @method main
*/
function main()
{
// Get the node from the URL
var pathSegments = url.match.split("/");
var reference = [ url.templateArgs.store_type, url.templateArgs.store_id ].concat(url.templateArgs.id.split("/"));
var node = search.findNode(pathSegments[2], reference);
// 404 if the node is not found
if (node == null)
{
status.setCode(status.STATUS_NOT_FOUND, "The node could not be found");
return;
}
// Get rid of the model URL to enable support for both older DOD5015 and new recordsmanagement model namespaces
var nodeType = node.type.split("}")[1];
// Get the record series, categories and/or folders
if(nodeType == "filePlan")
{
var recordSeries = [],
seriesNodes = node.children,
seriesNode;
for (var rsi = 0, rsl = seriesNodes.length; rsi < rsl; rsi++)
{
var seriesNode = seriesNodes[rsi];
if(seriesNode.type.split("}")[1] == "recordSeries")
{
recordSeries.push(getRecordSeries(seriesNode));
}
}
recordSeries.sort(sortByName);
model.recordSeries = recordSeries;
}
else if(nodeType == "recordSeries")
{
var recordSeries = [];
recordSeries.push(getRecordSeries(node));
model.recordSeries = recordSeries;
}
else if(nodeType == "recordCategory")
{
var recordCategories = [];
recordCategories.push(getRecordCategory(node, "/" + node.parent.name + "/"));
model.recordCategories = recordCategories;
}
else if(nodeType == "recordFolder")
{
var recordFolders = [];
var recordCategory = node.parent;
recordFolders.push(getRecordFolder(node, "" + recordCategory.parent.name + "/" + recordCategory.name + "/"));
model.recordFolders = recordFolders;
} else
{
// Throw an error if we don't recognise the node type
status.setCode(status.STATUS_INTERNAL_SERVER_ERROR, "Unrecognised node type: " + node.type)
return;
}
}
/**
* Sort helper function for objects with names
*
* @method sortByName
* @param obj1
* @param obj2
*/
function sortByName(obj1, obj2)
{
return (obj1.name > obj2.name) ? 1 : (obj1.name < obj2.name) ? -1 : 0;
}
/**
* Takes a ScriptNode and builds a Record Series template model from it
*
* @method getRecordSeries
* @param seriesNode {ScriptNode} A ScriptNode of type "rma:recordSeries"
*/
function getRecordSeries(seriesNode)
{
// Create Record Series object
var recordSerie = {
parentPath: "/",
name: seriesNode.name,
identifier: seriesNode.properties["rma:identifier"],
description: seriesNode.properties["description"]
};
// Find all Record Categories
var recordCategories = [],
categoryNodes = seriesNode.children,
categoryNode;
for (var rci = 0, rcl = categoryNodes.length; rci < rcl; rci++)
{
categoryNode = categoryNodes[rci];
if(categoryNode.type == "{http://www.alfresco.org/model/dod5015/1.0}recordCategory")
{
// Create and add Record Category object
recordCategories.push(getRecordCategory(categoryNode, "/" + seriesNode.name + "/"));
}
}
recordCategories.sort(sortByName);
recordSerie.recordCategories = recordCategories;
// Return Record Series
return recordSerie;
}
/**
* Takes a ScriptNode and builds a Record Category template model from it
*
* @method getRecordCategory
* @param categoryNode {ScriptNode} A ScriptNode of type "rma:recordCategory"
* @param parentPath {string} The file path starting from the top of the fileplan
*/
function getRecordCategory(categoryNode, parentPath)
{
// Create Record Category object
var recordCategory = {
parentPath: parentPath,
name: categoryNode.name,
identifier: categoryNode.properties["rma:identifier"],
vitalRecordIndicator: categoryNode.properties["vitalRecordIndicator"],
dispositionAuthority: categoryNode.properties["dispositionAuthority"],
recordFolders: [],
dispositionActions: []
};
// Find all Record Folders & Disposition information
var recordFolders = [],
dispositionActions = [],
categoryChildren = categoryNode.children,
categoryChild,
dispScheduleChildren,
dispScheduleChild;
for (var cci = 0, ccil = categoryChildren.length; cci < ccil; cci++)
{
categoryChild = categoryChildren[cci]
if (categoryChild.type == "{http://www.alfresco.org/model/recordsmanagement/1.0}recordFolder")
{
// Create and add Record Folder object
recordFolders.push(getRecordFolder(categoryChild, parentPath + categoryNode.name + "/"));
}
else if (categoryChild.type == "{http://www.alfresco.org/model/recordsmanagement/1.0}dispositionSchedule")
{
// Get Disposition authority
recordCategory.dispositionAuthority = categoryChild.properties["rma:dispositionAuthority"];
dispScheduleChildren = categoryChild.children;
for (var dsi = 0, dsil = dispScheduleChildren.length; dsi < dsil; dsi++)
{
dispScheduleChild = dispScheduleChildren[dsi];
if (dispScheduleChild.type == "{http://www.alfresco.org/model/recordsmanagement/1.0}dispositionActionDefinition")
{
// Add Disposition Action description
dispositionActions.push({
dispositionDescription: dispScheduleChild.properties["rma:dispositionDescription"]
});
}
}
}
}
// Add Record Category to the list
recordFolders.sort(sortByName);
recordCategory.recordFolders = recordFolders;
recordCategory.dispositionActions = dispositionActions;
return recordCategory;
}
/**
* Takes a ScriptNode and builds a Record Category template model from it
*
* @method getRecordFolder
* @param recordFolder {ScriptNode} A ScriptNode of type "rma:recordrecordFolder"
* @param parentPath {string} The file path starting from the top of the fileplan
*/
function getRecordFolder(recordFolder, parentPath)
{
return {
parentPath: parentPath,
name: recordFolder.name,
identifier: recordFolder.properties["rma:identifier"],
vitalRecordIndicator: recordFolder.properties["vitalRecordIndicator"]
};
}
// Start webscript
main();

View File

@@ -1,19 +1,45 @@
<#import "fileplanreport.lib.ftl" as reportLib/>
<#macro dateFormat date>${date?string("dd MMM yyyy HH:mm:ss 'GMT'Z '('zzz')'")}</#macro>
<#escape x as jsonUtils.encodeJSONString(x)>
{
data:
{
"firstName": <#if person.properties.firstName??>"${person.properties.firstName}"<#else>null</#if>,
"lastName": <#if person.properties.lastName??>"${person.properties.lastName}"<#else>null</#if>,
<#if (recordSeries??)>
"recordSeries": <@reportLib.recordSeriesJSON recordSeries=recordSeries/>,
<#elseif (recordCategories??)>
"recordCategories": <@reportLib.recordCategoriesJSON recordCategories=recordCategories/>,
<#elseif (recordFolders??)>
"recordFolders": <@reportLib.recordFoldersJSON recordFolders=recordFolders/>,
</#if>
"printDate": "<@dateFormat date=date/>"
}
}
</#escape>
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "fileplanreport.lib.ftl" as reportLib/>
<#macro dateFormat date>${date?string("dd MMM yyyy HH:mm:ss 'GMT'Z '('zzz')'")}</#macro>
<#escape x as jsonUtils.encodeJSONString(x)>
{
data:
{
"firstName": <#if person.properties.firstName??>"${person.properties.firstName}"<#else>null</#if>,
"lastName": <#if person.properties.lastName??>"${person.properties.lastName}"<#else>null</#if>,
<#if (recordSeries??)>
"recordSeries": <@reportLib.recordSeriesJSON recordSeries=recordSeries/>,
<#elseif (recordCategories??)>
"recordCategories": <@reportLib.recordCategoriesJSON recordCategories=recordCategories/>,
<#elseif (recordFolders??)>
"recordFolders": <@reportLib.recordFoldersJSON recordFolders=recordFolders/>,
</#if>
"printDate": "<@dateFormat date=date/>"
}
}
</#escape>

View File

@@ -1,46 +1,72 @@
<#macro recordSeriesJSON recordSeries>
<#escape x as jsonUtils.encodeJSONString(x)>
[<#list recordSeries as recordSerie>
{
"parentPath": "${recordSerie.parentPath}",
"name": "${recordSerie.name}",
"identifier": "${recordSerie.identifier}",
"description": "${recordSerie.description}",
"recordCategories": <@recordCategoriesJSON recordCategories=recordSerie.recordCategories/>
}<#if (recordSerie_has_next)>,</#if>
</#list>]
</#escape>
</#macro>
<#macro recordCategoriesJSON recordCategories>
<#escape x as jsonUtils.encodeJSONString(x)>
[<#list recordCategories as recordCategory>
{
"parentPath": "${recordCategory.parentPath}",
"name": "${recordCategory.name}",
"identifier": "${recordCategory.identifier}",
<#if (recordCategory.vitalRecordIndicator??)>"vitalRecordIndicator": ${recordCategory.vitalRecordIndicator?string},</#if>
<#if (recordCategory.dispositionAuthority??)>"dispositionAuthority": "${recordCategory.dispositionAuthority}",</#if>
"recordFolders": <@recordFoldersJSON recordFolders=recordCategory.recordFolders/>,
"dispositionActions": [<#list recordCategory.dispositionActions as dispositionAction>
{
"dispositionDescription": "${dispositionAction.dispositionDescription!""}"
}<#if (dispositionAction_has_next)>,</#if>
</#list>]
}<#if (recordCategory_has_next)>,</#if>
</#list>]
</#escape>
</#macro>
<#macro recordFoldersJSON recordFolders>
<#escape x as jsonUtils.encodeJSONString(x)>
[<#list recordFolders as recordFolder>
{
"parentPath": "${recordFolder.parentPath}",
"name": "${recordFolder.name}",
"identifier": "${recordFolder.identifier}",
<#if (recordFolder.vitalRecordIndicator??)>"vitalRecordIndicator": "${recordFolder.vitalRecordIndicator?string}"</#if>
}<#if (recordFolder_has_next)>,</#if>
</#list>]
</#escape>
</#macro>
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#macro recordSeriesJSON recordSeries>
<#escape x as jsonUtils.encodeJSONString(x)>
[<#list recordSeries as recordSerie>
{
"parentPath": "${recordSerie.parentPath}",
"name": "${recordSerie.name}",
"identifier": "${recordSerie.identifier}",
"description": "${recordSerie.description}",
"recordCategories": <@recordCategoriesJSON recordCategories=recordSerie.recordCategories/>
}<#if (recordSerie_has_next)>,</#if>
</#list>]
</#escape>
</#macro>
<#macro recordCategoriesJSON recordCategories>
<#escape x as jsonUtils.encodeJSONString(x)>
[<#list recordCategories as recordCategory>
{
"parentPath": "${recordCategory.parentPath}",
"name": "${recordCategory.name}",
"identifier": "${recordCategory.identifier}",
<#if (recordCategory.vitalRecordIndicator??)>"vitalRecordIndicator": ${recordCategory.vitalRecordIndicator?string},</#if>
<#if (recordCategory.dispositionAuthority??)>"dispositionAuthority": "${recordCategory.dispositionAuthority}",</#if>
"recordFolders": <@recordFoldersJSON recordFolders=recordCategory.recordFolders/>,
"dispositionActions": [<#list recordCategory.dispositionActions as dispositionAction>
{
"dispositionDescription": "${dispositionAction.dispositionDescription!""}"
}<#if (dispositionAction_has_next)>,</#if>
</#list>]
}<#if (recordCategory_has_next)>,</#if>
</#list>]
</#escape>
</#macro>
<#macro recordFoldersJSON recordFolders>
<#escape x as jsonUtils.encodeJSONString(x)>
[<#list recordFolders as recordFolder>
{
"parentPath": "${recordFolder.parentPath}",
"name": "${recordFolder.name}",
"identifier": "${recordFolder.identifier}",
<#if (recordFolder.vitalRecordIndicator??)>"vitalRecordIndicator": "${recordFolder.vitalRecordIndicator?string}"</#if>
}<#if (recordFolder_has_next)>,</#if>
</#list>]
</#escape>
</#macro>

View File

@@ -1 +1,27 @@
{}
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
{}

View File

@@ -1 +1,27 @@
{}
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
{}

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
@@ -13,4 +39,4 @@
]
}
}
</#escape>
</#escape>

View File

@@ -1,14 +1,40 @@
<html>
<head>
<title>Upload success</title>
</head>
<body>
<#if (args.successCallback?exists)>
<script type="text/javascript">
${args.successCallback}.call(${args.successScope},
{
});
</script>
</#if>
</body>
</html>
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<html>
<head>
<title>Upload success</title>
</head>
<body>
<#if (args.successCallback?exists)>
<script type="text/javascript">
${args.successCallback}.call(${args.successScope},
{
});
</script>
</#if>
</body>
</html>

View File

@@ -1,5 +1,31 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"success": ${success?string}
}
</#escape>
</#escape>

View File

@@ -1,2 +1,28 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#import "listofvalues.lib.ftl" as listsLib/>
<@listsLib.listsJSON lists=lists/>
<@listsLib.listsJSON lists=lists/>

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#macro listsJSON lists>
<#escape x as jsonUtils.encodeJSONString(x)>
{

View File

@@ -1,17 +1,43 @@
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
{
"recordMetaDataAspects":
[
<#list aspects as aspect>
{
"id" : "${aspect.id}",
"value" : "${aspect.value}"
}
<#if aspect_has_next>,</#if>
</#list>
]
}
}
</#escape>
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
{
"recordMetaDataAspects":
[
<#list aspects as aspect>
{
"id" : "${aspect.id}",
"value" : "${aspect.value}"
}
<#if aspect_has_next>,</#if>
</#list>
]
}
}
</#escape>

View File

@@ -1,3 +1,29 @@
<#--
#%L
Alfresco Records Management Module
%%
Copyright (C) 2005 - 2016 Alfresco Software Limited
%%
This file is part of the Alfresco software.
If the software was purchased under a paid Alfresco license, the terms of
the paid license agreement will prevail. Otherwise, the software is
provided under the following open source license terms:
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 your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
#L%
-->
{
"success": ${success?string}
}
}

Some files were not shown because too many files have changed in this diff Show More