OpenNTF / SocialSDK

IBM Social Business Toolkit SDK
https://developer.ibm.com/social
53 stars 70 forks source link

isExternal is missing from Community Object (Java) #1637

Closed MartinHolland closed 8 years ago

MartinHolland commented 9 years ago

The Connections atom feed for a community contains this..

snx:isExternaltrue/snx:isExternal

indicating if it's available to external users.

This value isn't available from the Community object

MartinHolland commented 9 years ago

ok, not that urgent. have figured out I can get to the property like so.. community.getAsString("./snx:isExternal"))

would be nice to have a dedicated property though :)

zipwiz commented 9 years ago

However nice to read how arbitrary properties may be retrieved, given they are of "plain" nature. Is it possible also to SET them this way? Then all direct get/set access to "plain" property values is nice and typesafe, but merely convenience.

DaviRyan commented 9 years ago

@MartinRolph It would be great if you could add this to the CommunityService class, you would simply add a method called isExternalCommunity and that method would contain this.getAsString(./snx:isExternal), You can take a look at how the rest of the properties are retrieved and match the pattern. This is an open source project and would be great if users can contribute.

prb112 commented 8 years ago

added to Community object, will be in next release