@Component(value="contactUtils") public class ContactUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
collectionContactsUrl |
protected String |
registryUrl |
| Constructor and Description |
|---|
ContactUtils() |
| Modifier and Type | Method and Description |
|---|---|
ContactDTO |
getContactForEmailAndUid(String email,
String uid)
Return contact details for this user if they are a collection manager etc
|
List<ContactDTO> |
getContactsForUID(String collectionUid)
Retrieve a list of contacts for this UID.
|
boolean |
isCollectionsAdmin(String collectionUid,
String userId) |
void |
setRestTemplate(org.springframework.web.client.RestOperations restTemplate) |
protected String registryUrl
protected String collectionContactsUrl
public List<ContactDTO> getContactsForUID(String collectionUid)
collectionUid - public ContactDTO getContactForEmailAndUid(String email, String uid)
email - uid - public void setRestTemplate(org.springframework.web.client.RestOperations restTemplate)
Copyright © 2014. All rights reserved.