Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
language: java
before_install:
- sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g' ~/.m2/settings.xml
install: echo 'Skipping mvn install'
before_script:
- ./test-whitespaces.sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import com.ibm.sbt.services.client.base.util.EntityUtil;
import com.ibm.sbt.services.client.connections.communities.model.CommunityXPath;
import com.ibm.sbt.services.client.connections.communities.util.Messages;
import com.ibm.sbt.services.endpoints.Endpoint;


/**
Expand All @@ -45,6 +46,51 @@ public class WidgetCommunityService extends CommunityService {

public static final String WIDGET_DEF_ID = "widgetDefId";

/**
* Constructor Creates WidgetCommunityService Object with default endpoint and default CacheSize
*/
public WidgetCommunityService() {
super(DEFAULT_ENDPOINT_NAME, DEFAULT_CACHE_SIZE);
}

/**
* Constructor - Creates WidgetCommunityService Object with a specified endpoint and default CacheSize
*
* @param endpoint
*/
public WidgetCommunityService(String endpoint) {
super(endpoint, DEFAULT_CACHE_SIZE);
}

/**
* Constructor - Creates WidgetCommunityService Object with specified endpoint and CacheSize
*
* @param endpoint
* @param cacheSize
*/
public WidgetCommunityService(String endpoint, int cacheSize) {
super(endpoint, cacheSize);
}

/**
* Constructor - Creates WidgetCommunityService Object with a specified endpoint and default CacheSize
*
* @param endpoint
*/
public WidgetCommunityService(Endpoint endpoint) {
super(endpoint, DEFAULT_CACHE_SIZE);
}

/**
* Constructor - Creates WidgetCommunityService Object with specified endpoint and CacheSize
*
* @param endpoint
* @param cacheSize
*/
public WidgetCommunityService(Endpoint endpoint, int cacheSize) {
super(endpoint, cacheSize);
}

/**
* Wrapper method to get a "Widget enabled" Community
* <p>
Expand Down Expand Up @@ -194,7 +240,7 @@ public Widget createCommunityWidget(Community community, WidgetDefId widgetDefId
EntityList<Widget> widgetList = getCommunityWidgets(community.getCommunityUuid(), widgetDefId);
if (null != widgetList && widgetList.size() > 0) {
communityWidget = widgetList.get(0);
// TODO Check if an EntityList<Widget> entry is complete (or if fields are missing). CommunityList does NOT contain all entry data!
// TODO Check if an EntityList<Widget> entry is complete (or if fields are missing). EntityList<Community> does NOT contain all entry data!
}

return communityWidget;
Expand Down