Update Javadoc on CreateNetworkOptions: information about account ownership

This commit is contained in:
Richard Downer 2011-12-07 12:05:46 +02:00
parent 4b56039f3c
commit 335218867c
1 changed files with 20 additions and 2 deletions

View File

@ -187,7 +187,16 @@ public class CreateNetworkOptions extends AccountInDomainOptions {
} }
/** /**
* {@inheritDoc} * Specify the account that will own the network. This can be run by a privileged user to be
* able to set advanced network properties, such as the VLAN tag, and then to immediately pass
* ownership of the network to an unprivileged user.
*
* Note that the unprivileged user will be able to delete the network later, since they are it's owner.
*
* @param account
* account name
* @param domain
* domain ID
*/ */
@Override @Override
public CreateNetworkOptions accountInDomain(String account, long domain) { public CreateNetworkOptions accountInDomain(String account, long domain) {
@ -195,7 +204,16 @@ public class CreateNetworkOptions extends AccountInDomainOptions {
} }
/** /**
* {@inheritDoc} * Specify the domain that will own the network. Any user in the domain can then use this
* network.
*
* CloudStack requires that when using this option, you also specify isShared(true).
*
* Changes or deletions to this network must be done by a domain admin in the same domain, or a
* global admin.
*
* @param domainId
* domain ID
*/ */
@Override @Override
public CreateNetworkOptions domainId(long domainId) { public CreateNetworkOptions domainId(long domainId) {