com.wewebu.ow.server.ecmimpl.opencmis.users
Class OwUsersRepositoryAlfresco

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.opencmis.users.OwUsersRepositoryAlfresco
All Implemented Interfaces:
OwUsersRepository

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

Since:
4.1.1.0

Constructor Summary
OwUsersRepositoryAlfresco(String baseURL, String userName, String password)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwUsersRepositoryAlfresco

public OwUsersRepositoryAlfresco(String baseURL,
                                 String userName,
                                 String password)
Parameters:
baseURL -
password -
userName -
Method Detail

findUserByID

public com.wewebu.ow.server.ecm.OwUserInfo findUserByID(String id)
                                                 throws OwUserRepositoryException
Description copied from interface: OwUsersRepository
Tries to find a user by his/her ID.

Specified by:
findUserByID in interface OwUsersRepository
Returns:
The user with the given ID or null if not found.
Throws:
OwUserRepositoryException

findGroupsMatching

public Set<OwGroup> findGroupsMatching(String pattern)
                                throws OwUserRepositoryException
The pattern can be applied to the group's id (shortName field in the REST response) only.

Specified by:
findGroupsMatching in interface OwUsersRepository
Throws:
OwUserRepositoryException

findGroupsForUserID

public Set<OwGroup> findGroupsForUserID(String id)
                                 throws OwUserRepositoryException
Specified by:
findGroupsForUserID in interface OwUsersRepository
Throws:
OwUserRepositoryException

findUsersMatching

public com.wewebu.ow.server.ecm.OwObjectCollection findUsersMatching(String pattern)
                                                              throws OwUserRepositoryException
Description copied from interface: OwUsersRepository
Find users that match the pattern.

Specified by:
findUsersMatching in interface OwUsersRepository
Returns:
a collection of OwUser.
Throws:
OwUserRepositoryException

findRolesMatching

public Set<OwUserRole> findRolesMatching(String pattern)
                                  throws OwUserRepositoryException
Specified by:
findRolesMatching in interface OwUsersRepository
Throws:
OwUserRepositoryException


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.