/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: DSTModify.java,v 1.2 2008/06/25 05:47:13 qcheng Exp $
*
*/
/**
* The <code>DSTModify</code> class represents a <code>DST</code> modify
* request.
*
* The following schema fragment specifies the expected content within
* the <code>DSTModify</code> object.
*
* <pre>
* <complexType name="ModifyType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <group ref="{urn:liberty:idpp:2003-08}ResourceIDGroup"/>
* <element name="Modification" maxOccurs="unbounded">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}
* anyType">
* <sequence>
* <element name="Select"
* type="{urn:liberty:idpp:2003-08}SelectType"/>
* <element name="NewData" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction
* base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <any/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* <attribute name="overrideAllowed"
* type="{http://www.w3.org/2001/XMLSchema}boolean" />
* <attribute name="id"
* type="{http://www.w3.org/2001/XMLSchema}ID" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element ref="{urn:liberty:idpp:2003-08}Extension"
* maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
* <attribute name="itemID" type="{urn:liberty:idpp:2003-08}IDType" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
* @supported.all.api
*/
public class DSTModify {
/**
* Constructor
*/
public DSTModify() {}
/**
* Constructor
* @param resourceID id for the resource to be modified.
* @param modifications list of <code>DSTModification</code> to be
* performed.
* @param serviceNS service name space.
*/
this.resourceID = resourceID;
if(modifications != null) {
} else {
}
}
}
/**
* Constructor
* @param encResourceID id for encrypted resource to be modified.
* @param modifications list of <code>DSTModification</code> to be
* performed.
* @param serviceNS service name space.
*/
public DSTModify(
this.encryptedResourceID = encResourceID;
if(modifications != null) {
} else {
}
}
}
/**
* Constructor
* @param element <code>DOM</code> Element.
* @exception DSTException
*/
}
}
if(nameSpaceURI == null) {
}
nameSpaceURI, "ResourceID");
" or more than one resource id is found.");
throw new DSTException(
}
if(resourceID == null) {
throw new DSTException(
}
nameSpaceURI, "Modification");
throw new DSTException(
}
for(int i=0; i < size; i++) {
}
}
/**
* Gets the modifications to be performed.
*
* @return List of <code>DSTModification</code> object
*
*/
return modification;
}
/**
* Gets id attribute
* @return
* {@link java.lang.String}
*/
return id;
}
/**
* Sets id attribute
* @param id id attribute value to be set
*/
}
/**
* Gets the encrypted resource ID.
* @return encrypted resource ID.
*/
return encryptedResourceID;
}
/**
* Sets encrypted resource ID
* @param resourceID encrypted resource ID to be set
*/
public void setEncryptedResourceID(
this.encryptedResourceID = resourceID;
}
/**
* Gets resource ID
* @return
* {@link java.lang.String}
*/
return resourceID;
}
/**
* Sets the resource ID
* @param resourceID resource ID to be set
*/
this.resourceID = resourceID;
}
/**
* Gets item id attribute
* @return
* {@link java.lang.String}
*/
return itemID;
}
/**
* Sets item id attribute
* @param itemID item ID to be set
*/
}
/**
* Gets the extension property
*
* @return List of Object
*
*/
return extension;
}
/**
* Sets the extension property
*
* @param extensions List of Object to be set
*
*/
if(extensions != null) {
}
}
/**
* Gets the name space.
*
* @return name space.
*/
return nameSpaceURI;
}
/**
* Sets the name space.
* @param nameSpace name space URI.
*/
this.nameSpaceURI = nameSpace;
}
/**
* Sets the name space prefix.
* @param prefix name space prefix.
*/
}
/**
* Gets the name space prefix.
* @return Name space prefix.
*/
return prefix;
}
/**
* Creates a String representation of this object.
* By default name space name is prepended to the element name
* @return String A string containing the valid XML for this element
*/
return toString(true, false);
}
/**
* Creates a String representation of this object.
* @param includeNS if true prepends all elements by their name space prefix
* @param declareNS if true includes the name space within the
* generated.
* @return String A string containing the valid XML for this element
*/
if(includeNS) {
}
}
if(declareNS) {
if(nameSpaceURI == null) {
"not defined");
return "";
}
}
}
}
if(declareNS) {
}
if(encryptedResourceID == null) {
} else {
}
}
}
}
}