Return to Jive Software

Skip navigation

This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
1,191 Views 1 Replies Last post: Oct 16, 2008 6:12 AM by rickpalmer RSS
santiagovirus Novice 45 posts since
Sep 11, 2008
Currently Being Moderated

Oct 15, 2008 12:58 PM

Organization chart

Hi all, are there any webservice to config the organization chart?

 

Thanks.

ViruX

rickpalmer Jive Employee 284 posts since
Nov 14, 2007
Currently Being Moderated
Oct 16, 2008 6:12 AM in response to: Andy Gonzales del Valle
Re: Organization chart

Not currently, but you could build a web service that exposed that functionality, and deploy it as a plugin.

 

Looking in the admin console screen for managing user relationships (People -- Management -- User Relationships), it's the manage-relationships action that handles user relationships:

 

http://localhost:8080/clearspace_community/admin/manage-relationships.jspa

 

Looking in struts-community-admin.xml, it's the UserRelationshipManagementAction class that handles the backend processing, and manage-relationships.ftl that generates the admin console screen's html.

 

       <action name="manage-relationships"
                class="com.jivesoftware.community.action.admin.UserRelationshipManagementAction">
            <result name="success" type="freemarker">
                /template/global/admin/manage-relationships.ftl
            </result>
        </action>

 

Also, looking at the form in manage-relationships.ftl, the javascript method that calls the manage-relationships action specifies the addRelationship method, which would be a good place to look for exposing a web service

 

        function addRelationship(field){
            field.form.method = "POST";
            field.form.action = "<@s.url action='manage-relationships' method='addRelationship'/>";
            field.form.submit();
        }

More Like This

  • Retrieving data ...

Bookmarked By (0)