1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-25 06:03:36 +03:00

Feature #1304: Remove extra Document type arguments from Java OCA

This commit is contained in:
Carlos Martín 2012-06-19 12:01:57 +02:00
parent 718030e5f7
commit f607d0ea74
2 changed files with 5 additions and 6 deletions

View File

@ -185,8 +185,7 @@ class DocumentChown : public RequestManagerChown
public: public:
DocumentChown(): DocumentChown():
RequestManagerChown("DocumentChown", RequestManagerChown("DocumentChown",
"Changes ownership of a generic document", "Changes ownership of a generic document")
"A:siiii")
{ {
Nebula& nd = Nebula::instance(); Nebula& nd = Nebula::instance();
pool = nd.get_docpool(); pool = nd.get_docpool();

View File

@ -116,7 +116,7 @@ public abstract class Document extends PoolElement
*/ */
public OneResponse info() public OneResponse info()
{ {
return client.call(INFO, id, type()); return client.call(INFO, id);
} }
/** /**
@ -126,7 +126,7 @@ public abstract class Document extends PoolElement
*/ */
public OneResponse delete() public OneResponse delete()
{ {
return client.call(DELETE, id, type()); return client.call(DELETE, id);
} }
/** /**
@ -137,7 +137,7 @@ public abstract class Document extends PoolElement
*/ */
public OneResponse update(String new_document) public OneResponse update(String new_document)
{ {
return client.call(UPDATE, id, new_document, type()); return client.call(UPDATE, id, new_document);
} }
/** /**
@ -162,7 +162,7 @@ public abstract class Document extends PoolElement
*/ */
public OneResponse chown(int uid, int gid) public OneResponse chown(int uid, int gid)
{ {
return client.call(CHOWN, id, uid, gid, type()); return client.call(CHOWN, id, uid, gid);
} }
/** /**