setconfirmation.java

来自「CmisJavaApi」· Java 代码 · 共 139 行

JAVA
139
字号
/* * The contents of this file are subject to the Dyade Public License,  * as defined by the file DYADE_PUBLIC_LICENSE.TXT * * You may not use this file except in compliance with the License. You may * obtain a copy of the License on the Dyade web site (www.dyade.fr). * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for * the specific terms governing rights and limitations under the License. * * The Original Code is CmisJava API, including the java package  * fr.dyade.cmis, released September 5, 2000. * * The Initial Developer of the Original Code is Dyade. The Original Code and * portions created by Dyade are Copyright Bull and Copyright INRIA.  * All Rights Reserved. *//*      Copyright 1996-2000 by Institut National de Recherche en Informatique  *                             et en Automatique (INRIA) *          All rights reserved.  See COPYRIGHT in top-level directory. * *      Authors: Laurent Andrey, Eric Dillon, Olivier Festor *///  $Id: SetConfirmation.java,v 1.2 2000/09/05 13:04:44 festor Exp $//  $Source: /local/resedas/CVS-Repository/CmisJavaApi/src/fr/dyade/cmis/api/operation/SetConfirmation.java,v $////  Todo//package fr.dyade.cmis.api.operation;import fr.dyade.cmis.api.types.*;/** Confirmation for a m-set service call.  *  See X710, page 20 table 7  *  <p>  *  Remark: this confirmation has the same parameter as create confirmation.  *  <p>  *  <strong>All set method are provided for use in agents only. Within a manager application  * everything is set from C-code through JNI</strong>  *  *  @see fr.dyade.cmis.api.operation.SetRequest  */public class SetConfirmation extends CMISLinkedConfirmation {       public SetConfirmation() {}      /** Code type for a Set confirmation.	*/      public final short getType() {	 return SET;      }      /**	* To Set the ManagedObjectClass of the SetConfirmation.	* This method should not be called when used within a manager, since this parameter is	* set from C-code through JNI.	* @param pClass The <code>ObjectClass</code> to set.	*/      public void setManagedObjectClass( ObjectClass pClass ){	 fManagedObjectClass= pClass;      }            /**	* To Set the ManagedObjectInstance of the SetConfirmation.	* This method should not be called when used within a manager, since this parameter is	* set from C-code through JNI.	* @param pObject The <code>ObjectInstance</code> to set.	*/      public void setManagedObjectInstance(  ObjectInstance pObject ){	 fManagedObjectInstance=pObject;      }            /**	* To Set the AttributeList of the SetConfirmation.	* This method should not be called when used within a manager, since this parameter is	* set from C-code through JNI.	* @param pList The <code>AttributeList</code> to set.	*/      public void setAttributeList( AttributeList pList ) {	 fAttributeList=pList;      }            /**	* Returns the <code>ManagedObjectClass</code> of the SetResponse.	* @return ManagedObjectClass.	*/      public ObjectClass getManagedObjectClass() {	 return fManagedObjectClass;      }            /**	*  Returns the <code>ManagedObjectInstance</code> of the SetResponse.	* @return ManagedObjectInstance.	*/      public ObjectInstance getManagedObjectInstance() {	 return fManagedObjectInstance;      }            /**	*  Returns the <code>AttributeList</code> of the SetResponse.	* @return AttributeList.	*/      public AttributeList getAttributeList() {	 return fAttributeList;      }            /**	* Allows to set the <code>SetListError</code> returned parameter in case of CMISError.	* <i>Notice</i>: in this case, this argument is also available from the 	* <code>getArg()</code> method of 	* <code>{@link fr.dyade.cmis.api.types.CMISError CMISError}</code> class.<br>	* @param pEl The <code>SetListError</code> related to this <code>SetResponse</code>.	*/      public void setSetListError(SetListError pEl) {	 fSetListError = pEl;     // We must forward some information, since the C-Code does not do through JNI.	 fManagedObjectClass = pEl.getBaseResultInfo().getObjectClass();	 fManagedObjectInstance = pEl.getBaseResultInfo().getObjectInstance();	 fCurrentTime = pEl.getBaseResultInfo().getCurrentTime();	 setCMISError(CMISError.SET_LIST_ERROR(pEl));      }            /**	* Returns the <code>SetListError</code> in case of CMISError(8).	* <i>Notice</i>: in this case, this argument is also available from the 	* <code>getArg()</code> method of 	* <code>{@link fr.dyade.cmis.api.types.CMISError}</code> class.<br>	* @return The <code>SetListError</code> related to this <code>SetResponse</code>.	*/      public SetListError getSetListError() {	 return fSetListError;      }            private ObjectClass fManagedObjectClass = null;      private ObjectInstance fManagedObjectInstance = null;      private AttributeList fAttributeList   = null;      private SetListError fSetListError = null;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?