Refresh license headers to include changes to community license and module description

This commit is contained in:
Roy Wetherall
2016-03-03 10:38:37 +11:00
parent 04b74bc12b
commit f98f0cb32b
832 changed files with 17463 additions and 12471 deletions

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<html>
<head>
<style type="text/css"><!--
@@ -141,4 +147,4 @@
</tr>
</table>
</body>
</html>
</html>

View File

@@ -1,9 +1,15 @@
/*
/*
* #%L
* This file is part of Alfresco.
* 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
@@ -13,11 +19,11 @@
* 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%
*/
* #L%
*/
/**
* Main entrypoint for script.
*

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<html>
<head>
<style type="text/css"><!--

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<html>
<head>
<style type="text/css"><!--

View File

@@ -1,9 +1,15 @@
/*
/*
* #%L
* This file is part of Alfresco.
* 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
@@ -13,11 +19,11 @@
* 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%
*/
* #L%
*/
/**
* Main entrypoint for script.
* This sample script simply echoes the name of the node with the changed property.

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<html>
<head>
<style type="text/css"><!--
@@ -133,4 +139,4 @@
</tr>
</table>
</body>
</html>
</html>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<html>
<head>
<style type="text/css"><!--
@@ -137,4 +143,4 @@
</tr>
</table>
</body>
</html>
</html>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#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"]>
@@ -104,4 +110,4 @@
${transferNode.properties["declaredOn"]?string(message("file.report.date.format"))?html}
</#if>
</div>
</#macro>
</#macro>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,9 +19,9 @@
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">
#L%
-->
<#include "classes.get.json.ftl">

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,9 +19,9 @@
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">
#L%
-->
<#include "properties.get.json.ftl">

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,9 +19,9 @@
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%
-->
{}
#L%
-->
{}

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,9 +19,9 @@
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%
-->
{}
#L%
-->
{}

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,9 +19,9 @@
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">
#L%
-->
<#include "actionconditiondefinitions.get.json.ftl">

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,9 +19,9 @@
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">
#L%
-->
<#include "actiondefinitions.get.json.ftl">

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,16 +19,16 @@
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>
]
}
#L%
-->
{
"substitutions":
[
<#list substitutions as substitution>
"${substitution}"<#if substitution_has_next>,</#if>
</#list>
]
}

View File

@@ -1,9 +1,15 @@
/*
/*
* #%L
* This file is part of Alfresco.
* 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
@@ -13,11 +19,11 @@
* 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%
*/
* #L%
*/
var PeopleCache = {};
/**
@@ -142,4 +148,4 @@ function main()
model.versions = versions;
}
main();
main();

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
[
<#list versions as v>
@@ -39,4 +45,4 @@
}<#if (v_has_next)>,</#if>
</#list>
]
</#escape>
</#escape>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,15 +19,15 @@
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%
-->
#L%
-->
<#import "emailmap.lib.ftl" as emailmapLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data": <@emailmapLib.emailmapJSON emailmap=emailmap />
}
</#escape>
</#escape>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,15 +19,15 @@
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%
-->
#L%
-->
<#import "emailmap.lib.ftl" as emailmapLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data": <@emailmapLib.emailmapJSON emailmap=emailmap />
}
</#escape>
</#escape>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#-- renders an email map object -->
<#macro emailmapJSON emailmap>
@@ -31,4 +37,4 @@
]
}
</#escape>
</#macro>
</#macro>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,15 +19,15 @@
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%
-->
#L%
-->
<#import "emailmap.lib.ftl" as emailmapLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data": <@emailmapLib.emailmapJSON emailmap=emailmap />
}
</#escape>
</#escape>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data" :
@@ -30,4 +36,4 @@
]
}
}
</#escape>
</#escape>

View File

@@ -1,9 +1,15 @@
/*
/*
* #%L
* This file is part of Alfresco.
* 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
@@ -13,11 +19,11 @@
* 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%
*/
* #L%
*/
function existsTitle(caveatConfig, title)
{
var constraints = caveatConfig.allConstraints;
@@ -35,4 +41,4 @@ function existsTitle(caveatConfig, title)
}
return alreadyExists;
}
}

View File

@@ -1,9 +1,15 @@
/*
/*
* #%L
* This file is part of Alfresco.
* 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
@@ -13,11 +19,11 @@
* 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%
*/
* #L%
*/
/**
* Delete the rm constraint list
*/
@@ -44,4 +50,4 @@ function main()
}
}
main();
main();

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,13 +19,13 @@
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%
-->
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data": { }
}
</#escape>
</#escape>

View File

@@ -1,9 +1,15 @@
/*
/*
* #%L
* This file is part of Alfresco.
* 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
@@ -13,11 +19,11 @@
* 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%
*/
* #L%
*/
/**
* Get the detail of the rm constraint
*/
@@ -42,4 +48,4 @@ function main()
}
}
main();
main();

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#import "rmconstraint.lib.ftl" as rmconstraintLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
@@ -25,4 +31,4 @@
"data": <@rmconstraintLib.constraintJSON constraint=constraint />
}
</#escape>
</#escape>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#-- renders an rm constraint object -->
<#macro constraintSummaryJSON constraint>
@@ -78,4 +84,4 @@
}
}
</#escape>
</#macro>
</#macro>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#import "rmconstraint.lib.ftl" as rmconstraintLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
@@ -28,4 +34,4 @@
"message" : "${msg(errorMessage, title)}"
</#if>
}
</#escape>
</#escape>

View File

@@ -1,11 +1,17 @@
<import resource="classpath:/alfresco/templates/webscripts/org/alfresco/rma/admin/rmconstraint/rmconstraint-utils.js">
/*
<import resource="classpath:/alfresco/templates/webscripts/org/alfresco/rma/admin/rmconstraint/rmconstraint-utils.js">
/*
* #%L
* This file is part of Alfresco.
* 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
@@ -15,11 +21,11 @@
* 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%
*/
* #L%
*/
/**
* Update an rm constraint
@@ -78,4 +84,4 @@ function main()
}
}
main();
main();

View File

@@ -1,9 +1,15 @@
/*
/*
* #%L
* This file is part of Alfresco.
* 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
@@ -13,11 +19,11 @@
* 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%
*/
* #L%
*/
/**
* List the names of the rm constraints
*/
@@ -36,4 +42,4 @@ function main()
}
}
main();
main();

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#import "rmconstraint.lib.ftl" as rmconstraintLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
@@ -30,4 +36,4 @@
</#list>
]
}
</#escape>
</#escape>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#import "rmconstraint.lib.ftl" as rmconstraintLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
@@ -28,4 +34,4 @@
"message" : "${msg(errorMessage, title)}"
</#if>
}
</#escape>
</#escape>

View File

@@ -1,11 +1,17 @@
<import resource="classpath:/alfresco/templates/webscripts/org/alfresco/rma/admin/rmconstraint/rmconstraint-utils.js">
/*
* #%L
* This file is part of Alfresco.
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* #%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
@@ -15,9 +21,9 @@
* 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/>.
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
@@ -72,4 +78,4 @@ function main()
model.constraint = caveatConfig.createConstraint(name, title, allowedValues);
}
main();
main();

View File

@@ -1,9 +1,15 @@
/*
/*
* #%L
* This file is part of Alfresco.
* 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
@@ -13,11 +19,11 @@
* 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%
*/
* #L%
*/
/**
* Get the detail of the rm constraint
*/
@@ -42,4 +48,4 @@ function main()
}
}
main();
main();

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,15 +19,15 @@
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%
-->
#L%
-->
<#import "../rmconstraint.lib.ftl" as rmconstraintLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data": <@rmconstraintLib.constraintWithValuesJSON constraint=constraint />
}
</#escape>
</#escape>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,15 +19,15 @@
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%
-->
#L%
-->
<#import "../rmconstraint.lib.ftl" as rmconstraintLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data": <@rmconstraintLib.constraintWithValuesJSON constraint=constraint />
}
</#escape>
</#escape>

View File

@@ -1,9 +1,15 @@
/*
/*
* #%L
* This file is part of Alfresco.
* 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
@@ -13,11 +19,11 @@
* 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%
*/
* #L%
*/
/**
* Update the details of a value in an rm constraint
*/
@@ -56,4 +62,4 @@ function main()
}
}
main();
main();

View File

@@ -1,9 +1,15 @@
/*
/*
* #%L
* This file is part of Alfresco.
* 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
@@ -13,11 +19,11 @@
* 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%
*/
* #L%
*/
/**
* Delete the rm constraint list
*/
@@ -58,4 +64,4 @@ function main()
}
}
main();
main();

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,15 +19,15 @@
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%
-->
#L%
-->
<#import "../rmconstraint.lib.ftl" as rmconstraintLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data": <@rmconstraintLib.constraintWithValuesJSON constraint=constraint />
}
</#escape>
</#escape>

View File

@@ -1,9 +1,15 @@
/*
/*
* #%L
* This file is part of Alfresco.
* 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
@@ -13,11 +19,11 @@
* 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%
*/
* #L%
*/
/**
* Get the detail of the rm constraint
*/
@@ -53,4 +59,4 @@ function main()
}
}
main();
main();

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,15 +19,15 @@
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%
-->
#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,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,9 +19,9 @@
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%
-->
{}
#L%
-->
{}

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,16 +19,16 @@
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>
#L%
-->
<#import "rmevent.lib.ftl" as rmEventLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
<@rmEventLib.eventJSON event=event />
}
</#escape>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#-- renders an rm event object -->
<#macro eventJSON event>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,16 +19,16 @@
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>
#L%
-->
<#import "rmevent.lib.ftl" as rmEventLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
<@rmEventLib.eventJSON event=event />
}
</#escape>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,21 +19,21 @@
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>
#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,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,17 +19,17 @@
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>
#L%
-->
<#import "rmevent.lib.ftl" as rmEventLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
<@rmEventLib.eventJSON event=event />
}
}
</#escape>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,24 +19,24 @@
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>
#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,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,9 +19,9 @@
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%
-->
{}
#L%
-->
{}

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,16 +19,16 @@
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>
#L%
-->
<#import "rmrole.lib.ftl" as rmRoleLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
<@rmRoleLib.roleJSON role=role />
}
</#escape>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#-- renders an rm role object -->
<#macro roleJSON role>
<#escape x as jsonUtils.encodeJSONString(x)>
@@ -56,4 +62,4 @@
</#if>
}
</#escape>
</#macro>
</#macro>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,16 +19,16 @@
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>
#L%
-->
<#import "rmrole.lib.ftl" as rmRoleLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
<@rmRoleLib.roleJSON role=role />
}
</#escape>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,21 +19,21 @@
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>
#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,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,16 +19,16 @@
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>
#L%
-->
<#import "rmrole.lib.ftl" as rmRoleLib/>
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
<@rmRoleLib.roleJSON role=role />
}
</#escape>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"success": ${success?string}

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"success": ${success?string}

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"success": ${success?string}

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
{
"data":
{
@@ -50,4 +56,4 @@
]
</#if>
}
}
}

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,22 +19,22 @@
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>
#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,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"propId": "${propId!""}",

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"propId": "${propId!""}",

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,51 +19,51 @@
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>
#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,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
{
"success": ${success?string}
}
}

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,13 +19,13 @@
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%
-->
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"success": ${success?string}
}
</#escape>
</#escape>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"success": ${success?string},
@@ -27,4 +33,4 @@
"url": "${url?string}"
}
}
</#escape>
</#escape>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"refId": "${refId}",

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,24 +19,24 @@
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>
#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,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,35 +19,35 @@
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>
#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,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,14 +19,14 @@
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%
-->
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"success": ${success?string},
"message": "${message}"
}
</#escape>
</#escape>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
{
"data":
{
@@ -32,4 +38,4 @@
</#list>
]
}
}
}

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,9 +19,9 @@
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">
#L%
-->
<#include "dispositionschedule.get.json.ftl">

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#macro actionJSON action>
<#escape x as jsonUtils.encodeJSONString(x)>
{
@@ -35,4 +41,4 @@
"eligibleOnFirstCompleteEvent": ${action.eligibleOnFirstCompleteEvent?string}
}
</#escape>
</#macro>
</#macro>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,13 +19,13 @@
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%
-->
#L%
-->
<#import "dispositionactiondefinition.lib.ftl" as actionDefLib/>
{
"data":
<@actionDefLib.actionJSON action=action/>
}
}

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#import "dispositionactiondefinition.lib.ftl" as actionDefLib/>
{
"data":

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
@@ -57,4 +63,4 @@
</#if>
}
}
</#escape>
</#escape>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
{
"data" :
{
@@ -31,4 +37,4 @@
</#list>
]
}
}
}

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#import "dispositionactiondefinition.lib.ftl" as actionDefLib/>
<@scheduleJSON schedule=schedule/>
@@ -46,4 +52,4 @@
}
}
</#escape>
</#macro>
</#macro>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,24 +19,24 @@
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>
#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,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,27 +19,27 @@
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>
#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,9 +1,15 @@
/*
/*
* #%L
* This file is part of Alfresco.
* 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
@@ -13,204 +19,204 @@
* 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();
* #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,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,27 +19,27 @@
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>
#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,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,54 +19,54 @@
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>
#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,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,9 +19,9 @@
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%
-->
{}
#L%
-->
{}

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,9 +19,9 @@
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%
-->
{}
#L%
-->
{}

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
@@ -33,4 +39,4 @@
]
}
}
</#escape>
</#escape>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,22 +19,22 @@
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>
#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,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,13 +19,13 @@
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%
-->
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"success": ${success?string}
}
</#escape>
</#escape>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,10 +19,10 @@
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%
-->
#L%
-->
<#import "listofvalues.lib.ftl" as listsLib/>
<@listsLib.listsJSON lists=lists/>
<@listsLib.listsJSON lists=lists/>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#macro listsJSON lists>
<#escape x as jsonUtils.encodeJSONString(x)>
{

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,25 +19,25 @@
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>
#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,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
{
"success": ${success?string}
}
}

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,24 +19,24 @@
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":
{
"relationshipLabels":
[
<#list relationshipLabels as relationshipLabel>
{
"label": "${relationshipLabel.label}",
"uniqueName": "${relationshipLabel.uniqueName}"
}<#if relationshipLabel_has_next>,</#if>
</#list>
]
}
}
</#escape>
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
{
"relationshipLabels":
[
<#list relationshipLabels as relationshipLabel>
{
"label": "${relationshipLabel.label}",
"uniqueName": "${relationshipLabel.uniqueName}"
}<#if relationshipLabel_has_next>,</#if>
</#list>
]
}
}
</#escape>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#escape x as jsonUtils.encodeJSONString(x)>
{
"data":
@@ -32,4 +38,4 @@
]
}
}
</#escape>
</#escape>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,22 +19,22 @@
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%
-->
{
"message" : "${message}"
<#if result?exists>
,"result" : "${result?string}"
</#if>
<#if results?exists>
,"results" :
{
<#list results?keys as prop>
"${prop}" : "${results[prop]}"<#if prop_has_next>,</#if>
</#list>
}
</#if>
}
#L%
-->
{
"message" : "${message}"
<#if result?exists>
,"result" : "${result?string}"
</#if>
<#if results?exists>
,"results" :
{
<#list results?keys as prop>
"${prop}" : "${results[prop]}"<#if prop_has_next>,</#if>
</#list>
}
</#if>
}

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,10 +19,10 @@
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%
-->
#L%
-->
<#import "rmauditlog.lib.ftl" as auditLib/>
<@auditLib.auditStatusJSON auditstatus=auditstatus/>
<@auditLib.auditStatusJSON auditstatus=auditstatus/>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,11 +19,11 @@
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%
-->
#L%
-->
<#macro auditStatusJSON auditstatus>
<#escape x as jsonUtils.encodeJSONString(x)>
{

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,10 +19,10 @@
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%
-->
#L%
-->
<#import "rmauditlog.lib.ftl" as auditLib/>
<@auditLib.auditStatusJSON auditstatus=auditstatus/>
<@auditLib.auditStatusJSON auditstatus=auditstatus/>

View File

@@ -1,9 +1,15 @@
<#--
<#--
#%L
This file is part of Alfresco.
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
@@ -13,14 +19,14 @@
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%
-->
#L%
-->
{
"data" :
{
"enabled" : ${enabled?string}
}
}
}

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