public class OwUsersRepositoryAlfresco extends Object implements OwUsersRepository
User repository implementation based on a connection to an Alfresco server (Using the REST API).
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Constructor and Description |
---|
OwUsersRepositoryAlfresco(com.wewebu.ow.server.util.OwAuthenticationConfiguration conf,
org.alfresco.wd.ext.restlet.auth.OwRestletAuthenticationHandler authHandler)
Constructor which provides all informations about repository and corresponding authentication handler.
|
OwUsersRepositoryAlfresco(String baseURL,
String userName,
String password)
Deprecated.
since 4.2.0.0 use
OwUsersRepositoryAlfresco(OwAuthenticationConfiguration, OwRestletAuthenticationHandler) instead |
Modifier and Type | Method and Description |
---|---|
Set<OwGroup> |
findGroupsForUserID(String id) |
Set<OwGroup> |
findGroupsMatching(String pattern)
The pattern can be applied to the group's id (shortName field in the REST response) only.
|
Set<OwUserRole> |
findRolesMatching(String pattern) |
com.wewebu.ow.server.ecm.OwUserInfo |
findUserByID(String id)
Tries to find a user by his/her ID.
|
com.wewebu.ow.server.ecm.OwObjectCollection |
findUsersMatching(String pattern)
Find users that match the pattern.
|
public OwUsersRepositoryAlfresco(String baseURL, String userName, String password)
OwUsersRepositoryAlfresco(OwAuthenticationConfiguration, OwRestletAuthenticationHandler)
insteadbaseURL
- userName
- password
- public OwUsersRepositoryAlfresco(com.wewebu.ow.server.util.OwAuthenticationConfiguration conf, org.alfresco.wd.ext.restlet.auth.OwRestletAuthenticationHandler authHandler)
conf
- OwAuthenticationConfigurationauthHandler
- OwCMISRestletAuthenticationHandlerpublic com.wewebu.ow.server.ecm.OwUserInfo findUserByID(String id) throws OwUserRepositoryException
OwUsersRepository
findUserByID
in interface OwUsersRepository
OwUserRepositoryException
public Set<OwGroup> findGroupsMatching(String pattern) throws OwUserRepositoryException
findGroupsMatching
in interface OwUsersRepository
OwUserRepositoryException
public Set<OwGroup> findGroupsForUserID(String id) throws OwUserRepositoryException
findGroupsForUserID
in interface OwUsersRepository
OwUserRepositoryException
public com.wewebu.ow.server.ecm.OwObjectCollection findUsersMatching(String pattern) throws OwUserRepositoryException
OwUsersRepository
findUsersMatching
in interface OwUsersRepository
OwUser
.OwUserRepositoryException
public Set<OwUserRole> findRolesMatching(String pattern) throws OwUserRepositoryException
findRolesMatching
in interface OwUsersRepository
OwUserRepositoryException
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.