Return-Path: X-Original-To: apmail-chemistry-commits-archive@www.apache.org Delivered-To: apmail-chemistry-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1B5689D46 for ; Tue, 3 Apr 2012 04:26:46 +0000 (UTC) Received: (qmail 10748 invoked by uid 500); 3 Apr 2012 04:26:45 -0000 Delivered-To: apmail-chemistry-commits-archive@chemistry.apache.org Received: (qmail 10602 invoked by uid 500); 3 Apr 2012 04:26:44 -0000 Mailing-List: contact commits-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list commits@chemistry.apache.org Received: (qmail 10469 invoked by uid 99); 3 Apr 2012 04:26:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2012 04:26:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2012 04:26:39 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 268B42388C7E for ; Tue, 3 Apr 2012 04:26:08 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r811224 [11/15] - in /websites/staging/chemistry/trunk/content: ./ java/0.7.0/maven/chemistry-opencmis-commons/ java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/ java/0.7.0/maven/chemistry-opencmis-commons/chemistr... Date: Tue, 03 Apr 2012 04:26:00 -0000 To: commits@chemistry.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120403042608.268B42388C7E@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/exceptions/CmisUnauthorizedException.html ============================================================================== --- websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/exceptions/CmisUnauthorizedException.html (added) +++ websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/exceptions/CmisUnauthorizedException.html Tue Apr 3 04:25:56 2012 @@ -0,0 +1,78 @@ + + + + +CmisUnauthorizedException xref + + + +
+
+1   /*
+2    * Licensed to the Apache Software Foundation (ASF) under one
+3    * or more contributor license agreements.  See the NOTICE file
+4    * distributed with this work for additional information
+5    * regarding copyright ownership.  The ASF licenses this file
+6    * to you under the Apache License, Version 2.0 (the
+7    * "License"); you may not use this file except in compliance
+8    * with the License.  You may obtain a copy of the License at
+9    *
+10   * http://www.apache.org/licenses/LICENSE-2.0
+11   *
+12   * Unless required by applicable law or agreed to in writing,
+13   * software distributed under the License is distributed on an
+14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+15   * KIND, either express or implied.  See the License for the
+16   * specific language governing permissions and limitations
+17   * under the License.
+18   */
+19  package org.apache.chemistry.opencmis.commons.exceptions;
+20  
+21  import java.math.BigInteger;
+22  
+23  /**
+24   * Unauthorized exception.
+25   * 
+26   * (This is exception is not defined in the CMIS specification and is therefore
+27   * derived from {@link CmisRuntimeException}.)
+28   */
+29  public class CmisUnauthorizedException extends CmisRuntimeException {
+30  
+31      private static final long serialVersionUID = 1L;
+32  
+33      public CmisUnauthorizedException() {
+34          super();
+35      }
+36  
+37      public CmisUnauthorizedException(String message, BigInteger code, Throwable cause) {
+38          super(message, code, cause);
+39      }
+40  
+41      public CmisUnauthorizedException(String message, String errorContent) {
+42          super(message, errorContent);
+43      }
+44  
+45      public CmisUnauthorizedException(String message, BigInteger code) {
+46          super(message, code);
+47      }
+48  
+49      public CmisUnauthorizedException(String message, BigInteger code, String errorContent) {
+50          super(message, code, errorContent);
+51      }
+52  
+53      public CmisUnauthorizedException(String message, String errorContent, Throwable cause) {
+54          super(message, errorContent, cause);
+55      }
+56  
+57      public CmisUnauthorizedException(String message, Throwable cause) {
+58          super(message, BigInteger.ZERO, cause);
+59      }
+60  
+61      public CmisUnauthorizedException(String message) {
+62          super(message, BigInteger.ZERO);
+63      }
+64  }
+
+
+ + Added: websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/exceptions/CmisUpdateConflictException.html ============================================================================== --- websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/exceptions/CmisUpdateConflictException.html (added) +++ websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/exceptions/CmisUpdateConflictException.html Tue Apr 3 04:25:56 2012 @@ -0,0 +1,81 @@ + + + + +CmisUpdateConflictException xref + + + +
+
+1   /*
+2    * Licensed to the Apache Software Foundation (ASF) under one
+3    * or more contributor license agreements.  See the NOTICE file
+4    * distributed with this work for additional information
+5    * regarding copyright ownership.  The ASF licenses this file
+6    * to you under the Apache License, Version 2.0 (the
+7    * "License"); you may not use this file except in compliance
+8    * with the License.  You may obtain a copy of the License at
+9    *
+10   * http://www.apache.org/licenses/LICENSE-2.0
+11   *
+12   * Unless required by applicable law or agreed to in writing,
+13   * software distributed under the License is distributed on an
+14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+15   * KIND, either express or implied.  See the License for the
+16   * specific language governing permissions and limitations
+17   * under the License.
+18   */
+19  package org.apache.chemistry.opencmis.commons.exceptions;
+20  
+21  import java.math.BigInteger;
+22  
+23  /**
+24   * CMIS UpdateConflict Exception.
+25   */
+26  public class CmisUpdateConflictException extends CmisBaseException {
+27  
+28      private static final long serialVersionUID = 1L;
+29      public static final String EXCEPTION_NAME = "updateConflict";
+30  
+31      public CmisUpdateConflictException() {
+32          super();
+33      }
+34  
+35      public CmisUpdateConflictException(String message, BigInteger code, Throwable cause) {
+36          super(message, code, cause);
+37      }
+38  
+39      public CmisUpdateConflictException(String message, String errorContent) {
+40          super(message, errorContent);
+41      }
+42  
+43      public CmisUpdateConflictException(String message, BigInteger code) {
+44          super(message, code);
+45      }
+46  
+47      public CmisUpdateConflictException(String message, BigInteger code, String errorContent) {
+48          super(message, code, errorContent);
+49      }
+50  
+51      public CmisUpdateConflictException(String message, String errorContent, Throwable cause) {
+52          super(message, errorContent, cause);
+53      }
+54  
+55      public CmisUpdateConflictException(String message, Throwable cause) {
+56          super(message, BigInteger.ZERO, cause);
+57      }
+58  
+59      public CmisUpdateConflictException(String message) {
+60          super(message, BigInteger.ZERO);
+61      }
+62  
+63      @Override
+64      public String getExceptionName() {
+65          return EXCEPTION_NAME;
+66      }
+67  }
+
+
+ + Added: websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/exceptions/CmisVersioningException.html ============================================================================== --- websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/exceptions/CmisVersioningException.html (added) +++ websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/exceptions/CmisVersioningException.html Tue Apr 3 04:25:56 2012 @@ -0,0 +1,81 @@ + + + + +CmisVersioningException xref + + + +
+
+1   /*
+2    * Licensed to the Apache Software Foundation (ASF) under one
+3    * or more contributor license agreements.  See the NOTICE file
+4    * distributed with this work for additional information
+5    * regarding copyright ownership.  The ASF licenses this file
+6    * to you under the Apache License, Version 2.0 (the
+7    * "License"); you may not use this file except in compliance
+8    * with the License.  You may obtain a copy of the License at
+9    *
+10   * http://www.apache.org/licenses/LICENSE-2.0
+11   *
+12   * Unless required by applicable law or agreed to in writing,
+13   * software distributed under the License is distributed on an
+14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+15   * KIND, either express or implied.  See the License for the
+16   * specific language governing permissions and limitations
+17   * under the License.
+18   */
+19  package org.apache.chemistry.opencmis.commons.exceptions;
+20  
+21  import java.math.BigInteger;
+22  
+23  /**
+24   * CMIS Versioning Exception.
+25   */
+26  public class CmisVersioningException extends CmisBaseException {
+27  
+28      private static final long serialVersionUID = 1L;
+29      public static final String EXCEPTION_NAME = "versioning";
+30  
+31      public CmisVersioningException() {
+32          super();
+33      }
+34  
+35      public CmisVersioningException(String message, BigInteger code, Throwable cause) {
+36          super(message, code, cause);
+37      }
+38  
+39      public CmisVersioningException(String message, String errorContent) {
+40          super(message, errorContent);
+41      }
+42  
+43      public CmisVersioningException(String message, BigInteger code) {
+44          super(message, code);
+45      }
+46  
+47      public CmisVersioningException(String message, BigInteger code, String errorContent) {
+48          super(message, code, errorContent);
+49      }
+50  
+51      public CmisVersioningException(String message, String errorContent, Throwable cause) {
+52          super(message, errorContent, cause);
+53      }
+54  
+55      public CmisVersioningException(String message, Throwable cause) {
+56          super(message, BigInteger.ZERO, cause);
+57      }
+58  
+59      public CmisVersioningException(String message) {
+60          super(message, BigInteger.ZERO);
+61      }
+62  
+63      @Override
+64      public String getExceptionName() {
+65          return EXCEPTION_NAME;
+66      }
+67  }
+
+
+ + Added: websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/exceptions/package-frame.html ============================================================================== --- websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/exceptions/package-frame.html (added) +++ websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/exceptions/package-frame.html Tue Apr 3 04:25:56 2012 @@ -0,0 +1,72 @@ + + + + + + OpenCMIS Commons API 0.7.0 Reference Package org.apache.chemistry.opencmis.commons.exceptions + + + + +

+ org.apache.chemistry.opencmis.commons.exceptions +

+ +

Classes

+ + + + + \ No newline at end of file Added: websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/exceptions/package-summary.html ============================================================================== --- websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/exceptions/package-summary.html (added) +++ websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/exceptions/package-summary.html Tue Apr 3 04:25:56 2012 @@ -0,0 +1,147 @@ + + + + + + OpenCMIS Commons API 0.7.0 Reference Package org.apache.chemistry.opencmis.commons.exceptions + + + +
+ +
+
+ +
+ +

Package org.apache.chemistry.opencmis.commons.exceptions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Class Summary
+ CmisBaseException +
+ CmisConnectionException +
+ CmisConstraintException +
+ CmisContentAlreadyExistsException +
+ CmisFilterNotValidException +
+ CmisInvalidArgumentException +
+ CmisNameConstraintViolationException +
+ CmisNotSupportedException +
+ CmisObjectNotFoundException +
+ CmisPermissionDeniedException +
+ CmisProxyAuthenticationException +
+ CmisRuntimeException +
+ CmisStorageException +
+ CmisStreamNotSupportedException +
+ CmisUnauthorizedException +
+ CmisUpdateConflictException +
+ CmisVersioningException +
+ +
+ +
+
+ +
+
+ Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved. + + \ No newline at end of file Added: websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/package-frame.html ============================================================================== --- websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/package-frame.html (added) +++ websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/package-frame.html Tue Apr 3 04:25:56 2012 @@ -0,0 +1,30 @@ + + + + + + OpenCMIS Commons API 0.7.0 Reference Package org.apache.chemistry.opencmis.commons + + + + +

+ org.apache.chemistry.opencmis.commons +

+ +

Classes

+ + + + + \ No newline at end of file Added: websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/package-summary.html ============================================================================== --- websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/package-summary.html (added) +++ websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/package-summary.html Tue Apr 3 04:25:56 2012 @@ -0,0 +1,77 @@ + + + + + + OpenCMIS Commons API 0.7.0 Reference Package org.apache.chemistry.opencmis.commons + + + +
+ +
+
+ +
+ +

Package org.apache.chemistry.opencmis.commons

+ + + + + + + + + + + + + + + + + + +
Class Summary
+ BasicPermissions +
+ PropertyIds +
+ SessionParameter +
+ +
+ +
+
+ +
+
+ Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved. + + \ No newline at end of file Added: websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/server/CallContext.html ============================================================================== --- websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/server/CallContext.html (added) +++ websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/server/CallContext.html Tue Apr 3 04:25:56 2012 @@ -0,0 +1,125 @@ + + + + +CallContext xref + + + +
+
+1   /*
+2    * Licensed to the Apache Software Foundation (ASF) under one
+3    * or more contributor license agreements.  See the NOTICE file
+4    * distributed with this work for additional information
+5    * regarding copyright ownership.  The ASF licenses this file
+6    * to you under the Apache License, Version 2.0 (the
+7    * "License"); you may not use this file except in compliance
+8    * with the License.  You may obtain a copy of the License at
+9    *
+10   * http://www.apache.org/licenses/LICENSE-2.0
+11   *
+12   * Unless required by applicable law or agreed to in writing,
+13   * software distributed under the License is distributed on an
+14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+15   * KIND, either express or implied.  See the License for the
+16   * specific language governing permissions and limitations
+17   * under the License.
+18   */
+19  package org.apache.chemistry.opencmis.commons.server;
+20  
+21  import java.io.File;
+22  import java.math.BigInteger;
+23  
+24  /**
+25   * An object implementing this interface holds context data of the current call.
+26   */
+27  public interface CallContext {
+28  
+29      String BINDING_ATOMPUB = "atompub";
+30      String BINDING_WEBSERVICES = "webservices";
+31      String BINDING_BROWSER = "browser";
+32      String BINDING_LOCAL = "local";
+33  
+34      String REPOSITORY_ID = "repositoryId";
+35      String USERNAME = "username";
+36      String PASSWORD = "password";
+37      String LOCALE = "locale";
+38      String OFFSET = "offset";
+39      String LENGTH = "length";
+40      String LOCALE_ISO639_LANGUAGE = "language";
+41      String LOCALE_ISO3166_COUNTRY = "country";
+42  
+43      String SERVLET_CONTEXT = "servletContext";
+44      String HTTP_SERVLET_REQUEST = "httpServletRequest";
+45      String HTTP_SERVLET_RESPONSE = "httpServletResponse";
+46  
+47      String TEMP_DIR = "tempDir";
+48      String MEMORY_THRESHOLD = "memoryThreshold";
+49  
+50      /**
+51       * Returns the binding. Usually it returns
+52       * {@link CallContext#BINDING_ATOMPUB},
+53       * {@link CallContext#BINDING_WEBSERVICES},
+54       * {@link CallContext#BINDING_BROWSER} or {@link CallContext#BINDING_LOCAL}.
+55       */
+56      String getBinding();
+57  
+58      /**
+59       * Returns if <code>true</code> object infos can improve the performance.
+60       */
+61      boolean isObjectInfoRequired();
+62  
+63      /**
+64       * Returns context data by key.
+65       * 
+66       * @param key
+67       *            the key
+68       * @return the data if the key is valid, <code>null</code> otherwise
+69       */
+70      Object get(String key);
+71  
+72      /**
+73       * Returns the repository id.
+74       */
+75      String getRepositoryId();
+76  
+77      /**
+78       * Returns the user name.
+79       */
+80      String getUsername();
+81  
+82      /**
+83       * Returns the password.
+84       */
+85      String getPassword();
+86  
+87      /**
+88       * Returns the locale.
+89       */
+90      String getLocale();
+91  
+92      /**
+93       * Returns the content offset if set, <code>null</code> otherwise
+94       */
+95      BigInteger getOffset();
+96  
+97      /**
+98       * Returns the content length if set, <code>null</code> otherwise
+99       */
+100     BigInteger getLength();
+101 
+102     /**
+103      * Returns the temp directory.
+104      */
+105     File getTempDirectory();
+106 
+107     /**
+108      * Returns the memory threshold.
+109      */
+110     int getMemoryThreshold();
+111 }
+
+
+ + Added: websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/server/CmisService.html ============================================================================== --- websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/server/CmisService.html (added) +++ websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/server/CmisService.html Tue Apr 3 04:25:56 2012 @@ -0,0 +1,172 @@ + + + + +CmisService xref + + + +
+
+1   /*
+2    *
+3    * Licensed to the Apache Software Foundation (ASF) under one
+4    * or more contributor license agreements.  See the NOTICE file
+5    * distributed with this work for additional information
+6    * regarding copyright ownership.  The ASF licenses this file
+7    * to you under the Apache License, Version 2.0 (the
+8    * "License"); you may not use this file except in compliance
+9    * with the License.  You may obtain a copy of the License at
+10   *
+11   *   http://www.apache.org/licenses/LICENSE-2.0
+12   *
+13   * Unless required by applicable law or agreed to in writing,
+14   * software distributed under the License is distributed on an
+15   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+16   * KIND, either express or implied.  See the License for the
+17   * specific language governing permissions and limitations
+18   * under the License.
+19   *
+20   */
+21  package org.apache.chemistry.opencmis.commons.server;
+22  
+23  
+24  import java.util.List;
+25  
+26  import org.apache.chemistry.opencmis.commons.data.Acl;
+27  import org.apache.chemistry.opencmis.commons.data.ContentStream;
+28  import org.apache.chemistry.opencmis.commons.data.ExtensionsData;
+29  import org.apache.chemistry.opencmis.commons.data.Properties;
+30  import org.apache.chemistry.opencmis.commons.enums.AclPropagation;
+31  import org.apache.chemistry.opencmis.commons.enums.VersioningState;
+32  import org.apache.chemistry.opencmis.commons.spi.AclService;
+33  import org.apache.chemistry.opencmis.commons.spi.DiscoveryService;
+34  import org.apache.chemistry.opencmis.commons.spi.MultiFilingService;
+35  import org.apache.chemistry.opencmis.commons.spi.NavigationService;
+36  import org.apache.chemistry.opencmis.commons.spi.ObjectService;
+37  import org.apache.chemistry.opencmis.commons.spi.PolicyService;
+38  import org.apache.chemistry.opencmis.commons.spi.RelationshipService;
+39  import org.apache.chemistry.opencmis.commons.spi.RepositoryService;
+40  import org.apache.chemistry.opencmis.commons.spi.VersioningService;
+41  
+42  /**
+43   * OpenCMIS server interface.
+44   * 
+45   * <p>
+46   * <em>
+47   * See CMIS 1.0 specification for details on the operations, parameters,
+48   * exceptions and the domain model.
+49   * </em>
+50   * </p>
+51   * 
+52   * <p>
+53   * This interface adds a few more operations to the operation set defined by
+54   * CMIS to address binding specific requirements.
+55   * </p>
+56   */
+57  public interface CmisService extends RepositoryService, NavigationService, ObjectService, VersioningService,
+58          DiscoveryService, MultiFilingService, RelationshipService, AclService, PolicyService {
+59  
+60      /**
+61       * Creates a new document, folder or policy.
+62       * 
+63       * The property "cmis:objectTypeId" defines the type and implicitly the base
+64       * type.
+65       * 
+66       * @param repositoryId
+67       *            the identifier for the repository
+68       * @param properties
+69       *            the property values that MUST be applied to the newly created
+70       *            object
+71       * @param folderId
+72       *            <em>(optional)</em> if specified, the identifier for the
+73       *            folder that MUST be the parent folder for the newly created
+74       *            object
+75       * @param contentStream
+76       *            <em>(optional)</em> if the object to create is a document
+77       *            object, the content stream that MUST be stored for the newly
+78       *            created document object
+79       * @param versioningState
+80       *            <em>(optional)</em> if the object to create is a document
+81       *            object, it specifies what the versioning state of the newly
+82       *            created object MUST be (default is
+83       *            {@link VersioningState#MAJOR})
+84       * @param policies
+85       *            <em>(optional)</em> a list of policy IDs that MUST be applied
+86       *            to the newly created object
+87       * @param addAces
+88       *            <em>(optional)</em> a list of ACEs that MUST be added to the
+89       *            newly created object, either using the ACL from
+90       *            <code>folderId</code> if specified, or being applied if no
+91       *            <code>folderId</code> is specified
+92       * @param removeAces
+93       *            <em>(optional)</em> a list of ACEs that MUST be removed from
+94       *            the newly created object, either using the ACL from
+95       *            <code>folderId</code> if specified, or being ignored if no
+96       *            <code>folderId</code> is specified
+97       */
+98      String create(String repositoryId, Properties properties, String folderId, ContentStream contentStream,
+99              VersioningState versioningState, List<String> policies, ExtensionsData extension);
+100 
+101     /**
+102      * Deletes an object or cancels a check out.
+103      * 
+104      * For the Web Services binding this is always an object deletion. For the
+105      * AtomPub it depends on the referenced object. If it is a checked out
+106      * document then the check out must be canceled. If the object is not a
+107      * checked out document then the object must be deleted.
+108      * 
+109      * @param repositoryId
+110      *            the identifier for the repository
+111      * @param objectId
+112      *            the identifier for the object
+113      * @param allVersions
+114      *            <em>(optional)</em> If <code>true</code> then delete all
+115      *            versions of the document, otherwise delete only the document
+116      *            object specified (default is <code>true</code>)
+117      */
+118     void deleteObjectOrCancelCheckOut(String repositoryId, String objectId, Boolean allVersions,
+119             ExtensionsData extension);
+120 
+121     /**
+122      * Applies a new ACL to an object.
+123      * 
+124      * Since it is not possible to transmit an "add ACL" and a "remove ACL" via
+125      * AtomPub, the merging has to be done the client side. The ACEs provided
+126      * here is supposed to the new complete ACL.
+127      * 
+128      * @param repositoryId
+129      *            the identifier for the repository
+130      * @param objectId
+131      *            the identifier for the object
+132      * @param aces
+133      *            the ACEs that should replace the current ACL of the object
+134      * @param aclPropagation
+135      *            <em>(optional)</em> specifies how ACEs should be handled
+136      *            (default is {@link AclPropagation#REPOSITORYDETERMINED})
+137      */
+138     Acl applyAcl(String repositoryId, String objectId, Acl aces, AclPropagation aclPropagation);
+139 
+140     /**
+141      * Returns the {@link ObjectInfo} of the given object id or
+142      * <code>null</code> if no object info exists.
+143      * 
+144      * Only AtomPub requests will require object infos.
+145      * 
+146      * @param repositoryId
+147      *            the identifier for the repository
+148      * @param objectId
+149      *            the identifier for the object
+150      */
+151     ObjectInfo getObjectInfo(String repositoryId, String objectId);
+152 
+153     /**
+154      * Signals that this object will not be used anymore and resources can
+155      * released.
+156      */
+157     void close();
+158 }
+
+
+ + Added: websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/server/CmisServiceFactory.html ============================================================================== --- websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/server/CmisServiceFactory.html (added) +++ websites/staging/chemistry/trunk/content/java/0.7.0/maven/chemistry-opencmis-commons/chemistry-opencmis-commons-api/xref/org/apache/chemistry/opencmis/commons/server/CmisServiceFactory.html Tue Apr 3 04:25:56 2012 @@ -0,0 +1,80 @@ + + + + +CmisServiceFactory xref + + + +
+
+1   /*
+2    *
+3    * Licensed to the Apache Software Foundation (ASF) under one
+4    * or more contributor license agreements.  See the NOTICE file
+5    * distributed with this work for additional information
+6    * regarding copyright ownership.  The ASF licenses this file
+7    * to you under the Apache License, Version 2.0 (the
+8    * "License"); you may not use this file except in compliance
+9    * with the License.  You may obtain a copy of the License at
+10   *
+11   *   http://www.apache.org/licenses/LICENSE-2.0
+12   *
+13   * Unless required by applicable law or agreed to in writing,
+14   * software distributed under the License is distributed on an
+15   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+16   * KIND, either express or implied.  See the License for the
+17   * specific language governing permissions and limitations
+18   * under the License.
+19   *
+20   */
+21  package org.apache.chemistry.opencmis.commons.server;
+22  
+23  import java.io.File;
+24  import java.util.Map;
+25  
+26  /**
+27   * Factory for {@link CmisService} objects.
+28   */
+29  public interface CmisServiceFactory {
+30  
+31      /**
+32       * Initializes the factory instance.
+33       */
+34      void init(Map<String, String> parameters);
+35  
+36      /**
+37       * Cleans up the the factory instance.
+38       */
+39      void destroy();
+40  
+41      /**
+42       * Returns a {@link CmisService} object for the given {@link CallContext}.
+43       * 
+44       * When the {@link CmisService} object is not longer needed
+45       * {@link CmisService#close()} will be called.
+46       */
+47      CmisService getService(CallContext context);
+48  
+49      /**
+50       * Returns the absolute path of the directory that should be used for
+51       * temporary files.
+52       * 
+53       * @return absolute path of temp directory
+54       */
+55      File getTempDirectory();
+56  
+57      /**
+58       * Returns up to which size content should be kept in memory. Documents
+59       * bigger than this threshold will be cached in a temporary directory.
+60       * 
+61       * @return the threshold in bytes
+62       * 
+63       * @see CmisServiceFactory#getTempDirectory()
+64       */
+65      int getMemoryThreshold();
+66  }
+
+
+ +