tsgrp / OpenContent

TSG's Web Services for ECM Repositories
8 stars 4 forks source link

Implement generic 'runAs' for both repos #38

Closed cmlewis closed 9 years ago

cmlewis commented 10 years ago

In Alfresco, AuthenticationUtil.RunAsWork is used often to authenticate as admin when running utility/service type tasks (lifecycle status attribute updates, sending emails, etc.) so there are never authentication issues.

There is already a DCTM runAs method, we should create a generic method and create the Alfresco impl. This method should be used SUPER SPARINGLY.

m-brouillette commented 9 years ago

Added to the IAuthentication interface and implemented for Alfresco & Documentum in OC REV 12066. For DCTM consolidated existing runAsAdmin code from DctmUtil. For Alfresco, we wrap the runAs code in Alfresco's existing runAs method from AuthenticationUtil, passing in the systemUser.

CR: ballen & dgrumieux