Clearspace API (2.0.15) Web Services Client Javadocs

com.jivesoftware.community.webservices
Class ServiceLocator

java.lang.Object
  extended by com.jivesoftware.community.webservices.ServiceLocator

public class ServiceLocator
extends java.lang.Object

Entry point to the jive java soap webservices api. Supplies the client with access to all of the different services.

General Usage:
ServiceLocator locator = new ServiceLocator("https://myforums.com", "user", "password");
ContentService svc = locator.getContentService();
Community community = svc.getCommunity(1);


Field Summary
protected  AddressBookService addressBookService
           
protected  AttachmentService attachmentManagerService
           
protected  AuditService auditService
           
protected  AvatarService avatarService
           
protected  BlogService blogService
           
protected  CommentService commentService
           
protected  CommunityService communityService
           
protected  DocumentService documentService
           
protected  ForumService forumService
           
protected  GroupService groupService
           
protected  IMService imService
           
protected  java.lang.String password
           
protected  PermissionService permissionService
           
protected  PollService pollService
           
protected  ProfileFieldService profileFieldService
           
protected  ProfileSearchService profileSearchService
           
protected  ProfileService profileService
           
protected  ProjectService projectService
           
protected  java.lang.String proxyHost
           
protected  java.lang.Integer proxyPort
           
protected  RatingsService ratingsService
           
protected  ReferenceService referenceService
           
protected  SearchService searchService
           
protected  SystemPropertiesService systemPropertiesService
           
protected  TagService tagService
           
protected  TaskService taskService
           
protected  java.lang.String url
           
protected  java.lang.String username
           
protected  UserService userService
           
protected  WatchService watchService
           
 
Constructor Summary
ServiceLocator(java.lang.String url)
          Creates a new anonymous Service Locator.
ServiceLocator(java.lang.String url, java.lang.String username, java.lang.String password)
          Create a new service locator.
ServiceLocator(java.lang.String url, java.lang.String username, java.lang.String password, java.lang.String proxyHost, java.lang.Integer proxyPort)
           
 
Method Summary
<U> U
createServiceProxy(java.lang.Class<U> serviceClass, boolean mtomEnabled)
          This will create an service proxy for the specified class interface.
 AddressBookService getAddressBookService()
          Returns an isntance of AddressBookService
 AttachmentService getAttachmentManagerService()
          Returns a new instance of AttachmentService
 AuditService getAuditService()
          Returns a new instance of AuditService
 AvatarService getAvatarService()
          Returns an instance of {@link com.jivesoftware.community.webservices.AvatarService
 BlogService getBlogService()
          Returns an instance of BlogService.
 CommentService getCommentService()
          Returns an instance of CommentService.
 CommunityService getCommunityService()
          Returns a new instance of CommunityService.
 DocumentService getDocumentService()
           
 ForumService getForumService()
          Returns a new instance of ForumService.
 GroupService getGroupService()
          Returns a new instance of GroupService
 IMService getIMService()
          Returns an instance of {@link com.jivesoftware.community.webservices.IMService
 PermissionService getPermissionService()
          Returns a new instance of PermissionService
 PollService getPollService()
          Return an instance of PollService
 ProfileFieldService getProfileFieldService()
          Returns an instance of ProfileFieldService.
 ProfileSearchService getProfileSearchService()
          Returns an instance of {@link com.jivesoftware.community.webservices.ProfileSearchService
 ProfileService getProfileService()
          Returns an instance of ProfileService
 ProjectService getProjectService()
           
 RatingsService getRatingsService()
          Return an instance of RatingsService
 ReferenceService getReferenceService()
          Returns an instance of ReferenceService
 SearchService getSearchService()
          Returns a new instance of SearchService.
 SystemPropertiesService getSystemPropertiesService()
          Returns a new instance of SystemPropertiesService
 TagService getTagService()
          Returns an instance of TagService.
 TaskService getTaskService()
           
 UserService getUserService()
          Returns a new instance of UserService
 WatchService getWatchService()
          Returns a new instance of WatchService
protected  java.lang.String modifyURL(java.lang.String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url

protected java.lang.String url

password

protected java.lang.String password

searchService

protected SearchService searchService

communityService

protected CommunityService communityService

forumService

protected ForumService forumService

userService

protected UserService userService

auditService

protected AuditService auditService

groupService

protected GroupService groupService

watchService

protected WatchService watchService

permissionService

protected PermissionService permissionService

documentService

protected DocumentService documentService

pollService

protected PollService pollService

ratingsService

protected RatingsService ratingsService

attachmentManagerService

protected AttachmentService attachmentManagerService

systemPropertiesService

protected SystemPropertiesService systemPropertiesService

blogService

protected BlogService blogService

proxyHost

protected java.lang.String proxyHost

proxyPort

protected java.lang.Integer proxyPort

username

protected java.lang.String username

tagService

protected TagService tagService

commentService

protected CommentService commentService

profileFieldService

protected ProfileFieldService profileFieldService

profileService

protected ProfileService profileService

referenceService

protected ReferenceService referenceService

projectService

protected ProjectService projectService

taskService

protected TaskService taskService

profileSearchService

protected ProfileSearchService profileSearchService

avatarService

protected AvatarService avatarService

imService

protected IMService imService

addressBookService

protected AddressBookService addressBookService
Constructor Detail

ServiceLocator

public ServiceLocator(java.lang.String url,
                      java.lang.String username,
                      java.lang.String password)
Create a new service locator.

Parameters:
url - Community installation base url.
username - Username of the community user to connect with.
password - The Password of the community user.

ServiceLocator

public ServiceLocator(java.lang.String url,
                      java.lang.String username,
                      java.lang.String password,
                      java.lang.String proxyHost,
                      java.lang.Integer proxyPort)

ServiceLocator

public ServiceLocator(java.lang.String url)
Creates a new anonymous Service Locator.

Parameters:
url - community installation base url.
Method Detail

modifyURL

protected java.lang.String modifyURL(java.lang.String url)

getSearchService

public SearchService getSearchService()
Returns a new instance of SearchService.

Returns:
a new instance of SearchService.

getCommunityService

public CommunityService getCommunityService()
Returns a new instance of CommunityService.

Returns:
a new instance of CommunityService.

getGroupService

public GroupService getGroupService()
Returns a new instance of GroupService

Returns:
a new instance of GroupService

getAuditService

public AuditService getAuditService()
Returns a new instance of AuditService

Returns:
a new instance of AuditService

getPermissionService

public PermissionService getPermissionService()
Returns a new instance of PermissionService

Returns:
a new instance of PermissionService

getForumService

public ForumService getForumService()
Returns a new instance of ForumService.

Returns:
a new instance of ForumService.

getUserService

public UserService getUserService()
Returns a new instance of UserService

Returns:
a new instance of UserService

getWatchService

public WatchService getWatchService()
Returns a new instance of WatchService

Returns:
a new instance of WatchService

getDocumentService

public DocumentService getDocumentService()

getAttachmentManagerService

public AttachmentService getAttachmentManagerService()
Returns a new instance of AttachmentService

Returns:
a new instance of AttachmentService

getSystemPropertiesService

public SystemPropertiesService getSystemPropertiesService()
Returns a new instance of SystemPropertiesService

Returns:
a new instance of SystemPropertiesService

getPollService

public PollService getPollService()
Return an instance of PollService

Returns:
an instance of PollService

getRatingsService

public RatingsService getRatingsService()
Return an instance of RatingsService

Returns:
an instance of RatingsService

getBlogService

public BlogService getBlogService()
Returns an instance of BlogService.

Returns:
an instance of BlogService.

getTagService

public TagService getTagService()
Returns an instance of TagService.

Returns:
an instance of TagService.

getCommentService

public CommentService getCommentService()
Returns an instance of CommentService.

Returns:
an instance of CommentService.
Since:
1.9

getProfileFieldService

public ProfileFieldService getProfileFieldService()
Returns an instance of ProfileFieldService.

Returns:
an instance of ProfileFieldService.
Since:
1.9

getProfileService

public ProfileService getProfileService()
Returns an instance of ProfileService

Returns:
an instance of ProfileService
Since:
1.9

getReferenceService

public ReferenceService getReferenceService()
Returns an instance of ReferenceService

Returns:
an instance of ReferenceService
Since:
2.0

getProjectService

public ProjectService getProjectService()

getTaskService

public TaskService getTaskService()

getProfileSearchService

public ProfileSearchService getProfileSearchService()
Returns an instance of {@link com.jivesoftware.community.webservices.ProfileSearchService

Returns:
an instance of {@link com.jivesoftware.community.webservices.ProfileSearchService
Since:
2.0

getAvatarService

public AvatarService getAvatarService()
Returns an instance of {@link com.jivesoftware.community.webservices.AvatarService

Returns:
an instance of {@link com.jivesoftware.community.webservices.AvatarService
Since:
2.0

getIMService

public IMService getIMService()
Returns an instance of {@link com.jivesoftware.community.webservices.IMService

Returns:
an instance of {@link com.jivesoftware.community.webservices.IMService
Since:
2.0

getAddressBookService

public AddressBookService getAddressBookService()
Returns an isntance of AddressBookService

Returns:
Returns an isntance of AddressBookService
Since:
2.0

createServiceProxy

public <U> U createServiceProxy(java.lang.Class<U> serviceClass,
                                boolean mtomEnabled)
This will create an service proxy for the specified class interface. The serviceClass must be annotated with WebService with the serviceName specified.

Parameters:
serviceClass - The service interface.
mtomEnabled - Whether or not to enable MTOM encoding
Returns:
returns an instance of serviceClass

Clearspace Project Page

Copyright © 1999-2007 Jive Software.