Class MarketPlaceApp
java.lang.Object
org.opennebula.client.PoolElement
org.opennebula.client.marketplaceapp.MarketPlaceApp
This class represents an OpenNebula MarketPlaceApp.
It also offers static XML-RPC call wrappers.
-
Field Summary
Fields inherited from class org.opennebula.client.PoolElement
client, id, xml, xpath
-
Constructor Summary
ConstructorsModifierConstructorDescriptionMarketPlaceApp
(int id, Client client) Creates a new MarketPlaceApp representation.protected
MarketPlaceApp
(Node xmlElement, Client client) -
Method Summary
Modifier and TypeMethodDescriptionstatic OneResponse
Allocates a new MarketPlaceApp in OpenNebula.chgrp
(int gid) Changes the groupchmod
(int octet) Changes the permissionschmod
(int owner_u, int owner_m, int owner_a, int group_u, int group_m, int group_a, int other_u, int other_m, int other_a) Changes the MarketPlaceApp permissionsChanges the permissionsstatic OneResponse
Changes the permissionsstatic OneResponse
chmod
(Client client, int id, int owner_u, int owner_m, int owner_a, int group_u, int group_m, int group_a, int other_u, int other_m, int other_a) Changes the MarketPlaceApp permissionsstatic OneResponse
Changes the permissionschown
(int uid) Changes the ownerchown
(int uid, int gid) Changes the owner/groupstatic OneResponse
Changes the owner/groupdelete()
Deletes the MarketPlaceApp from OpenNebula.static OneResponse
Deletes an MarketPlaceApp from OpenNebula.disable()
Disables the MarketPlaceApp.enable()
Enables the MarketPlaceApp.enable
(boolean enable) Enables or disables the MarketPlaceApp.static OneResponse
Enables or disables an MarketPlaceApp.info()
Retrieves the information of the MarketPlaceApp.static OneResponse
Retrieves the information of the given MarketPlaceApp.static OneResponse
Retrieves the information of the given App.boolean
Returns true if the MarketPlaceApp is enabled.lock
(int level) Lock this MarketPlaceAppstatic OneResponse
lock this MarketPlaceAppRenames this MarketPlaceAppstatic OneResponse
Renames this MarketPlaceAppReturns the short length string state of the MarketPlaceApp.Returns the type of the MarketPlaceApp as a short String.Returns the state of the MarketPlaceApp.int
type()
Returns the type of the MarketPlaceApp.typeStr()
Returns the type of the MarketPlaceApp as a String.unlock()
Unlock this MarketPlaceAppstatic OneResponse
Unlock this MarketPlaceAppReplaces the template contents.Replaces the template contents.static OneResponse
Replaces the template contents.
-
Constructor Details
-
MarketPlaceApp
Creates a new MarketPlaceApp representation.- Parameters:
id
- The MarketPlaceApp id.client
- XML-RPC Client.
-
MarketPlaceApp
- See Also:
-
-
Method Details
-
allocate
Allocates a new MarketPlaceApp in OpenNebula.- Parameters:
client
- XML-RPC Client.description
- A string containing the template of the MarketPlaceApp.marketId
- The MarketPlace ID- Returns:
- If successful the message contains the associated id generated for this MarketPlaceApp.
-
info
Retrieves the information of the given MarketPlaceApp.- Parameters:
client
- XML-RPC Client.id
- The MarketPlaceApp id for the MarketPlaceApp to retrieve the information from- Returns:
- If successful the message contains the string with the information returned by OpenNebula.
-
info
Retrieves the information of the given App.- Parameters:
client
- XML-RPC Client.id
- The App id for the App to retrieve the information fromdecrypt
- If true decrypt sensitive attributes- Returns:
- If successful the message contains the string with the information returned by OpenNebula.
-
delete
Deletes an MarketPlaceApp from OpenNebula.- Parameters:
client
- XML-RPC Client.id
- The MarketPlaceApp id of the target MarketPlaceApp we want to delete.- Returns:
- A encapsulated response.
-
update
Replaces the template contents.- Parameters:
client
- XML-RPC Client.id
- The MarketPlaceApp id of the target MarketPlaceApp we want to modify.new_template
- New template contentsappend
- True to append new attributes instead of replace the whole template- Returns:
- If successful the message contains the MarketPlaceApp id.
-
enable
Enables or disables an MarketPlaceApp.- Parameters:
client
- XML-RPC Client.id
- The MarketPlaceApp id of the target MarketPlaceApp we want to modify.enable
- True for enabling, false for disabling.- Returns:
- If successful the message contains the MarketPlaceApp id.
-
chown
Changes the owner/group- Parameters:
client
- XML-RPC Client.id
- The MarketPlaceApp id of the target MarketPlaceApp we want to modify.uid
- The new owner user ID. Set it to -1 to leave the current one.gid
- The new group ID. Set it to -1 to leave the current one.- Returns:
- If an error occurs the error message contains the reason.
-
chmod
public static OneResponse chmod(Client client, int id, int owner_u, int owner_m, int owner_a, int group_u, int group_m, int group_a, int other_u, int other_m, int other_a) Changes the MarketPlaceApp permissions- Parameters:
client
- XML-RPC Client.id
- The MarketPlaceApp id of the target MarketPlaceApp we want to modify.owner_u
- 1 to allow, 0 deny, -1 do not changeowner_m
- 1 to allow, 0 deny, -1 do not changeowner_a
- 1 to allow, 0 deny, -1 do not changegroup_u
- 1 to allow, 0 deny, -1 do not changegroup_m
- 1 to allow, 0 deny, -1 do not changegroup_a
- 1 to allow, 0 deny, -1 do not changeother_u
- 1 to allow, 0 deny, -1 do not changeother_m
- 1 to allow, 0 deny, -1 do not changeother_a
- 1 to allow, 0 deny, -1 do not change- Returns:
- If an error occurs the error message contains the reason.
-
chmod
Changes the permissions- Parameters:
client
- XML-RPC Client.id
- The id of the target object.octet
- Permissions octed , e.g. 640- Returns:
- If an error occurs the error message contains the reason.
-
chmod
Changes the permissions- Parameters:
client
- XML-RPC Client.id
- The id of the target object.octet
- Permissions octed , e.g. 640- Returns:
- If an error occurs the error message contains the reason.
-
rename
Renames this MarketPlaceApp- Parameters:
client
- XML-RPC Client.id
- The MarketPlaceApp id of the target MarketPlaceApp.name
- New name for the MarketPlaceApp.- Returns:
- If an error occurs the error message contains the reason.
-
lock
lock this MarketPlaceApp- Parameters:
client
- XML-RPC Client.id
- The MarketPlaceApp id.level
- Lock level.- Returns:
- If an error occurs the error message contains the reason.
-
unlock
Unlock this MarketPlaceApp- Parameters:
client
- XML-RPC Client.id
- The MarketPlaceApp id.- Returns:
- If an error occurs the error message contains the reason.
-
info
Retrieves the information of the MarketPlaceApp.- Returns:
- If successful the message contains the string with the information returned by OpenNebula.
-
delete
Deletes the MarketPlaceApp from OpenNebula.- Returns:
- A encapsulated response.
-
update
Replaces the template contents.- Parameters:
new_template
- New template contents- Returns:
- If successful the message contains the MarketPlaceApp id.
-
update
Replaces the template contents.- Parameters:
new_template
- New template contentsappend
- True to append new attributes instead of replace the whole template- Returns:
- If successful the message contains the MarketPlaceApp id.
-
enable
Enables or disables the MarketPlaceApp.- Parameters:
enable
- True for enabling, false for disabling.- Returns:
- If successful the message contains the MarketPlaceApp id.
-
enable
Enables the MarketPlaceApp.- Returns:
- If successful the message contains the MarketPlaceApp id.
-
disable
Disables the MarketPlaceApp.- Returns:
- If successful the message contains the MarketPlaceApp id.
-
chown
Changes the owner/group- Parameters:
uid
- The new owner user ID. Set it to -1 to leave the current one.gid
- The new group ID. Set it to -1 to leave the current one.- Returns:
- If an error occurs the error message contains the reason.
-
chown
Changes the owner- Parameters:
uid
- The new owner user ID.- Returns:
- If an error occurs the error message contains the reason.
-
chgrp
Changes the group- Parameters:
gid
- The new group ID.- Returns:
- If an error occurs the error message contains the reason.
-
chmod
public OneResponse chmod(int owner_u, int owner_m, int owner_a, int group_u, int group_m, int group_a, int other_u, int other_m, int other_a) Changes the MarketPlaceApp permissions- Parameters:
owner_u
- 1 to allow, 0 deny, -1 do not changeowner_m
- 1 to allow, 0 deny, -1 do not changeowner_a
- 1 to allow, 0 deny, -1 do not changegroup_u
- 1 to allow, 0 deny, -1 do not changegroup_m
- 1 to allow, 0 deny, -1 do not changegroup_a
- 1 to allow, 0 deny, -1 do not changeother_u
- 1 to allow, 0 deny, -1 do not changeother_m
- 1 to allow, 0 deny, -1 do not changeother_a
- 1 to allow, 0 deny, -1 do not change- Returns:
- If an error occurs the error message contains the reason.
-
chmod
Changes the permissions- Parameters:
octet
- Permissions octed , e.g. 640- Returns:
- If an error occurs the error message contains the reason.
-
chmod
Changes the permissions- Parameters:
octet
- Permissions octed , e.g. 640- Returns:
- If an error occurs the error message contains the reason.
-
rename
Renames this MarketPlaceApp- Parameters:
name
- New name for the MarketPlaceApp.- Returns:
- If an error occurs the error message contains the reason.
-
lock
Lock this MarketPlaceApp- Parameters:
level
- Lock level.- Returns:
- If an error occurs the error message contains the reason.
-
unlock
Unlock this MarketPlaceApp- Returns:
- If an error occurs the error message contains the reason.
-
stateString
Returns the state of the MarketPlaceApp.
The methodinfo()
must be called before.- Returns:
- The state of the MarketPlaceApp.
-
shortStateStr
Returns the short length string state of the MarketPlaceApp.
The methodinfo()
must be called before.- Returns:
- The short length string state of the MarketPlaceApp.
-
type
public int type()Returns the type of the MarketPlaceApp.- Returns:
- The type of the MarketPlaceApp.
-
typeStr
Returns the type of the MarketPlaceApp as a String.- Returns:
- The type of the MarketPlaceApp as a String.
-
shortTypeStr
Returns the type of the MarketPlaceApp as a short String.- Returns:
- The type of the MarketPlaceApp as a short String.
-
isEnabled
public boolean isEnabled()Returns true if the MarketPlaceApp is enabled.- Returns:
- True if the MarketPlaceApp is enabled.
-