org.springframework.social.alfresco.api.impl
Class AlfrescoTemplate

java.lang.Object
  extended by org.springframework.social.oauth2.AbstractOAuth2ApiBinding
      extended by org.springframework.social.alfresco.api.impl.AlfrescoTemplate
All Implemented Interfaces:
Alfresco, org.springframework.social.ApiBinding

public class AlfrescoTemplate
extends org.springframework.social.oauth2.AbstractOAuth2ApiBinding
implements Alfresco

Author:
jottley, sglover

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.springframework.social.alfresco.api.Alfresco
Alfresco.QueryParams, Alfresco.TemplateParams
 
Field Summary
 
Fields inherited from interface org.springframework.social.alfresco.api.Alfresco
ATOMPUB_URL, CONTAINER_URL, CONTAINERS_URL, DEFAULT_SCOPE, MEMBER_URL, MEMBERS_URL, NETWORK_URL, NETWORKS_URL, NODE_COMMENT_URL, NODE_COMMENTS_URL, NODE_RATING_URL, NODE_RATINGS_URL, NODE_TAG_URL, NODE_TAGS_URL, PEOPLE_ACTIVITIES_URL, PEOPLE_FAVORITE_SITES_URL, PEOPLE_NETWORK_URL, PEOPLE_NETWORKS_URL, PEOPLE_PREFERENCE_URL, PEOPLE_PREFERENCES_URL, PEOPLE_SITE_URL, PEOPLE_SITES_URL, PEOPLE_URL, ROOT_ATOMPUB_URL, SITE_URL, SITES_URL, TAG_URL, TAGS_URL
 
Constructor Summary
AlfrescoTemplate(String accessToken)
           
 
Method Summary
 Member addMember(String network, String site, String personId, Role role)
          Add member to site in network with role
 AlfrescoList<Tag> addTagsToNode(String network, String node, List<String> tags)
          Add multiple tags to node
 Tag addTagToNode(String network, String node, String tag)
          Add tag to node in network
protected  org.apache.chemistry.opencmis.client.api.Session createCMISSession(String networkId)
           
 Comment createComment(String network, String node, String comment)
          Create comment on node in network
 AlfrescoList<Comment> createComments(String network, String node, List<String> comments)
          Create multiple comments on node in network
 void deleteComment(String network, String node, String commentId)
          Delete comment from node in network
 void deleteMember(String network, String site, String personId)
          Delete person membership from site in network
 AlfrescoList<Activity> getActivities(String network, String person)
          Get activities for person in network
 AlfrescoList<Activity> getActivities(String network, String person, Map<String,String> parameters)
          Get activities for person in network filtered by parameters
protected  List<org.apache.chemistry.opencmis.client.api.Repository> getCMISNetworks()
           
 org.apache.chemistry.opencmis.client.api.Session getCMISSession(String networkId)
           
 AlfrescoList<Comment> getComments(String network, String node)
          Get Comments for node in network
 AlfrescoList<Comment> getComments(String network, String node, Map<String,String> parameters)
          Get comments for node in network filtered by parameters
 Container getContainer(String network, String site, String contatiner)
          Get Container in site in network
 AlfrescoList<Container> getContainers(String network, String site)
          Get all containers in site in network
 AlfrescoList<Container> getContainers(String network, String site, Map<String,String> parameters)
          Get all containers in site in network filtered by parameters
 Person getCurrentUser()
          Get the current users profile
 AlfrescoList<Site> getFavoriteSites(String network, String person)
          Get favorited sites of person in network
 AlfrescoList<Site> getFavoriteSites(String network, String person, Map<String,String> parameters)
          Get favorited sites of person in network filtered by parameters
 Network getHomeNetwork()
          Get home network for user
 Member getMember(String network, String site, String person)
          Get member of site in network
 AlfrescoList<Member> getMembers(String network, String site)
          Get all members of site in network
 AlfrescoList<Member> getMembers(String network, String site, Map<String,String> parameters)
          Get all mermbers of site in network filtered by parameters
 Network getNetwork(String network)
          Get the Alfresco Network for the user
 Network getNetwork(String network, String person)
          Get network for person
 AlfrescoList<Network> getNetworks()
          Get all Alfresco Networks that the user is a member of
 AlfrescoList<Network> getNetworks(Map<String,String> parameters)
          Get all Alfresco Networks that the user is a member of filter by parameters
 AlfrescoList<Network> getNetworks(String network, String person)
          Get all networks for person
 AlfrescoList<Network> getNetworks(String network, String person, Map<String,String> parameters)
          Get all networks for person filtered by parameters
 Rating getNodeRating(String network, String node, String rating)
          Get rating for node in network
 AlfrescoList<Rating> getNodeRatings(String network, String node)
          Get ratings for node in network
 AlfrescoList<Rating> getNodeRatings(String network, String node, Map<String,String> parameters)
          Get ratings for node in network filtered by parameters
 AlfrescoList<Tag> getNodesTags(String network, String node)
          Get tags on node in network
 AlfrescoList<Tag> getNodesTags(String network, String node, Map<String,String> parameters)
          Get tags on node in network filtered by parameters
 Person getPerson(String network, String person)
          Get person from network
 Preference getPreference(String network, String person, String preference)
          Get preference for person in network
 AlfrescoList<Preference> getPreferences(String network, String person)
          Get all preferences for person in network
 AlfrescoList<Preference> getPreferences(String network, String person, Map<String,String> parameters)
          Get all preferences for person in network filtered by parameters
 Site getSite(String site, String network)
          Get site in network
 Site getSite(String network, String person, String site)
          Get site in network that the person is a member of
 AlfrescoList<Site> getSites(String network)
          Get all sites in network
 AlfrescoList<Site> getSites(String network, Map<String,String> parameters)
          Get all sites in network filtered by parameters
 AlfrescoList<Site> getSites(String network, String person)
          Get sites in network that the user is a member of
 AlfrescoList<Site> getSites(String network, String person, Map<String,String> parameters)
          Get sites in network that the user is a member of filtered by parameters
 Tag getTag(String network, String tag)
          Get tag in network
 AlfrescoList<Tag> getTags(String network)
          Get all tags in network
 AlfrescoList<Tag> getTags(String network, Map<String,String> parameters)
           
 AlfrescoList<Metadata> networkOptions(String network)
          Deprecated. 
 Rating rateNode(String network, String node, boolean like)
          Like node
 Rating rateNode(String network, String node, int stars)
          Rate node (Stars)
 void removeNodeRating(String network, String node, String ratingId)
          Remove rating from node in network
 void removeTagFromNode(String network, String node, String tagId)
          Remove Tag from node in network
 void updateComment(String network, String node, String commentId, String comment)
          Update comment on node in network
 void updateMember(String network, String site, String personId, Role role)
          Update Role of member of site in network
 void updateTag(String network, String tagId, String tag)
          Update tag in network (rename tag)
 
Methods inherited from class org.springframework.social.oauth2.AbstractOAuth2ApiBinding
configureRestTemplate, getByteArrayMessageConverter, getFormMessageConverter, getJsonMessageConverter, getMessageConverters, getOAuth2Version, getRestTemplate, isAuthorized, setRequestFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlfrescoTemplate

public AlfrescoTemplate(String accessToken)
Parameters:
accessToken -
Method Detail

getCMISSession

public org.apache.chemistry.opencmis.client.api.Session getCMISSession(String networkId)
Specified by:
getCMISSession in interface Alfresco
Returns:

getNetwork

public Network getNetwork(String network)
                   throws org.codehaus.jackson.JsonParseException,
                          org.codehaus.jackson.map.JsonMappingException,
                          IOException
Description copied from interface: Alfresco
Get the Alfresco Network for the user

Specified by:
getNetwork in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getNetworks

public AlfrescoList<Network> getNetworks()
                                  throws org.codehaus.jackson.JsonParseException,
                                         org.codehaus.jackson.map.JsonMappingException,
                                         IOException
Description copied from interface: Alfresco
Get all Alfresco Networks that the user is a member of

Specified by:
getNetworks in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getNetworks

public AlfrescoList<Network> getNetworks(Map<String,String> parameters)
                                  throws org.codehaus.jackson.JsonParseException,
                                         org.codehaus.jackson.map.JsonMappingException,
                                         IOException
Description copied from interface: Alfresco
Get all Alfresco Networks that the user is a member of filter by parameters

Specified by:
getNetworks in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getSite

public Site getSite(String site,
                    String network)
             throws org.codehaus.jackson.JsonParseException,
                    org.codehaus.jackson.map.JsonMappingException,
                    IOException
Description copied from interface: Alfresco
Get site in network

Specified by:
getSite in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getSites

public AlfrescoList<Site> getSites(String network)
                            throws org.codehaus.jackson.JsonParseException,
                                   org.codehaus.jackson.map.JsonMappingException,
                                   IOException
Description copied from interface: Alfresco
Get all sites in network

Specified by:
getSites in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getSites

public AlfrescoList<Site> getSites(String network,
                                   Map<String,String> parameters)
                            throws org.codehaus.jackson.JsonParseException,
                                   org.codehaus.jackson.map.JsonMappingException,
                                   IOException
Description copied from interface: Alfresco
Get all sites in network filtered by parameters

Specified by:
getSites in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getContainer

public Container getContainer(String network,
                              String site,
                              String contatiner)
                       throws org.codehaus.jackson.JsonParseException,
                              org.codehaus.jackson.map.JsonMappingException,
                              IOException
Description copied from interface: Alfresco
Get Container in site in network

Specified by:
getContainer in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getContainers

public AlfrescoList<Container> getContainers(String network,
                                             String site)
                                      throws org.codehaus.jackson.JsonParseException,
                                             org.codehaus.jackson.map.JsonMappingException,
                                             IOException
Description copied from interface: Alfresco
Get all containers in site in network

Specified by:
getContainers in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getContainers

public AlfrescoList<Container> getContainers(String network,
                                             String site,
                                             Map<String,String> parameters)
                                      throws org.codehaus.jackson.JsonParseException,
                                             org.codehaus.jackson.map.JsonMappingException,
                                             IOException
Description copied from interface: Alfresco
Get all containers in site in network filtered by parameters

Specified by:
getContainers in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getMember

public Member getMember(String network,
                        String site,
                        String person)
                 throws org.codehaus.jackson.JsonParseException,
                        org.codehaus.jackson.map.JsonMappingException,
                        IOException
Description copied from interface: Alfresco
Get member of site in network

Specified by:
getMember in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getMembers

public AlfrescoList<Member> getMembers(String network,
                                       String site)
                                throws org.codehaus.jackson.JsonParseException,
                                       org.codehaus.jackson.map.JsonMappingException,
                                       IOException
Description copied from interface: Alfresco
Get all members of site in network

Specified by:
getMembers in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getMembers

public AlfrescoList<Member> getMembers(String network,
                                       String site,
                                       Map<String,String> parameters)
                                throws org.codehaus.jackson.JsonParseException,
                                       org.codehaus.jackson.map.JsonMappingException,
                                       IOException
Description copied from interface: Alfresco
Get all mermbers of site in network filtered by parameters

Specified by:
getMembers in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

addMember

public Member addMember(String network,
                        String site,
                        String personId,
                        Role role)
                 throws org.codehaus.jackson.JsonParseException,
                        org.codehaus.jackson.map.JsonMappingException,
                        IOException
Description copied from interface: Alfresco
Add member to site in network with role

Specified by:
addMember in interface Alfresco
personId - - person must exist in network
role - - must be one Role.SiteManager, Role.SiteContributor, Role.SiteCollaborator, Role.SiteConsumer
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

updateMember

public void updateMember(String network,
                         String site,
                         String personId,
                         Role role)
                  throws org.springframework.web.client.RestClientException
Description copied from interface: Alfresco
Update Role of member of site in network

Specified by:
updateMember in interface Alfresco
personId - - person must be member of site
role - - must be one Role.SiteManager, Role.SiteContributor, Role.SiteCollaborator, Role.SiteConsumer
Throws:
org.springframework.web.client.RestClientException

deleteMember

public void deleteMember(String network,
                         String site,
                         String personId)
                  throws org.springframework.web.client.RestClientException
Description copied from interface: Alfresco
Delete person membership from site in network

Specified by:
deleteMember in interface Alfresco
Throws:
org.springframework.web.client.RestClientException

getPerson

public Person getPerson(String network,
                        String person)
                 throws org.codehaus.jackson.JsonParseException,
                        org.codehaus.jackson.map.JsonMappingException,
                        IOException
Description copied from interface: Alfresco
Get person from network

Specified by:
getPerson in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getSites

public AlfrescoList<Site> getSites(String network,
                                   String person)
                            throws org.codehaus.jackson.JsonParseException,
                                   org.codehaus.jackson.map.JsonMappingException,
                                   IOException
Description copied from interface: Alfresco
Get sites in network that the user is a member of

Specified by:
getSites in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getSites

public AlfrescoList<Site> getSites(String network,
                                   String person,
                                   Map<String,String> parameters)
                            throws org.codehaus.jackson.JsonParseException,
                                   org.codehaus.jackson.map.JsonMappingException,
                                   IOException
Description copied from interface: Alfresco
Get sites in network that the user is a member of filtered by parameters

Specified by:
getSites in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getSite

public Site getSite(String network,
                    String person,
                    String site)
             throws org.codehaus.jackson.JsonParseException,
                    org.codehaus.jackson.map.JsonMappingException,
                    IOException
Description copied from interface: Alfresco
Get site in network that the person is a member of

Specified by:
getSite in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getFavoriteSites

public AlfrescoList<Site> getFavoriteSites(String network,
                                           String person)
                                    throws org.codehaus.jackson.JsonParseException,
                                           org.codehaus.jackson.map.JsonMappingException,
                                           IOException
Description copied from interface: Alfresco
Get favorited sites of person in network

Specified by:
getFavoriteSites in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getFavoriteSites

public AlfrescoList<Site> getFavoriteSites(String network,
                                           String person,
                                           Map<String,String> parameters)
                                    throws org.codehaus.jackson.JsonParseException,
                                           org.codehaus.jackson.map.JsonMappingException,
                                           IOException
Description copied from interface: Alfresco
Get favorited sites of person in network filtered by parameters

Specified by:
getFavoriteSites in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getPreference

public Preference getPreference(String network,
                                String person,
                                String preference)
                         throws org.codehaus.jackson.JsonParseException,
                                org.codehaus.jackson.map.JsonMappingException,
                                IOException
Description copied from interface: Alfresco
Get preference for person in network

Specified by:
getPreference in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getPreferences

public AlfrescoList<Preference> getPreferences(String network,
                                               String person)
                                        throws org.codehaus.jackson.JsonParseException,
                                               org.codehaus.jackson.map.JsonMappingException,
                                               IOException
Description copied from interface: Alfresco
Get all preferences for person in network

Specified by:
getPreferences in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getPreferences

public AlfrescoList<Preference> getPreferences(String network,
                                               String person,
                                               Map<String,String> parameters)
                                        throws org.codehaus.jackson.JsonParseException,
                                               org.codehaus.jackson.map.JsonMappingException,
                                               IOException
Description copied from interface: Alfresco
Get all preferences for person in network filtered by parameters

Specified by:
getPreferences in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getNetwork

public Network getNetwork(String network,
                          String person)
                   throws org.codehaus.jackson.JsonParseException,
                          org.codehaus.jackson.map.JsonMappingException,
                          IOException
Description copied from interface: Alfresco
Get network for person

Specified by:
getNetwork in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getNetworks

public AlfrescoList<Network> getNetworks(String network,
                                         String person)
                                  throws org.codehaus.jackson.JsonParseException,
                                         org.codehaus.jackson.map.JsonMappingException,
                                         IOException
Description copied from interface: Alfresco
Get all networks for person

Specified by:
getNetworks in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getNetworks

public AlfrescoList<Network> getNetworks(String network,
                                         String person,
                                         Map<String,String> parameters)
                                  throws org.codehaus.jackson.JsonParseException,
                                         org.codehaus.jackson.map.JsonMappingException,
                                         IOException
Description copied from interface: Alfresco
Get all networks for person filtered by parameters

Specified by:
getNetworks in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getActivities

public AlfrescoList<Activity> getActivities(String network,
                                            String person)
                                     throws org.codehaus.jackson.JsonParseException,
                                            org.codehaus.jackson.map.JsonMappingException,
                                            IOException
Description copied from interface: Alfresco
Get activities for person in network

Specified by:
getActivities in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getActivities

public AlfrescoList<Activity> getActivities(String network,
                                            String person,
                                            Map<String,String> parameters)
                                     throws org.codehaus.jackson.JsonParseException,
                                            org.codehaus.jackson.map.JsonMappingException,
                                            IOException
Description copied from interface: Alfresco
Get activities for person in network filtered by parameters

Specified by:
getActivities in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getTag

public Tag getTag(String network,
                  String tag)
           throws org.codehaus.jackson.JsonParseException,
                  org.codehaus.jackson.map.JsonMappingException,
                  IOException
Description copied from interface: Alfresco
Get tag in network

Specified by:
getTag in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getTags

public AlfrescoList<Tag> getTags(String network)
                          throws org.codehaus.jackson.JsonParseException,
                                 org.codehaus.jackson.map.JsonMappingException,
                                 IOException
Description copied from interface: Alfresco
Get all tags in network

Specified by:
getTags in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getTags

public AlfrescoList<Tag> getTags(String network,
                                 Map<String,String> parameters)
                          throws org.codehaus.jackson.JsonParseException,
                                 org.codehaus.jackson.map.JsonMappingException,
                                 IOException
Specified by:
getTags in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

updateTag

public void updateTag(String network,
                      String tagId,
                      String tag)
               throws org.springframework.web.client.RestClientException
Description copied from interface: Alfresco
Update tag in network (rename tag)

Specified by:
updateTag in interface Alfresco
tagId - - Existing tag
tag - - new tag name
Throws:
org.springframework.web.client.RestClientException

getComments

public AlfrescoList<Comment> getComments(String network,
                                         String node)
                                  throws org.codehaus.jackson.JsonParseException,
                                         org.codehaus.jackson.map.JsonMappingException,
                                         IOException
Description copied from interface: Alfresco
Get Comments for node in network

Specified by:
getComments in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getComments

public AlfrescoList<Comment> getComments(String network,
                                         String node,
                                         Map<String,String> parameters)
                                  throws org.codehaus.jackson.JsonParseException,
                                         org.codehaus.jackson.map.JsonMappingException,
                                         IOException
Description copied from interface: Alfresco
Get comments for node in network filtered by parameters

Specified by:
getComments in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

createComment

public Comment createComment(String network,
                             String node,
                             String comment)
                      throws org.codehaus.jackson.JsonParseException,
                             org.codehaus.jackson.map.JsonMappingException,
                             IOException
Description copied from interface: Alfresco
Create comment on node in network

Specified by:
createComment in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

createComments

public AlfrescoList<Comment> createComments(String network,
                                            String node,
                                            List<String> comments)
                                     throws org.codehaus.jackson.JsonParseException,
                                            org.codehaus.jackson.map.JsonMappingException,
                                            IOException
Description copied from interface: Alfresco
Create multiple comments on node in network

Specified by:
createComments in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

updateComment

public void updateComment(String network,
                          String node,
                          String commentId,
                          String comment)
                   throws org.codehaus.jackson.JsonParseException,
                          org.codehaus.jackson.map.JsonMappingException,
                          IOException
Description copied from interface: Alfresco
Update comment on node in network

Specified by:
updateComment in interface Alfresco
commentId - - existing commentId
comment - - updated comment
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

deleteComment

public void deleteComment(String network,
                          String node,
                          String commentId)
                   throws org.codehaus.jackson.JsonParseException,
                          org.codehaus.jackson.map.JsonMappingException,
                          IOException
Description copied from interface: Alfresco
Delete comment from node in network

Specified by:
deleteComment in interface Alfresco
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getNodesTags

public AlfrescoList<Tag> getNodesTags(String network,
                                      String node)
                               throws org.codehaus.jackson.JsonParseException,
                                      org.codehaus.jackson.map.JsonMappingException,
                                      IOException
Description copied from interface: Alfresco
Get tags on node in network

Specified by:
getNodesTags in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getNodesTags

public AlfrescoList<Tag> getNodesTags(String network,
                                      String node,
                                      Map<String,String> parameters)
                               throws org.codehaus.jackson.JsonParseException,
                                      org.codehaus.jackson.map.JsonMappingException,
                                      IOException
Description copied from interface: Alfresco
Get tags on node in network filtered by parameters

Specified by:
getNodesTags in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

addTagToNode

public Tag addTagToNode(String network,
                        String node,
                        String tag)
                 throws org.codehaus.jackson.JsonParseException,
                        org.codehaus.jackson.map.JsonMappingException,
                        IOException
Description copied from interface: Alfresco
Add tag to node in network

Specified by:
addTagToNode in interface Alfresco
tag - - tag name
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

addTagsToNode

public AlfrescoList<Tag> addTagsToNode(String network,
                                       String node,
                                       List<String> tags)
                                throws org.codehaus.jackson.JsonParseException,
                                       org.codehaus.jackson.map.JsonMappingException,
                                       IOException
Description copied from interface: Alfresco
Add multiple tags to node

Specified by:
addTagsToNode in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

removeTagFromNode

public void removeTagFromNode(String network,
                              String node,
                              String tagId)
                       throws org.codehaus.jackson.JsonParseException,
                              org.codehaus.jackson.map.JsonMappingException,
                              IOException
Description copied from interface: Alfresco
Remove Tag from node in network

Specified by:
removeTagFromNode in interface Alfresco
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getNodeRatings

public AlfrescoList<Rating> getNodeRatings(String network,
                                           String node)
                                    throws org.codehaus.jackson.JsonParseException,
                                           org.codehaus.jackson.map.JsonMappingException,
                                           IOException
Description copied from interface: Alfresco
Get ratings for node in network

Specified by:
getNodeRatings in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getNodeRatings

public AlfrescoList<Rating> getNodeRatings(String network,
                                           String node,
                                           Map<String,String> parameters)
                                    throws org.codehaus.jackson.JsonParseException,
                                           org.codehaus.jackson.map.JsonMappingException,
                                           IOException
Description copied from interface: Alfresco
Get ratings for node in network filtered by parameters

Specified by:
getNodeRatings in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getNodeRating

public Rating getNodeRating(String network,
                            String node,
                            String rating)
                     throws org.codehaus.jackson.JsonParseException,
                            org.codehaus.jackson.map.JsonMappingException,
                            IOException
Description copied from interface: Alfresco
Get rating for node in network

Specified by:
getNodeRating in interface Alfresco
rating - - Rating must be of type Rating.STARS or Rating.LIKES
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

removeNodeRating

public void removeNodeRating(String network,
                             String node,
                             String ratingId)
                      throws org.codehaus.jackson.JsonParseException,
                             org.codehaus.jackson.map.JsonMappingException,
                             IOException
Description copied from interface: Alfresco
Remove rating from node in network

Specified by:
removeNodeRating in interface Alfresco
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

rateNode

public Rating rateNode(String network,
                       String node,
                       boolean like)
                throws org.codehaus.jackson.JsonParseException,
                       org.codehaus.jackson.map.JsonMappingException,
                       IOException
Description copied from interface: Alfresco
Like node

Specified by:
rateNode in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

rateNode

public Rating rateNode(String network,
                       String node,
                       int stars)
                throws org.codehaus.jackson.JsonParseException,
                       org.codehaus.jackson.map.JsonMappingException,
                       IOException
Description copied from interface: Alfresco
Rate node (Stars)

Specified by:
rateNode in interface Alfresco
stars - - must be 1 - 5 stars
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getHomeNetwork

public Network getHomeNetwork()
                       throws org.codehaus.jackson.JsonParseException,
                              org.codehaus.jackson.map.JsonMappingException,
                              IOException
Description copied from interface: Alfresco
Get home network for user

Specified by:
getHomeNetwork in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

getCurrentUser

public Person getCurrentUser()
                      throws org.codehaus.jackson.JsonParseException,
                             org.codehaus.jackson.map.JsonMappingException,
                             IOException
Description copied from interface: Alfresco
Get the current users profile

Specified by:
getCurrentUser in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

networkOptions

@Deprecated
public AlfrescoList<Metadata> networkOptions(String network)
                                      throws org.codehaus.jackson.JsonParseException,
                                             org.codehaus.jackson.map.JsonMappingException,
                                             IOException
Deprecated. 

Not Implemented yet

Specified by:
networkOptions in interface Alfresco
Returns:
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

createCMISSession

protected org.apache.chemistry.opencmis.client.api.Session createCMISSession(String networkId)
Parameters:
networkId -
Returns:

getCMISNetworks

protected List<org.apache.chemistry.opencmis.client.api.Repository> getCMISNetworks()
Returns:


Copyright © 2012 Alfresco Software Inc.. All Rights Reserved.