Hi,
I have some questions about the document manage permission. I want to add new metadata(Date Permission). currently, I am stuck to storing the data because of this service rmService.setPermission(node, role, authority); not accept multiple parameters. Below is my code and my reference
for (var i=0; i<permissions.length(); i++)
{
var p = permissions.getJSONObject(i);
// collect values for the permission setting
var role = p.getString("role");
var authority = p.getString("authority");
var date= p.getString("date");
var remove = false;
logger.system.out("node = " + node);
logger.system.out("role = " + role);
logger.system.out("authority = " + authority);
if (p.has("remove"))
{
remove = p.getBoolean("remove");
}
// apply or remove permission
if (remove)
{
rmService.deletePermission(node, role, authority,date);
}
else
{
rmService.setPermission(node, role, authority,date);
}
}
Permissions in Alfresco are not supporting additional parameters.
Every permission on a node is defined by a role name and an authority (user, group) list.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.