[Carbon-dev] svn commit r42987 - in trunk/carbon-components/dashboard/org.wso2.carbon.dashboard.mgt.gadgetrepo.ui/src/main: java/org/wso2/carbon/dashboard/mgt/gadgetrepo/ui resources resources/web/gadgetrepo
nuwan at wso2.com
nuwan at wso2.com
Mon Aug 10 05:44:15 PDT 2009
Author: nuwan
Date: Mon Aug 10 05:44:15 2009
New Revision: 42987
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=42987
Log:
add external gadgets restricted in the repo bundle
Modified:
trunk/carbon-components/dashboard/org.wso2.carbon.dashboard.mgt.gadgetrepo.ui/src/main/java/org/wso2/carbon/dashboard/mgt/gadgetrepo/ui/GadgetRepoServiceClient.java
trunk/carbon-components/dashboard/org.wso2.carbon.dashboard.mgt.gadgetrepo.ui/src/main/resources/GadgetRepoService.wsdl
trunk/carbon-components/dashboard/org.wso2.carbon.dashboard.mgt.gadgetrepo.ui/src/main/resources/web/gadgetrepo/gadget-browser.jsp
Modified: trunk/carbon-components/dashboard/org.wso2.carbon.dashboard.mgt.gadgetrepo.ui/src/main/java/org/wso2/carbon/dashboard/mgt/gadgetrepo/ui/GadgetRepoServiceClient.java
URL: http://wso2.org/svn/browse/wso2/trunk/carbon-components/dashboard/org.wso2.carbon.dashboard.mgt.gadgetrepo.ui/src/main/java/org/wso2/carbon/dashboard/mgt/gadgetrepo/ui/GadgetRepoServiceClient.java?rev=42987&r1=42986&r2=42987&view=diff
==============================================================================
--- trunk/carbon-components/dashboard/org.wso2.carbon.dashboard.mgt.gadgetrepo.ui/src/main/java/org/wso2/carbon/dashboard/mgt/gadgetrepo/ui/GadgetRepoServiceClient.java (original)
+++ trunk/carbon-components/dashboard/org.wso2.carbon.dashboard.mgt.gadgetrepo.ui/src/main/java/org/wso2/carbon/dashboard/mgt/gadgetrepo/ui/GadgetRepoServiceClient.java Mon Aug 10 05:44:15 2009
@@ -283,4 +283,14 @@
return null;
}
}
+
+ public Boolean isExternalGadgetAdditionEnabled() {
+ try {
+ return stub.isExternalGadgetAdditionEnabled();
+ } catch (Exception e) {
+ log.error(e);
+ }
+
+ return false;
+ }
}
Modified: trunk/carbon-components/dashboard/org.wso2.carbon.dashboard.mgt.gadgetrepo.ui/src/main/resources/GadgetRepoService.wsdl
URL: http://wso2.org/svn/browse/wso2/trunk/carbon-components/dashboard/org.wso2.carbon.dashboard.mgt.gadgetrepo.ui/src/main/resources/GadgetRepoService.wsdl?rev=42987&r1=42986&r2=42987&view=diff
==============================================================================
--- trunk/carbon-components/dashboard/org.wso2.carbon.dashboard.mgt.gadgetrepo.ui/src/main/resources/GadgetRepoService.wsdl (original)
+++ trunk/carbon-components/dashboard/org.wso2.carbon.dashboard.mgt.gadgetrepo.ui/src/main/resources/GadgetRepoService.wsdl Mon Aug 10 05:44:15 2009
@@ -93,14 +93,22 @@
</xs:sequence>
</xs:complexType>
</xs:element>
+ <xs:element name="isExternalGadgetAdditionEnabledResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="return" type="xs:boolean" />
+
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
<xs:element name="isAdmin">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="userId" nillable="true"
type="xs:string" />
-
</xs:sequence>
</xs:complexType>
+
</xs:element>
<xs:element name="isAdminResponse">
<xs:complexType>
@@ -108,9 +116,9 @@
<xs:element minOccurs="0" name="return" type="xs:boolean" />
</xs:sequence>
</xs:complexType>
-
</xs:element>
<xs:element name="incrementUserCount">
+
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="gadgetPath" nillable="true"
@@ -119,9 +127,9 @@
</xs:complexType>
</xs:element>
<xs:element name="incrementUserCountResponse">
-
<xs:complexType>
<xs:sequence>
+
<xs:element minOccurs="0" name="return" type="xs:boolean" />
</xs:sequence>
</xs:complexType>
@@ -129,11 +137,11 @@
<xs:element name="getUserRating">
<xs:complexType>
<xs:sequence>
-
<xs:element minOccurs="0" name="gadgetPath" nillable="true"
type="xs:string" />
<xs:element minOccurs="0" name="userId" nillable="true"
type="xs:string" />
+
</xs:sequence>
</xs:complexType>
</xs:element>
@@ -142,9 +150,9 @@
<xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true"
type="xs:string" />
-
</xs:sequence>
</xs:complexType>
+
</xs:element>
<xs:element name="getGadgetDataResponse">
<xs:complexType>
@@ -153,9 +161,9 @@
nillable="true" type="ax269:Gadget" />
</xs:sequence>
</xs:complexType>
-
</xs:element>
<xs:element name="getGadget">
+
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="gadgetPath" nillable="true"
@@ -164,9 +172,9 @@
</xs:complexType>
</xs:element>
<xs:element name="getGadgetResponse">
-
<xs:complexType>
<xs:sequence>
+
<xs:element minOccurs="0" name="return" nillable="true"
type="ax269:Gadget" />
</xs:sequence>
@@ -175,10 +183,10 @@
<xs:element name="deleteGadget">
<xs:complexType>
<xs:sequence>
-
<xs:element minOccurs="0" name="gadgetPath" nillable="true"
type="xs:string" />
</xs:sequence>
+
</xs:complexType>
</xs:element>
<xs:element name="deleteGadgetResponse">
@@ -186,9 +194,9 @@
<xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean" />
</xs:sequence>
-
</xs:complexType>
</xs:element>
+
<xs:element name="deleteComment">
<xs:complexType>
<xs:sequence>
@@ -197,9 +205,9 @@
</xs:sequence>
</xs:complexType>
</xs:element>
-
<xs:element name="deleteCommentResponse">
<xs:complexType>
+
<xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean" />
</xs:sequence>
@@ -207,10 +215,10 @@
</xs:element>
<xs:element name="addRatingForGadget">
<xs:complexType>
-
<xs:sequence>
<xs:element minOccurs="0" name="gadgetPath" nillable="true"
type="xs:string" />
+
<xs:element minOccurs="0" name="rating" type="xs:int" />
</xs:sequence>
</xs:complexType>
@@ -218,9 +226,9 @@
<xs:element name="addRatingForGadgetResponse">
<xs:complexType>
<xs:sequence>
-
<xs:element minOccurs="0" name="return" type="xs:boolean" />
</xs:sequence>
+
</xs:complexType>
</xs:element>
<xs:element name="addGadgetToRepo">
@@ -230,11 +238,11 @@
type="xs:string" />
<xs:element minOccurs="0" name="gUrl" nillable="true"
type="xs:string" />
-
<xs:element minOccurs="0" name="gDesc" nillable="true"
type="xs:string" />
<xs:element minOccurs="0" name="gScreen" nillable="true"
type="xs:string" />
+
</xs:sequence>
</xs:complexType>
</xs:element>
@@ -242,9 +250,9 @@
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean" />
-
</xs:sequence>
</xs:complexType>
+
</xs:element>
<xs:element name="addGadget">
<xs:complexType>
@@ -255,10 +263,10 @@
type="xs:string" />
<xs:element minOccurs="0" name="url" nillable="true"
type="xs:string" />
-
<xs:element minOccurs="0" name="dashboardName"
nillable="true" type="xs:string" />
</xs:sequence>
+
</xs:complexType>
</xs:element>
<xs:element name="addGadgetResponse">
@@ -266,9 +274,9 @@
<xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean" />
</xs:sequence>
-
</xs:complexType>
</xs:element>
+
<xs:element name="addCommentForGadget">
<xs:complexType>
<xs:sequence>
@@ -278,9 +286,9 @@
type="ax269:Comment" />
</xs:sequence>
</xs:complexType>
-
</xs:element>
<xs:element name="addCommentForGadgetResponse">
+
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:boolean" />
@@ -288,9 +296,9 @@
</xs:complexType>
</xs:element>
</xs:schema>
-
</wsdl:types>
<wsdl:message name="isAdminRequest">
+
<wsdl:part name="parameters" element="ns:isAdmin" />
</wsdl:message>
<wsdl:message name="isAdminResponse">
@@ -298,9 +306,9 @@
</wsdl:message>
<wsdl:message name="addRatingForGadgetRequest">
<wsdl:part name="parameters" element="ns:addRatingForGadget" />
-
</wsdl:message>
<wsdl:message name="addRatingForGadgetResponse">
+
<wsdl:part name="parameters" element="ns:addRatingForGadgetResponse" />
</wsdl:message>
<wsdl:message name="isReadOnlyModeRequest">
@@ -308,9 +316,9 @@
</wsdl:message>
<wsdl:message name="isReadOnlyModeResponse">
<wsdl:part name="parameters" element="ns:isReadOnlyModeResponse" />
-
</wsdl:message>
<wsdl:message name="addGadgetToRepoRequest">
+
<wsdl:part name="parameters" element="ns:addGadgetToRepo" />
</wsdl:message>
<wsdl:message name="addGadgetToRepoResponse">
@@ -318,9 +326,9 @@
</wsdl:message>
<wsdl:message name="getGadgetRequest">
<wsdl:part name="parameters" element="ns:getGadget" />
-
</wsdl:message>
<wsdl:message name="getGadgetResponse">
+
<wsdl:part name="parameters" element="ns:getGadgetResponse" />
</wsdl:message>
<wsdl:message name="addCommentForGadgetRequest">
@@ -328,7 +336,11 @@
</wsdl:message>
<wsdl:message name="addCommentForGadgetResponse">
<wsdl:part name="parameters" element="ns:addCommentForGadgetResponse" />
+ </wsdl:message>
+ <wsdl:message name="isExternalGadgetAdditionEnabledRequest" />
+ <wsdl:message name="isExternalGadgetAdditionEnabledResponse">
+ <wsdl:part name="parameters" element="ns:isExternalGadgetAdditionEnabledResponse" />
</wsdl:message>
<wsdl:message name="addGadgetRequest">
<wsdl:part name="parameters" element="ns:addGadget" />
@@ -336,9 +348,9 @@
<wsdl:message name="addGadgetResponse">
<wsdl:part name="parameters" element="ns:addGadgetResponse" />
</wsdl:message>
+
<wsdl:message name="modifyGadgetRequest">
<wsdl:part name="parameters" element="ns:modifyGadget" />
-
</wsdl:message>
<wsdl:message name="modifyGadgetResponse">
<wsdl:part name="parameters" element="ns:modifyGadgetResponse" />
@@ -346,9 +358,9 @@
<wsdl:message name="getGadgetDataRequest" />
<wsdl:message name="getGadgetDataResponse">
<wsdl:part name="parameters" element="ns:getGadgetDataResponse" />
+
</wsdl:message>
<wsdl:message name="deleteGadgetRequest">
-
<wsdl:part name="parameters" element="ns:deleteGadget" />
</wsdl:message>
<wsdl:message name="deleteGadgetResponse">
@@ -356,9 +368,9 @@
</wsdl:message>
<wsdl:message name="getUserRatingRequest">
<wsdl:part name="parameters" element="ns:getUserRating" />
+
</wsdl:message>
<wsdl:message name="getUserRatingResponse">
-
<wsdl:part name="parameters" element="ns:getUserRatingResponse" />
</wsdl:message>
<wsdl:message name="incrementUserCountRequest">
@@ -366,9 +378,9 @@
</wsdl:message>
<wsdl:message name="incrementUserCountResponse">
<wsdl:part name="parameters" element="ns:incrementUserCountResponse" />
+
</wsdl:message>
<wsdl:message name="deleteCommentRequest">
-
<wsdl:part name="parameters" element="ns:deleteComment" />
</wsdl:message>
<wsdl:message name="deleteCommentResponse">
@@ -376,9 +388,9 @@
</wsdl:message>
<wsdl:portType name="GadgetRepoServicePortType">
<wsdl:operation name="isAdmin">
+
<wsdl:input message="axis2:isAdminRequest" wsaw:Action="urn:isAdmin" />
<wsdl:output message="axis2:isAdminResponse" wsaw:Action="urn:isAdminResponse" />
-
</wsdl:operation>
<wsdl:operation name="addRatingForGadget">
<wsdl:input message="axis2:addRatingForGadgetRequest"
@@ -389,10 +401,10 @@
<wsdl:operation name="isReadOnlyMode">
<wsdl:input message="axis2:isReadOnlyModeRequest"
wsaw:Action="urn:isReadOnlyMode" />
+
<wsdl:output message="axis2:isReadOnlyModeResponse"
wsaw:Action="urn:isReadOnlyModeResponse" />
</wsdl:operation>
-
<wsdl:operation name="addGadgetToRepo">
<wsdl:input message="axis2:addGadgetToRepoRequest"
wsaw:Action="urn:addGadgetToRepo" />
@@ -403,14 +415,21 @@
<wsdl:input message="axis2:getGadgetRequest" wsaw:Action="urn:getGadget" />
<wsdl:output message="axis2:getGadgetResponse"
wsaw:Action="urn:getGadgetResponse" />
+
</wsdl:operation>
<wsdl:operation name="addCommentForGadget">
-
<wsdl:input message="axis2:addCommentForGadgetRequest"
wsaw:Action="urn:addCommentForGadget" />
<wsdl:output message="axis2:addCommentForGadgetResponse"
wsaw:Action="urn:addCommentForGadgetResponse" />
</wsdl:operation>
+ <wsdl:operation name="isExternalGadgetAdditionEnabled">
+ <wsdl:input message="axis2:isExternalGadgetAdditionEnabledRequest"
+ wsaw:Action="urn:isExternalGadgetAdditionEnabled" />
+ <wsdl:output message="axis2:isExternalGadgetAdditionEnabledResponse"
+ wsaw:Action="urn:isExternalGadgetAdditionEnabledResponse" />
+ </wsdl:operation>
+
<wsdl:operation name="addGadget">
<wsdl:input message="axis2:addGadgetRequest" wsaw:Action="urn:addGadget" />
<wsdl:output message="axis2:addGadgetResponse"
@@ -419,11 +438,11 @@
<wsdl:operation name="modifyGadget">
<wsdl:input message="axis2:modifyGadgetRequest"
wsaw:Action="urn:modifyGadget" />
-
<wsdl:output message="axis2:modifyGadgetResponse"
wsaw:Action="urn:modifyGadgetResponse" />
</wsdl:operation>
<wsdl:operation name="getGadgetData">
+
<wsdl:input message="axis2:getGadgetDataRequest"
wsaw:Action="urn:getGadgetData" />
<wsdl:output message="axis2:getGadgetDataResponse"
@@ -434,11 +453,11 @@
wsaw:Action="urn:deleteGadget" />
<wsdl:output message="axis2:deleteGadgetResponse"
wsaw:Action="urn:deleteGadgetResponse" />
-
</wsdl:operation>
<wsdl:operation name="getUserRating">
<wsdl:input message="axis2:getUserRatingRequest"
wsaw:Action="urn:getUserRating" />
+
<wsdl:output message="axis2:getUserRatingResponse"
wsaw:Action="urn:getUserRatingResponse" />
</wsdl:operation>
@@ -448,12 +467,12 @@
<wsdl:output message="axis2:incrementUserCountResponse"
wsaw:Action="urn:incrementUserCountResponse" />
</wsdl:operation>
-
<wsdl:operation name="deleteComment">
<wsdl:input message="axis2:deleteCommentRequest"
wsaw:Action="urn:deleteComment" />
<wsdl:output message="axis2:deleteCommentResponse"
wsaw:Action="urn:deleteCommentResponse" />
+
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="GadgetRepoServiceSoap11Binding" type="axis2:GadgetRepoServicePortType">
@@ -461,20 +480,20 @@
style="document" />
<wsdl:operation name="isAdmin">
<soap:operation soapAction="urn:isAdmin" style="document" />
-
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
+
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="isReadOnlyMode">
<soap:operation soapAction="urn:isReadOnlyMode" style="document" />
-
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
+
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
@@ -482,20 +501,20 @@
<wsdl:operation name="addRatingForGadget">
<soap:operation soapAction="urn:addRatingForGadget"
style="document" />
-
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
+
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getGadget">
<soap:operation soapAction="urn:getGadget" style="document" />
-
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
+
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
@@ -503,10 +522,21 @@
<wsdl:operation name="addGadgetToRepo">
<soap:operation soapAction="urn:addGadgetToRepo"
style="document" />
+ <wsdl:input>
+ <soap:body use="literal" />
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal" />
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="isExternalGadgetAdditionEnabled">
+ <soap:operation soapAction="urn:isExternalGadgetAdditionEnabled"
+ style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
+
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
@@ -514,70 +544,70 @@
<wsdl:operation name="addCommentForGadget">
<soap:operation soapAction="urn:addCommentForGadget"
style="document" />
-
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
+
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="addGadget">
<soap:operation soapAction="urn:addGadget" style="document" />
-
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
+
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="modifyGadget">
<soap:operation soapAction="urn:modifyGadget" style="document" />
-
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
+
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getGadgetData">
<soap:operation soapAction="urn:getGadgetData" style="document" />
-
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
+
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="deleteGadget">
<soap:operation soapAction="urn:deleteGadget" style="document" />
-
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
+
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getUserRating">
<soap:operation soapAction="urn:getUserRating" style="document" />
-
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
+
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="deleteComment">
<soap:operation soapAction="urn:deleteComment" style="document" />
-
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
+
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
@@ -585,291 +615,312 @@
<wsdl:operation name="incrementUserCount">
<soap:operation soapAction="urn:incrementUserCount"
style="document" />
-
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
+
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="GadgetRepoServiceSoap12Binding" type="axis2:GadgetRepoServicePortType">
-
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
<wsdl:operation name="isAdmin">
<soap12:operation soapAction="urn:isAdmin" style="document" />
+
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
-
</wsdl:operation>
<wsdl:operation name="isReadOnlyMode">
<soap12:operation soapAction="urn:isReadOnlyMode"
style="document" />
+
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
-
</wsdl:operation>
<wsdl:operation name="addRatingForGadget">
<soap12:operation soapAction="urn:addRatingForGadget"
style="document" />
+
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
-
</wsdl:operation>
<wsdl:operation name="getGadget">
<soap12:operation soapAction="urn:getGadget" style="document" />
+
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
-
</wsdl:operation>
<wsdl:operation name="addGadgetToRepo">
<soap12:operation soapAction="urn:addGadgetToRepo"
style="document" />
+
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="isExternalGadgetAdditionEnabled">
+ <soap12:operation soapAction="urn:isExternalGadgetAdditionEnabled"
+ style="document" />
+ <wsdl:input>
+ <soap12:body use="literal" />
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal" />
+ </wsdl:output>
</wsdl:operation>
<wsdl:operation name="addCommentForGadget">
<soap12:operation soapAction="urn:addCommentForGadget"
style="document" />
+
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
-
</wsdl:operation>
<wsdl:operation name="addGadget">
<soap12:operation soapAction="urn:addGadget" style="document" />
+
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
-
</wsdl:operation>
<wsdl:operation name="modifyGadget">
<soap12:operation soapAction="urn:modifyGadget"
style="document" />
+
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
-
</wsdl:operation>
<wsdl:operation name="getGadgetData">
<soap12:operation soapAction="urn:getGadgetData"
style="document" />
+
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
-
</wsdl:operation>
<wsdl:operation name="deleteGadget">
<soap12:operation soapAction="urn:deleteGadget"
style="document" />
+
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
-
</wsdl:operation>
<wsdl:operation name="getUserRating">
<soap12:operation soapAction="urn:getUserRating"
style="document" />
+
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
-
</wsdl:operation>
<wsdl:operation name="deleteComment">
<soap12:operation soapAction="urn:deleteComment"
style="document" />
+
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
-
</wsdl:operation>
<wsdl:operation name="incrementUserCount">
<soap12:operation soapAction="urn:incrementUserCount"
style="document" />
+
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
-
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="GadgetRepoServiceHttpBinding" type="axis2:GadgetRepoServicePortType">
+
<http:binding verb="POST" />
<wsdl:operation name="isAdmin">
<http:operation location="isAdmin" />
<wsdl:input>
<mime:content type="text/xml" part="isAdmin" />
</wsdl:input>
-
<wsdl:output>
<mime:content type="text/xml" part="isAdmin" />
</wsdl:output>
+
</wsdl:operation>
<wsdl:operation name="isReadOnlyMode">
<http:operation location="isReadOnlyMode" />
<wsdl:input>
<mime:content type="text/xml" part="isReadOnlyMode" />
</wsdl:input>
-
<wsdl:output>
<mime:content type="text/xml" part="isReadOnlyMode" />
</wsdl:output>
+
</wsdl:operation>
<wsdl:operation name="addRatingForGadget">
<http:operation location="addRatingForGadget" />
<wsdl:input>
<mime:content type="text/xml" part="addRatingForGadget" />
</wsdl:input>
-
<wsdl:output>
<mime:content type="text/xml" part="addRatingForGadget" />
</wsdl:output>
+
</wsdl:operation>
<wsdl:operation name="getGadget">
<http:operation location="getGadget" />
<wsdl:input>
<mime:content type="text/xml" part="getGadget" />
</wsdl:input>
-
<wsdl:output>
<mime:content type="text/xml" part="getGadget" />
</wsdl:output>
+
</wsdl:operation>
<wsdl:operation name="addGadgetToRepo">
<http:operation location="addGadgetToRepo" />
<wsdl:input>
<mime:content type="text/xml" part="addGadgetToRepo" />
</wsdl:input>
-
<wsdl:output>
<mime:content type="text/xml" part="addGadgetToRepo" />
</wsdl:output>
+
+ </wsdl:operation>
+ <wsdl:operation name="isExternalGadgetAdditionEnabled">
+ <http:operation location="isExternalGadgetAdditionEnabled" />
+ <wsdl:input>
+ <mime:content type="text/xml" part="isExternalGadgetAdditionEnabled" />
+ </wsdl:input>
+ <wsdl:output>
+ <mime:content type="text/xml" part="isExternalGadgetAdditionEnabled" />
+ </wsdl:output>
+
</wsdl:operation>
<wsdl:operation name="addCommentForGadget">
<http:operation location="addCommentForGadget" />
<wsdl:input>
<mime:content type="text/xml" part="addCommentForGadget" />
</wsdl:input>
-
<wsdl:output>
<mime:content type="text/xml" part="addCommentForGadget" />
</wsdl:output>
+
</wsdl:operation>
<wsdl:operation name="addGadget">
<http:operation location="addGadget" />
<wsdl:input>
<mime:content type="text/xml" part="addGadget" />
</wsdl:input>
-
<wsdl:output>
<mime:content type="text/xml" part="addGadget" />
</wsdl:output>
+
</wsdl:operation>
<wsdl:operation name="modifyGadget">
<http:operation location="modifyGadget" />
<wsdl:input>
<mime:content type="text/xml" part="modifyGadget" />
</wsdl:input>
-
<wsdl:output>
<mime:content type="text/xml" part="modifyGadget" />
</wsdl:output>
+
</wsdl:operation>
<wsdl:operation name="getGadgetData">
<http:operation location="getGadgetData" />
<wsdl:input>
<mime:content type="text/xml" part="getGadgetData" />
</wsdl:input>
-
<wsdl:output>
<mime:content type="text/xml" part="getGadgetData" />
</wsdl:output>
+
</wsdl:operation>
<wsdl:operation name="deleteGadget">
<http:operation location="deleteGadget" />
<wsdl:input>
<mime:content type="text/xml" part="deleteGadget" />
</wsdl:input>
-
<wsdl:output>
<mime:content type="text/xml" part="deleteGadget" />
</wsdl:output>
+
</wsdl:operation>
<wsdl:operation name="getUserRating">
<http:operation location="getUserRating" />
<wsdl:input>
<mime:content type="text/xml" part="getUserRating" />
</wsdl:input>
-
<wsdl:output>
<mime:content type="text/xml" part="getUserRating" />
</wsdl:output>
+
</wsdl:operation>
<wsdl:operation name="deleteComment">
<http:operation location="deleteComment" />
<wsdl:input>
<mime:content type="text/xml" part="deleteComment" />
</wsdl:input>
-
<wsdl:output>
<mime:content type="text/xml" part="deleteComment" />
</wsdl:output>
+
</wsdl:operation>
<wsdl:operation name="incrementUserCount">
<http:operation location="incrementUserCount" />
<wsdl:input>
<mime:content type="text/xml" part="incrementUserCount" />
</wsdl:input>
-
<wsdl:output>
<mime:content type="text/xml" part="incrementUserCount" />
</wsdl:output>
+
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="GadgetRepoService">
@@ -878,12 +929,12 @@
<soap:address
location="https://10.100.1.133:9443/services/GadgetRepoService.GadgetRepoServiceHttpsSoap11Endpoint/" />
</wsdl:port>
-
<wsdl:port name="GadgetRepoServiceHttpSoap11Endpoint"
binding="axis2:GadgetRepoServiceSoap11Binding">
<soap:address
location="http://10.100.1.133:9763/services/GadgetRepoService.GadgetRepoServiceHttpSoap11Endpoint/" />
</wsdl:port>
+
<wsdl:port name="GadgetRepoServiceHttpsSoap12Endpoint"
binding="axis2:GadgetRepoServiceSoap12Binding">
<soap12:address
@@ -894,11 +945,11 @@
<soap12:address
location="http://10.100.1.133:9763/services/GadgetRepoService.GadgetRepoServiceHttpSoap12Endpoint/" />
</wsdl:port>
-
<wsdl:port name="GadgetRepoServiceHttpEndpoint" binding="axis2:GadgetRepoServiceHttpBinding">
<http:address
location="http://10.100.1.133:9763/services/GadgetRepoService.GadgetRepoServiceHttpEndpoint/" />
</wsdl:port>
+
<wsdl:port name="GadgetRepoServiceHttpsEndpoint" binding="axis2:GadgetRepoServiceHttpBinding">
<http:address
location="https://10.100.1.133:9443/services/GadgetRepoService.GadgetRepoServiceHttpsEndpoint/" />
Modified: trunk/carbon-components/dashboard/org.wso2.carbon.dashboard.mgt.gadgetrepo.ui/src/main/resources/web/gadgetrepo/gadget-browser.jsp
URL: http://wso2.org/svn/browse/wso2/trunk/carbon-components/dashboard/org.wso2.carbon.dashboard.mgt.gadgetrepo.ui/src/main/resources/web/gadgetrepo/gadget-browser.jsp?rev=42987&r1=42986&r2=42987&view=diff
==============================================================================
--- trunk/carbon-components/dashboard/org.wso2.carbon.dashboard.mgt.gadgetrepo.ui/src/main/resources/web/gadgetrepo/gadget-browser.jsp (original)
+++ trunk/carbon-components/dashboard/org.wso2.carbon.dashboard.mgt.gadgetrepo.ui/src/main/resources/web/gadgetrepo/gadget-browser.jsp Mon Aug 10 05:44:15 2009
@@ -158,38 +158,47 @@
</td>
</tr>
- <tr>
- <td>
- <table class="styledLeft">
- <thead>
- <tr>
- <th><fmt:message key="enter.gadget.location" /></th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td class="formRow">
- <table class="normal">
- <tbody>
- <tr>
- <td><label><fmt:message key="enter.url" /></label></td>
- <td><input type="text" size="50" name="gadgetUrl"
- id="gadgetUrl" /></td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- <tr>
- <td class="buttonRow"><input type="button"
- onclick="addGadget()"
- value="<fmt:message key="add.gadget.button"/>" class="button"
- id="addGadget" /></td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
+ <%
+ if (gadgetRepoServiceClient.isExternalGadgetAdditionEnabled()) {
+ %>
+ <tr><td>
+ <table class="styledLeft">
+ <thead>
+ <tr>
+ <th><fmt:message key="enter.gadget.location"/></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td class="formRow">
+ <table class="normal">
+ <tbody>
+ <tr>
+ <td>
+ <label><fmt:message key="enter.url"/></label>
+ </td>
+ <td>
+ <input type="text" size="50" name="gadgetUrl"
+ id="gadgetUrl"/>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td class="buttonRow">
+ <input type="button" onclick="addGadget()"
+ value="<fmt:message key="add.gadget.button"/>"
+ class="button" id="addGadget"/>
+ </td>
+ </tr>
+ </tbody>
+ </table></td>
+ </tr>
+ <%
+ }
+ %>
<tr>
<td>
More information about the Carbon-dev
mailing list