Talks about Alfresco API usage
final String _user = AuthenticationUtil.getRunAsUser();
2. Getting the usernode ref from username
final NodeRef _userRef = serviceRegistry.getPersonService().getPerson(_userName);
3. Getting the groups the user belonging to user
final Set _groupSet = this.getAuthorityService().getAuthoritiesForUser(_user);
No comments:
Post a Comment