Hi,
I want to create a plugin which adds some additional properties associated to a social group.
As I see it, I have two choices:
Create my own schema storing the social group object id and the information, or to use extended properties for the social group.
Either way, I need to provide the following data via a view to an external system:
Social Group Name, Social Group URL, Data
or something silmilar.
Is there a way of specifying a view in the plugins schema.xml?
If not, I'll just create by other means, so I guess it's no big deal, but it would be advantageous to have the plugin self contained for future maintenance purposes.
Thanks and Kind Regards,
Ben.
Hey Ben,
It seems like this would be best suited to extended properties on the social group object itself. All you would need to do is create an extended property for your data and it will live in the jiveSGroupProp table like this:
| Social Group ID | Name | Value |
|---|---|---|
| This will link to your social group (which you can use to get the name and URL) | This will be the name of your data field | This will be the value of your data |
Would this work for what you are trying to achieve?
-Todd
Hey Ben,
Sorry, I'm not too familiar with "views". I'm assuming that this is an Oracle specific mechanism? If you'd like to run some specific SQL with your plugin, this is definitely possible:
In your schema.xml as defined in these docs:
http://www.jivesoftware.com/jivespace/docs/DOC-3439
http://www.jivesoftware.com/jivespace/docs/DOC-3281
Just do something like this
<schema name="Social Group Plugin Schema">
<table name="mySampleTable" description="Sample table to show base schema.xml">
... Your optional table schema goes here
</table>
<sql description="Default Data."><![CDATA[
CREATE OR REPLACE VIEW...
]]>
</sql>
</schema>
I think this is what you are looking for. Hope that helps!
-Todd
Great! No problem.
-Todd
Hi Airman85,
Having analysed the possibilitied here myself, the only way I found was to modify the Create and Edit action classes and related FTL to add an additional field. I used the actions to store the additional value in the extended properties of the social groups.
Manipulating extended properties is possible via the Java APIs for the Social Group class.
Kind Regards,
Ben.
Jive combines collaboration software, community software & social networking software into the leading SBS solution.
© Copyright 2000–2009 Jive Software. All rights reserved.
915 SW Stark St., Suite 400, Portland, OR 97205