Issue 830: AdminCatalog issues

This commit is contained in:
Andrew Donald Kennedy 2012-03-20 16:44:28 +00:00
parent b1f560e560
commit 323238168c
6 changed files with 21 additions and 45 deletions

View File

@ -16,23 +16,15 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.jclouds.vcloud.director.v1_5.domain; package org.jclouds.vcloud.director.v1_5.domain;
import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlType;
/** /**
* * Admin representation of the container for meta data (key-value pair) associated to different
* Admin representation of the container for meta data (key-value pair) associated to different * entities in the system.
* entities in the system.
* *
*
* <p>Java class for AdminCatalog complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre> * <pre>
* &lt;complexType name="AdminCatalog"> * &lt;complexType name="AdminCatalog">
* &lt;complexContent> * &lt;complexContent>

View File

@ -16,7 +16,6 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.jclouds.vcloud.director.v1_5.domain; package org.jclouds.vcloud.director.v1_5.domain;
import static com.google.common.base.Objects.equal; import static com.google.common.base.Objects.equal;
@ -30,18 +29,11 @@ import javax.xml.bind.annotation.XmlType;
import com.google.common.base.Objects; import com.google.common.base.Objects;
import com.google.common.base.Objects.ToStringHelper; import com.google.common.base.Objects.ToStringHelper;
/** /**
* * The AdminOrg represents an administrative view of an organization.
* The AdminOrg represents an administrative view of an organization. * It includes all members of the Org element, and adds several
* It includes all members of the Org element, and adds several * elements that can be viewed and modified only by system administrators.
* elements that can be viewed and modified only by system administrators. *
*
*
* <p>Java class for AdminOrg complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre> * <pre>
* &lt;complexType name="AdminOrg"> * &lt;complexType name="AdminOrg">
* &lt;complexContent> * &lt;complexContent>
@ -59,10 +51,7 @@ import com.google.common.base.Objects.ToStringHelper;
* &lt;/complexContent> * &lt;/complexContent>
* &lt;/complexType> * &lt;/complexType>
* </pre> * </pre>
*
*
*/ */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "AdminOrg") @XmlRootElement(name = "AdminOrg")
@XmlType(propOrder = { @XmlType(propOrder = {
"settings", "settings",

View File

@ -16,31 +16,22 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.jclouds.vcloud.director.v1_5.domain; package org.jclouds.vcloud.director.v1_5.domain;
import static com.google.common.base.Objects.equal; import static com.google.common.base.Objects.equal;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlType;
import com.google.common.base.Objects; import com.google.common.base.Objects;
import com.google.common.base.Objects.ToStringHelper; import com.google.common.base.Objects.ToStringHelper;
/** /**
* * Provides an administrative view of a vDC. Includes all members
* Provides an administrative view of a vDC. Includes all members * of the Vdc element, and adds several elements that can be
* of the Vdc element, and adds several elements that can be * viewed and modified only by administrators.
* viewed and modified only by administrators. *
*
*
* <p>Java class for AdminVdc complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre> * <pre>
* &lt;complexType name="AdminVdc"> * &lt;complexType name="AdminVdc">
* &lt;complexContent> * &lt;complexContent>
@ -59,11 +50,9 @@ import com.google.common.base.Objects.ToStringHelper;
* &lt;/complexContent> * &lt;/complexContent>
* &lt;/complexType> * &lt;/complexType>
* </pre> * </pre>
*
*
*/ */
@XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name = "AdminVdc")
@XmlType(name = "AdminVdc", propOrder = { @XmlType(name = "AdminVdcType", propOrder = {
"resourceGuaranteedMemory", "resourceGuaranteedMemory",
"resourceGuaranteedCpu", "resourceGuaranteedCpu",
"vCpuInMhz", "vCpuInMhz",

View File

@ -19,18 +19,20 @@
package org.jclouds.vcloud.director.v1_5.domain; package org.jclouds.vcloud.director.v1_5.domain;
import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import org.jclouds.vcloud.director.v1_5.VCloudDirectorMediaType; import org.jclouds.vcloud.director.v1_5.VCloudDirectorMediaType;
/** /**
* Container for references to VappTemplate and Media objects. * Container for references to {@link VAppTemplate} and {@link Media} objects.
* <p/> *
* <pre> * <pre>
* &lt;complexType name="CatalogType" /&gt; * &lt;complexType name="CatalogType" /&gt;
* </pre> * </pre>
* *
* @author grkvlt@apache.org * @author grkvlt@apache.org
*/ */
@XmlSeeAlso({ AdminCatalog.class })
@XmlRootElement(name = "Catalog") @XmlRootElement(name = "Catalog")
public class Catalog extends CatalogType { public class Catalog extends CatalogType {

View File

@ -22,6 +22,7 @@ import static com.google.common.base.Objects.equal;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import org.jclouds.vcloud.director.v1_5.VCloudDirectorMediaType; import org.jclouds.vcloud.director.v1_5.VCloudDirectorMediaType;
@ -40,6 +41,7 @@ import com.google.common.base.Objects.ToStringHelper;
* @author Adrian Cole * @author Adrian Cole
*/ */
@XmlRootElement(name = "Org") @XmlRootElement(name = "Org")
@XmlSeeAlso({ AdminOrg.class })
public class Org extends EntityType { public class Org extends EntityType {
public static final String MEDIA_TYPE = VCloudDirectorMediaType.ORG; public static final String MEDIA_TYPE = VCloudDirectorMediaType.ORG;

View File

@ -23,6 +23,7 @@ import static com.google.common.base.Objects.equal;
import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlType;
import com.google.common.base.Objects; import com.google.common.base.Objects;
@ -37,6 +38,7 @@ import com.google.common.base.Objects.ToStringHelper;
*/ */
@XmlRootElement(name = "Vdc") @XmlRootElement(name = "Vdc")
@XmlType(name = "VdcType") @XmlType(name = "VdcType")
@XmlSeeAlso({ AdminVdc.class })
public class Vdc extends EntityType { public class Vdc extends EntityType {
public static Builder<?> builder() { public static Builder<?> builder() {