Kanagaraj M has posted comments on this change.
Change subject: restapi: filtering the api according to ApplicationMode
......................................................................
Patch Set 2: (11 inline comments)
....................................................
File
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendApiResource.java
Line 90: super(Guid.Empty.toString(), API.class, Object.class);
getCurrent() is returning null . SessionHelper is not initialized in this place.
Line 264: appMode = getCurrent().get(ApplicationMode.class);
appMode cannot be initialized in the c'tor.
Line 266: if(appMode == ApplicationMode.GlusterOnly)
Done
Line 270: else
Done
Line 279: appMode = getCurrent().get(ApplicationMode.class);
appMode cannot be initialized in the c'tor.
Line 288: response =
addGlusterSummary(addSystemVersion(getGlusterApi()));
addGlusterSummary() has the summary for Gluster Only.
Line 381: if (appMode != ApplicationMode.GlusterOnly) {
Done
....................................................
File
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendClustersResource.java
Line 28: static final String GLUSER_VOLUMES_SUB_COLLECTION =
"glustervolumes";
Done
Line 34: public Clusters list() {
Done
....................................................
File
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendHostsResource.java
Line 34: static final String STORAGE_SUB_COLLECTION = "storage";
Done
Line 41: public Hosts list() {
Done
--
To view, visit http://gerrit.ovirt.org/5353
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1cf9bebe85ebc3e321006bc6e45c8ba08bfca6dd
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Kanagaraj M <[email protected]>
Gerrit-Reviewer: Kanagaraj M <[email protected]>
Gerrit-Reviewer: Michael Pasternak <[email protected]>
Gerrit-Reviewer: Shireesh Anjal <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches