05-11-2010 06:03 AM
05-13-2010 01:19 AM
05-20-2010 05:24 AM
10-25-2010 07:15 AM
AuthenticationUtil.runAs(new AuthenticationUtil.RunAsWork<Void>()
{
public Void doWork() throws Exception
{
// Do your work here…
return null;
}
}, AuthenticationUtil.getSystemUserName());
But this is powerful code. The work being done within the doWork will be done as "system" with system privileges. You should do as little work as possible within that block - only the part that is strictly necessary. The rest can be done as the currently authenticated user in the normal way.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.