getconfirmation.java
来自「CmisJavaApi」· Java 代码 · 共 137 行
JAVA
137 行
/* * 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: GetConfirmation.java,v 1.2 2000/09/05 13:04:42 festor Exp $// $Source: /local/resedas/CVS-Repository/CmisJavaApi/src/fr/dyade/cmis/api/operation/GetConfirmation.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 or set 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 GetRequest * @version cvs $Id: GetConfirmation.java,v 1.2 2000/09/05 13:04:42 festor Exp $ */public class GetConfirmation extends CMISLinkedConfirmation { public GetConfirmation() {} /** Code type for an Action confirmation. */ public final short getType() { return GET; } /** * To Set the ManagedObjectClass of the GetConfirmation. * 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 GetConfirmation. * 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 GetConfirmation. * 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 GetResponse. * @return ManagedObjectClass. */ public ObjectClass getManagedObjectClass() { return fManagedObjectClass; } /** * Returns the <code>ManagedObjectInstance</code> of the GetResponse. * @return ManagedObjectInstance. */ public ObjectInstance getManagedObjectInstance() { return fManagedObjectInstance; } /** * Returns the <code>AttributeList</code> of the GetResponse. * @return AttributeList. */ public AttributeList getAttributeList() { return fAttributeList; } /** * Allows to set the <code>GetListError</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}</code> class.<br> * @param pEl The <code>GetListError</code> related to this <code>GetResponse</code>. */ public void setGetListError(GetListError pEl) { fGetListError = pEl; fManagedObjectClass = pEl.getBaseResultInfo().getObjectClass(); fManagedObjectInstance = pEl.getBaseResultInfo().getObjectInstance(); fCurrentTime = pEl.getBaseResultInfo().getCurrentTime(); setCMISError(CMISError.GET_LIST_ERROR(pEl)); } /** * Returns the <code>GetListError</code> in case of CMISError(7). * <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>GetListError</code> related to this <code>GetResponse</code>. */ public GetListError getGetListError(){ return fGetListError; } private ObjectClass fManagedObjectClass = null; private ObjectInstance fManagedObjectInstance = null; private AttributeList fAttributeList = null; private GetListError fGetListError = null;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?