public class AlfrescoUserGroupServiceHandler extends Object implements UserGroupServiceHandler
Constructor and Description |
---|
AlfrescoUserGroupServiceHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addUserCollectionToRole(String dws,
String roleName,
List<UserBean> usersList)
Adds the collection of users to the specified site group.
|
protected UserBean |
getUserBean(org.alfresco.service.cmr.repository.NodeRef personNodeRef)
Returns user bean for person node reference
|
List<UserBean> |
getUserLoginFromEmail(String dwsUrl,
List<String> emailList)
Returns a user name based on the specified e-mail address.
|
boolean |
isUserMember(String dwsUrl,
String username)
Check user on member
|
void |
setAuthorityService(AuthorityService authorityService)
Set the authority service
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the node service
|
void |
setPersonService(PersonService personService)
Set the person service
|
void |
setSiteService(SiteService siteService)
Set site service
|
void |
setTransactionService(TransactionService transactionService)
Set transaction service
|
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- the node service to set (NodeService
)public void setPersonService(PersonService personService)
personService
- the person service to set (PersonService
)public void setAuthorityService(AuthorityService authorityService)
authorityService
- the authority service to set (AuthorityService
)public void setTransactionService(TransactionService transactionService)
transactionService
- the transaction service to set (TransactionService
)public void setSiteService(SiteService siteService)
siteService
- the site service to set (SiteService
)public void addUserCollectionToRole(String dws, String roleName, List<UserBean> usersList)
UserGroupServiceHandler
addUserCollectionToRole
in interface UserGroupServiceHandler
dws
- dws urlroleName
- name of the site group to add users tousersList
- list that contains information about the users to add (UserBean
)UserGroupServiceHandler.addUserCollectionToRole(java.lang.String, java.lang.String, java.util.List)
public boolean isUserMember(String dwsUrl, String username)
UserGroupServiceHandler
isUserMember
in interface UserGroupServiceHandler
dwsUrl
- dws urlusername
- list that contains information about the users to addUserGroupServiceHandler.isUserMember(java.lang.String, java.lang.String)
public List<UserBean> getUserLoginFromEmail(String dwsUrl, List<String> emailList)
UserGroupServiceHandler
getUserLoginFromEmail
in interface UserGroupServiceHandler
dwsUrl
- dws urlemailList
- list that specifies the e-mail address of the userUserGroupServiceHandler.getUserLoginFromEmail(java.lang.String, java.util.List)
protected UserBean getUserBean(org.alfresco.service.cmr.repository.NodeRef personNodeRef)
personNodeRef
- the person node reference (NodeRef
)Copyright © 2005–2017 Alfresco Software. All rights reserved.