/** * Always returns the name of the <code>SystemPrincipal</code>. * * @return the name of <code>SystemPrincipal</code>. */ @Override protected String retrieveUserId(Subject subject, String workspaceName) throws RepositoryException { return new SystemPrincipal().getName(); }
/** * Always returns the name of the <code>SystemPrincipal</code>. * * @return the name of <code>SystemPrincipal</code>. */ @Override protected String retrieveUserId(Subject subject, String workspaceName) throws RepositoryException { return new SystemPrincipal().getName(); }
if (isSystem) { for (SystemPrincipal principal : subject.getPrincipals(SystemPrincipal.class)) { userIds.add(principal.getName());