* "manage" access to all documents/records within Meridio, so if
* the user has been granted that privilege, or one of the groups
* of which they are a member has that privilege then add it to
* the token list
*================================================================*/
RMDataSet userPrivileges = meridio_.getUserPrivilegeList(new Long(userId).intValue());
for (int i = 0; i < userPrivileges.getRm2Privilege().length; i++)
{
if (Logging.authorityConnectors.isDebugEnabled())
Logging.authorityConnectors.debug("Meridio: Privilege ID '" + userPrivileges.getRm2Privilege()[i].getId() + "' " +
"Name '" + userPrivileges.getRm2Privilege()[i].getName() + "'");
if (userPrivileges.getRm2Privilege()[i].getId() == MANAGE_DOCUMENT_PRIVILEGE)
{
Logging.authorityConnectors.debug("Meridio: User has Manage Document privilege so adding READ_ALL to token list");
aclList.add("READ_ALL");
}
}