diff --git a/.travis.yml b/.travis.yml index ceb5594262..3fbd5db947 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/sdk/com.ibm.sbt.core/src/main/java/com/ibm/sbt/services/client/connections/communities/WidgetCommunityService.java b/sdk/com.ibm.sbt.core/src/main/java/com/ibm/sbt/services/client/connections/communities/WidgetCommunityService.java index f96d677632..590a1d5085 100644 --- a/sdk/com.ibm.sbt.core/src/main/java/com/ibm/sbt/services/client/connections/communities/WidgetCommunityService.java +++ b/sdk/com.ibm.sbt.core/src/main/java/com/ibm/sbt/services/client/connections/communities/WidgetCommunityService.java @@ -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; /** @@ -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 *

@@ -194,7 +240,7 @@ public Widget createCommunityWidget(Community community, WidgetDefId widgetDefId EntityList widgetList = getCommunityWidgets(community.getCommunityUuid(), widgetDefId); if (null != widgetList && widgetList.size() > 0) { communityWidget = widgetList.get(0); - // TODO Check if an EntityList entry is complete (or if fields are missing). CommunityList does NOT contain all entry data! + // TODO Check if an EntityList entry is complete (or if fields are missing). EntityList does NOT contain all entry data! } return communityWidget;