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 E49D4DEE2 for ; Fri, 17 May 2013 16:06:01 +0000 (UTC) Received: (qmail 97384 invoked by uid 500); 17 May 2013 16:06:02 -0000 Delivered-To: apmail-chemistry-commits-archive@chemistry.apache.org Received: (qmail 97351 invoked by uid 500); 17 May 2013 16:06:02 -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 97343 invoked by uid 99); 17 May 2013 16:06:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 May 2013 16:06:02 +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; Fri, 17 May 2013 16:05:47 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 774AF23889F1; Fri, 17 May 2013 16:05:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1483889 [2/3] - in /chemistry/opencmis/trunk: ./ chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/ap... Date: Fri, 17 May 2013 16:05:19 -0000 To: commits@chemistry.apache.org From: fmui@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130517160524.774AF23889F1@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Session.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Session.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Session.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Session.java Fri May 17 16:05:18 2013 @@ -50,7 +50,7 @@ import org.apache.chemistry.opencmis.com * *

* Almost all methods might throw exceptions derived from - * {@link CmisBaseException} which is a runtime exception! + * {@link CmisBaseException} which is a runtime exception. *

* *

@@ -130,6 +130,8 @@ public interface Session extends Seriali /** * Returns the repository info of the repository associated with this * session. + * + * @cmis 1.0 */ RepositoryInfo getRepositoryInfo(); @@ -143,31 +145,43 @@ public interface Session extends Seriali /** * Returns the type definition of the given type id. + * + * @cmis 1.0 */ ObjectType getTypeDefinition(String typeId); /** * Returns the type children of the given type id. + * + * @cmis 1.0 */ ItemIterable getTypeChildren(String typeId, boolean includePropertyDefinitions); /** * Returns the type descendants of the given type id. + * + * @cmis 1.0 */ List> getTypeDescendants(String typeId, int depth, boolean includePropertyDefinitions); /** * Creates a new type. + * + * @cmis 1.1 */ ObjectType createType(TypeDefinition type); /** * Updates an existing type. + * + * @cmis 1.1 */ ObjectType updateType(TypeDefinition type); /** * Deletes a type. + * + * @cmis 1.1 */ void deleteType(String typeId); @@ -175,12 +189,16 @@ public interface Session extends Seriali /** * Gets the root folder of the repository. + * + * @cmis 1.0 */ Folder getRootFolder(); /** * Gets the root folder of the repository with the given * {@link OperationContext}. + * + * @cmis 1.0 */ Folder getRootFolder(OperationContext context); @@ -188,6 +206,8 @@ public interface Session extends Seriali * Returns all checked out documents. * * @see Folder#getCheckedOutDocs() + * + * @cmis 1.0 */ ItemIterable getCheckedOutDocs(); @@ -196,6 +216,8 @@ public interface Session extends Seriali * . * * @see Folder#getCheckedOutDocs(OperationContext) + * + * @cmis 1.0 */ ItemIterable getCheckedOutDocs(OperationContext context); @@ -208,6 +230,8 @@ public interface Session extends Seriali * the object id * * @see #getObject(String) + * + * @cmis 1.0 */ CmisObject getObject(ObjectId objectId); @@ -222,6 +246,8 @@ public interface Session extends Seriali * the {@link OperationContext} to use * * @see #getObject(String, OperationContext) + * + * @cmis 1.0 */ CmisObject getObject(ObjectId objectId, OperationContext context); @@ -234,6 +260,8 @@ public interface Session extends Seriali * the object id * * @see #getObject(ObjectId) + * + * @cmis 1.0 */ CmisObject getObject(String objectId); @@ -248,6 +276,8 @@ public interface Session extends Seriali * the {@link OperationContext} to use * * @see #getObject(ObjectId, OperationContext) + * + * @cmis 1.0 */ CmisObject getObject(String objectId, OperationContext context); @@ -258,6 +288,8 @@ public interface Session extends Seriali * * @param path * the object path + * + * @cmis 1.0 */ CmisObject getObjectByPath(String path); @@ -270,6 +302,8 @@ public interface Session extends Seriali * the object path * @param context * the {@link OperationContext} to use + * + * @cmis 1.0 */ CmisObject getObjectByPath(String path, OperationContext context); @@ -299,6 +333,8 @@ public interface Session extends Seriali * @param searchAllVersions * specifies if the latest and non-latest versions of document * objects should be included + * + * @cmis 1.0 */ ItemIterable query(String statement, boolean searchAllVersions); @@ -313,6 +349,8 @@ public interface Session extends Seriali * objects should be included * @param context * the OperationContext + * + * @cmis 1.0 */ ItemIterable query(String statement, boolean searchAllVersions, OperationContext context); @@ -327,6 +365,8 @@ public interface Session extends Seriali * objects should be included * @param context * the OperationContext + * + * @cmis 1.0 */ ItemIterable queryObjects(String typeId, String where, boolean searchAllVersions, OperationContext context); @@ -338,6 +378,8 @@ public interface Session extends Seriali * the query statement with placeholders ('?'). * * @see QueryStatement + * + * @cmis 1.0 */ QueryStatement createQueryStatement(String statement); @@ -351,6 +393,8 @@ public interface Session extends Seriali * result * @param maxNumItems * maximum numbers of events + * + * @cmis 1.0 */ ChangeEvents getContentChanges(String changeLogToken, boolean includeProperties, long maxNumItems); @@ -366,6 +410,8 @@ public interface Session extends Seriali * maximum numbers of events * @param context * the OperationContext + * + * @cmis 1.0 */ ChangeEvents getContentChanges(String changeLogToken, boolean includeProperties, long maxNumItems, OperationContext context); @@ -382,6 +428,8 @@ public interface Session extends Seriali * * @see Folder#createDocument(Map, ContentStream, VersioningState, List, * List, List, OperationContext) + * + * @cmis 1.0 */ ObjectId createDocument(Map properties, ObjectId folderId, ContentStream contentStream, VersioningState versioningState, List policies, List addAces, List removeAces); @@ -396,6 +444,8 @@ public interface Session extends Seriali * * @see Folder#createDocument(Map, ContentStream, VersioningState, List, * List, List, OperationContext) + * + * @cmis 1.0 */ ObjectId createDocument(Map properties, ObjectId folderId, ContentStream contentStream, VersioningState versioningState); @@ -407,6 +457,8 @@ public interface Session extends Seriali * * @see Folder#createDocumentFromSource(ObjectId, Map, VersioningState, * List, List, List, OperationContext) + * + * @cmis 1.0 */ ObjectId createDocumentFromSource(ObjectId source, Map properties, ObjectId folderId, VersioningState versioningState, List policies, List addAces, List removeAces); @@ -418,6 +470,8 @@ public interface Session extends Seriali * * @see Folder#createDocumentFromSource(ObjectId, Map, VersioningState, * List, List, List, OperationContext) + * + * @cmis 1.0 */ ObjectId createDocumentFromSource(ObjectId source, Map properties, ObjectId folderId, VersioningState versioningState); @@ -428,6 +482,8 @@ public interface Session extends Seriali * @return the object id of the new folder * * @see Folder#createFolder(Map, List, List, List, OperationContext) + * + * @cmis 1.0 */ ObjectId createFolder(Map properties, ObjectId folderId, List policies, List addAces, List removeAces); @@ -438,6 +494,8 @@ public interface Session extends Seriali * @return the object id of the new folder * * @see Folder#createFolder(Map, List, List, List, OperationContext) + * + * @cmis 1.0 */ ObjectId createFolder(Map properties, ObjectId folderId); @@ -447,6 +505,8 @@ public interface Session extends Seriali * @return the object id of the new policy * * @see Folder#createPolicy(Map, List, List, List, OperationContext) + * + * @cmis 1.0 */ ObjectId createPolicy(Map properties, ObjectId folderId, List policies, List addAces, List removeAces); @@ -457,6 +517,8 @@ public interface Session extends Seriali * @return the object id of the new policy * * @see Folder#createPolicy(Map, List, List, List, OperationContext) + * + * @cmis 1.0 */ ObjectId createPolicy(Map properties, ObjectId folderId); @@ -466,6 +528,8 @@ public interface Session extends Seriali * @return the object id of the new policy * * @see Folder#createItem(Map, List, List, List, OperationContext) + * + * @cmis 1.1 */ ObjectId createItem(Map properties, ObjectId folderId, List policies, List addAces, List removeAces); @@ -476,6 +540,8 @@ public interface Session extends Seriali * @return the object id of the new item * * @see Folder#createItem(Map, List, List, List, OperationContext) + * + * @cmis 1.1 */ ObjectId createItem(Map properties, ObjectId folderId); @@ -483,6 +549,8 @@ public interface Session extends Seriali * Creates a new relationship. * * @return the object id of the new relationship + * + * @cmis 1.0 */ ObjectId createRelationship(Map properties, List policies, List addAces, List removeAces); @@ -491,17 +559,23 @@ public interface Session extends Seriali * Creates a new relationship. * * @return the object id of the new relationship + * + * @cmis 1.0 */ ObjectId createRelationship(Map properties); /** * Fetches the relationships from or to an object from the repository. + * + * @cmis 1.0 */ ItemIterable getRelationships(ObjectId objectId, boolean includeSubRelationshipTypes, RelationshipDirection relationshipDirection, ObjectType type, OperationContext context); /** * Updates multiple objects in one request. + * + * @cmis 1.0 */ List bulkUpdateProperties(List objects, Map properties, List addSecondaryTypeIds, List removeSecondaryTypeIds); @@ -512,6 +586,8 @@ public interface Session extends Seriali * * @param objectId * the id of the object + * + * @cmis 1.0 */ void delete(ObjectId objectId); @@ -523,6 +599,8 @@ public interface Session extends Seriali * @param allVersions * if this object is a document this parameter defines if only * this version or all versions should be deleted + * + * @cmis 1.0 */ void delete(ObjectId objectId, boolean allVersions); @@ -533,6 +611,8 @@ public interface Session extends Seriali * the id of the document * @return the content stream or null if the document has no * content stream + * + * @cmis 1.0 */ ContentStream getContentStream(ObjectId docId); @@ -552,6 +632,8 @@ public interface Session extends Seriali * * @return the content stream or null if the document has no * content stream + * + * @cmis 1.0 */ ContentStream getContentStream(ObjectId docId, String streamId, BigInteger offset, BigInteger length); @@ -567,6 +649,8 @@ public interface Session extends Seriali * express the ACL with basic and repository specific permissions * * @return the ACL of the object + * + * @cmis 1.0 */ Acl getAcl(ObjectId objectId, boolean onlyBasicPermissions); @@ -589,6 +673,8 @@ public interface Session extends Seriali * {@link AclPropagation#REPOSITORYDETERMINED} * * @return the new ACL of the object + * + * @cmis 1.0 */ Acl applyAcl(ObjectId objectId, List addAces, List removeAces, AclPropagation aclPropagation); @@ -604,6 +690,8 @@ public interface Session extends Seriali * list of ACEs to be set * * @return the new ACL of the object + * + * @cmis 1.0 */ Acl setAcl(ObjectId objectId, List aces); @@ -617,6 +705,8 @@ public interface Session extends Seriali * the id the object * @param policyIds * the ids of the policies to be applied + * + * @cmis 1.0 */ void applyPolicy(ObjectId objectId, ObjectId... policyIds); @@ -630,6 +720,8 @@ public interface Session extends Seriali * the id the object * @param policyIds * the ids of the policies to be removed + * + * @cmis 1.0 */ void removePolicy(ObjectId objectId, ObjectId... policyIds); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/SessionFactory.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/SessionFactory.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/SessionFactory.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/SessionFactory.java Fri May 17 16:05:18 2013 @@ -29,10 +29,9 @@ import org.apache.chemistry.opencmis.com * class implementation needs to be retrieved by any runtime lookup call. This * can for instance be a J2EE JNDI lookup or an OSGi service lookup. *

- * The entries of the parameter map are defined by SessionParameter + * The entries of the parameter map are defined by {@link SessionParameter} * class which is part of the commons package. Parameters specify connection - * settings (user name, authentication, connection url, binding type (soap or - * atom pub) ...). + * settings (user name, authentication, connection URL, binding type, etc.). *

* The Session class which is constructed is either the * session base class which is the default implementation or it can Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/PropertyIds.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/PropertyIds.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/PropertyIds.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/PropertyIds.java Fri May 17 16:05:18 2013 @@ -27,57 +27,87 @@ public final class PropertyIds { } // ---- base ---- + /** @cmis 1.0 */ public static final String NAME = "cmis:name"; + /** @cmis 1.0 */ public static final String OBJECT_ID = "cmis:objectId"; + /** @cmis 1.0 */ public static final String OBJECT_TYPE_ID = "cmis:objectTypeId"; + /** @cmis 1.0 */ public static final String BASE_TYPE_ID = "cmis:baseTypeId"; + /** @cmis 1.0 */ public static final String CREATED_BY = "cmis:createdBy"; + /** @cmis 1.0 */ public static final String CREATION_DATE = "cmis:creationDate"; + /** @cmis 1.0 */ public static final String LAST_MODIFIED_BY = "cmis:lastModifiedBy"; + /** @cmis 1.0 */ public static final String LAST_MODIFICATION_DATE = "cmis:lastModificationDate"; + /** @cmis 1.0 */ public static final String CHANGE_TOKEN = "cmis:changeToken"; - - // CMIS 1.1 + /** @cmis 1.1 */ public static final String DESCRIPTION = "cmis:description"; + /** @cmis 1.1 */ public static final String SECONDARY_OBJECT_TYPE_IDS = "cmis:secondaryObjectTypeIds"; // ---- document ---- + /** @cmis 1.0 */ public static final String IS_IMMUTABLE = "cmis:isImmutable"; + /** @cmis 1.0 */ public static final String IS_LATEST_VERSION = "cmis:isLatestVersion"; + /** @cmis 1.0 */ public static final String IS_MAJOR_VERSION = "cmis:isMajorVersion"; + /** @cmis 1.0 */ public static final String IS_LATEST_MAJOR_VERSION = "cmis:isLatestMajorVersion"; + /** @cmis 1.0 */ public static final String VERSION_LABEL = "cmis:versionLabel"; + /** @cmis 1.0 */ public static final String VERSION_SERIES_ID = "cmis:versionSeriesId"; + /** @cmis 1.0 */ public static final String IS_VERSION_SERIES_CHECKED_OUT = "cmis:isVersionSeriesCheckedOut"; + /** @cmis 1.0 */ public static final String VERSION_SERIES_CHECKED_OUT_BY = "cmis:versionSeriesCheckedOutBy"; + /** @cmis 1.0 */ public static final String VERSION_SERIES_CHECKED_OUT_ID = "cmis:versionSeriesCheckedOutId"; + /** @cmis 1.0 */ public static final String CHECKIN_COMMENT = "cmis:checkinComment"; + /** @cmis 1.0 */ public static final String CONTENT_STREAM_LENGTH = "cmis:contentStreamLength"; + /** @cmis 1.0 */ public static final String CONTENT_STREAM_MIME_TYPE = "cmis:contentStreamMimeType"; + /** @cmis 1.0 */ public static final String CONTENT_STREAM_FILE_NAME = "cmis:contentStreamFileName"; + /** @cmis 1.0 */ public static final String CONTENT_STREAM_ID = "cmis:contentStreamId"; - - // CMIS 1.1 + /** @cmis 1.1 */ public static final String IS_PRIVATE_WORKING_COPY = "cmis:isPrivateWorkingCopy"; // ---- folder ---- + /** @cmis 1.0 */ public static final String PARENT_ID = "cmis:parentId"; + /** @cmis 1.0 */ public static final String ALLOWED_CHILD_OBJECT_TYPE_IDS = "cmis:allowedChildObjectTypeIds"; + /** @cmis 1.0 */ public static final String PATH = "cmis:path"; // ---- relationship ---- + /** @cmis 1.0 */ public static final String SOURCE_ID = "cmis:sourceId"; + /** @cmis 1.0 */ public static final String TARGET_ID = "cmis:targetId"; // ---- policy ---- + /** @cmis 1.0 */ public static final String POLICY_TEXT = "cmis:policyText"; // ---- retention --- - // CMIS 1.1 + /** @cmis 1.1 */ public static final String EXPIRATION_DATE = "cmis:rm_expirationDate"; + /** @cmis 1.1 */ public static final String START_OF_RETENTION = "cmis:rm_startOfRetention"; + /** @cmis 1.1 */ public static final String DESTRUCTION_DATE = "cmis:rm_destructionDate"; - + /** @cmis 1.1 */ public static final String HOLD_IDS = "cmis:rm_holdIds"; } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/AclCapabilities.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/AclCapabilities.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/AclCapabilities.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/AclCapabilities.java Fri May 17 16:05:18 2013 @@ -26,6 +26,11 @@ import org.apache.chemistry.opencmis.com import org.apache.chemistry.opencmis.commons.enums.AclPropagation; import org.apache.chemistry.opencmis.commons.enums.SupportedPermissions; +/** + * Acl Capabilities. + * + * @cmis 1.0 + */ public interface AclCapabilities extends Serializable, ExtensionsData { SupportedPermissions getSupportedPermissions(); Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/AllowableActions.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/AllowableActions.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/AllowableActions.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/AllowableActions.java Fri May 17 16:05:18 2013 @@ -22,8 +22,18 @@ import java.util.Set; import org.apache.chemistry.opencmis.commons.enums.Action; +/** + * Allowable Actions. + * + * @cmis 1.0 + */ public interface AllowableActions extends ExtensionsData { + /** + * Returns the set of Allowable Actions. + * + * @cmis 1.0 + */ Set getAllowableActions(); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/BulkUpdateObjectIdAndChangeToken.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/BulkUpdateObjectIdAndChangeToken.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/BulkUpdateObjectIdAndChangeToken.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/BulkUpdateObjectIdAndChangeToken.java Fri May 17 16:05:18 2013 @@ -18,6 +18,11 @@ */ package org.apache.chemistry.opencmis.commons.data; +/** + * Holder for bulkUpdateObject data. + * + * @cmis 1.1 + */ public interface BulkUpdateObjectIdAndChangeToken extends ExtensionsData { String getId(); Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/CreatablePropertyTypes.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/CreatablePropertyTypes.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/CreatablePropertyTypes.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/CreatablePropertyTypes.java Fri May 17 16:05:18 2013 @@ -24,6 +24,8 @@ import org.apache.chemistry.opencmis.com /** * Holds the set of property data types for type creation and update. + * + * @cmis 1.1 */ public interface CreatablePropertyTypes extends ExtensionsData { @@ -32,6 +34,8 @@ public interface CreatablePropertyTypes * a type definition. * * @return the available set of property data types. + * + * @cmis 1.1 */ Set canCreate(); Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/ExtensionFeature.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/ExtensionFeature.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/ExtensionFeature.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/ExtensionFeature.java Fri May 17 16:05:18 2013 @@ -23,7 +23,9 @@ import java.io.Serializable; import java.util.Map; /** - * Representation of an extension feature; + * Representation of an extension feature. + * + * @cmis 1.1 */ public interface ExtensionFeature extends Serializable, ExtensionsData { @@ -31,6 +33,8 @@ public interface ExtensionFeature extend * Returns the unique feature id. * * @return feature id + * + * @cmis 1.1 */ String getId(); @@ -38,6 +42,8 @@ public interface ExtensionFeature extend * Returns a URL that provides more information about the feature. * * @return feature URL + * + * @cmis 1.1 */ String getUrl(); @@ -45,6 +51,8 @@ public interface ExtensionFeature extend * Returns a human-readable name for the feature. * * @return feature name + * + * @cmis 1.1 */ String getCommonName(); @@ -52,6 +60,8 @@ public interface ExtensionFeature extend * Returns a feature version label. * * @return feature version label + * + * @cmis 1.1 */ String getVersionLabel(); @@ -59,13 +69,17 @@ public interface ExtensionFeature extend * Returns a human-readable description of the feature. * * @return feature description + * + * @cmis 1.1 */ String getDescription(); /** * Returns extra feature data. * - * @return key-value pairs of extra data. + * @return key-value pairs of extra data + * + * @cmis 1.1 */ Map getFeatureData(); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/FailedToDeleteData.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/FailedToDeleteData.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/FailedToDeleteData.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/FailedToDeleteData.java Fri May 17 16:05:18 2013 @@ -20,7 +20,19 @@ package org.apache.chemistry.opencmis.co import java.util.List; +import org.apache.chemistry.opencmis.commons.spi.ObjectService; + +/** + * Holder for object ids of objects that could not be deleted. + * + * @see ObjectService#deleteTree(String, String, Boolean, + * org.apache.chemistry.opencmis.commons.enums.UnfileObject, Boolean, + * ExtensionsData) + */ public interface FailedToDeleteData extends ExtensionsData { + /** + * Returns the list of object ids of the objects that haven't been deleted. + */ List getIds(); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/NewTypeSettableAttributes.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/NewTypeSettableAttributes.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/NewTypeSettableAttributes.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/NewTypeSettableAttributes.java Fri May 17 16:05:18 2013 @@ -21,6 +21,8 @@ package org.apache.chemistry.opencmis.co /** * A collection of flags that indicate which type attributes can be set at type * creation. + * + * @cmis 1.1 */ public interface NewTypeSettableAttributes extends ExtensionsData { @@ -29,6 +31,8 @@ public interface NewTypeSettableAttribut * * @return true if the "id" attribute can be set, * false otherwise + * + * @cmis 1.1 */ Boolean canSetId(); @@ -37,6 +41,8 @@ public interface NewTypeSettableAttribut * * @return true if the "localName" attribute can be set, * false otherwise + * + * @cmis 1.1 */ Boolean canSetLocalName(); @@ -45,6 +51,8 @@ public interface NewTypeSettableAttribut * * @return true if the "localNamespace" attribute can be set, * false otherwise + * + * @cmis 1.1 */ Boolean canSetLocalNamespace(); @@ -53,6 +61,8 @@ public interface NewTypeSettableAttribut * * @return true if the "displayName" attribute can be set, * false otherwise + * + * @cmis 1.1 */ Boolean canSetDisplayName(); @@ -61,6 +71,8 @@ public interface NewTypeSettableAttribut * * @return true if the "queryName" attribute can be set, * false otherwise + * + * @cmis 1.1 */ Boolean canSetQueryName(); @@ -69,6 +81,7 @@ public interface NewTypeSettableAttribut * * @return true if the "description" attribute can be set, * false otherwise + * @cmis 1.1 */ Boolean canSetDescription(); @@ -77,6 +90,8 @@ public interface NewTypeSettableAttribut * * @return true if the "creatable" attribute can be set, * false otherwise + * + * @cmis 1.1 */ Boolean canSetCreatable(); @@ -85,6 +100,8 @@ public interface NewTypeSettableAttribut * * @return true if the "fileable" attribute can be set, * false otherwise + * + * @cmis 1.1 */ Boolean canSetFileable(); @@ -93,6 +110,8 @@ public interface NewTypeSettableAttribut * * @return true if the "queryable" attribute can be set, * false otherwise + * + * @cmis 1.1 */ Boolean canSetQueryable(); @@ -109,6 +128,8 @@ public interface NewTypeSettableAttribut * * @return true if the "includedInSupertypeQuery" attribute can * be set, false otherwise + * + * @cmis 1.1 */ Boolean canSetIncludedInSupertypeQuery(); @@ -117,6 +138,8 @@ public interface NewTypeSettableAttribut * * @return true if the "controllablePolicy" attribute can be * set, false otherwise + * + * @cmis 1.1 */ Boolean canSetControllablePolicy(); @@ -125,6 +148,8 @@ public interface NewTypeSettableAttribut * * @return true if the "controllableACL" attribute can be set, * false otherwise + * + * @cmis 1.1 */ Boolean canSetControllableAcl(); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/ObjectData.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/ObjectData.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/ObjectData.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/ObjectData.java Fri May 17 16:05:18 2013 @@ -23,7 +23,7 @@ import java.util.List; import org.apache.chemistry.opencmis.commons.enums.BaseTypeId; /** - * Base object for CMIS documents, folders, relationships and policies. + * Base object for CMIS documents, folders, relationships, policies, and items. */ public interface ObjectData extends ExtensionsData { Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/Properties.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/Properties.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/Properties.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/Properties.java Fri May 17 16:05:18 2013 @@ -21,6 +21,9 @@ package org.apache.chemistry.opencmis.co import java.util.List; import java.util.Map; +/** + * Properties. + */ public interface Properties extends ExtensionsData { /** Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyBoolean.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyBoolean.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyBoolean.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyBoolean.java Fri May 17 16:05:18 2013 @@ -18,6 +18,9 @@ */ package org.apache.chemistry.opencmis.commons.data; +/** + * Boolean property. + */ public interface PropertyBoolean extends PropertyData { } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyDateTime.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyDateTime.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyDateTime.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyDateTime.java Fri May 17 16:05:18 2013 @@ -20,6 +20,9 @@ package org.apache.chemistry.opencmis.co import java.util.GregorianCalendar; +/** + * DateTime property. + */ public interface PropertyDateTime extends PropertyData { } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyDecimal.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyDecimal.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyDecimal.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyDecimal.java Fri May 17 16:05:18 2013 @@ -20,6 +20,9 @@ package org.apache.chemistry.opencmis.co import java.math.BigDecimal; +/** + * Decimal property. + */ public interface PropertyDecimal extends PropertyData { } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyHtml.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyHtml.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyHtml.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyHtml.java Fri May 17 16:05:18 2013 @@ -18,6 +18,9 @@ */ package org.apache.chemistry.opencmis.commons.data; +/** + * HTML property. + */ public interface PropertyHtml extends PropertyData { } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyId.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyId.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyId.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyId.java Fri May 17 16:05:18 2013 @@ -18,6 +18,9 @@ */ package org.apache.chemistry.opencmis.commons.data; +/** + * Id property. + */ public interface PropertyId extends PropertyData { } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyInteger.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyInteger.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyInteger.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyInteger.java Fri May 17 16:05:18 2013 @@ -20,6 +20,9 @@ package org.apache.chemistry.opencmis.co import java.math.BigInteger; +/** + * Integer property. + */ public interface PropertyInteger extends PropertyData { } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyString.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyString.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyString.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyString.java Fri May 17 16:05:18 2013 @@ -18,6 +18,9 @@ */ package org.apache.chemistry.opencmis.commons.data; +/** + * String property. + */ public interface PropertyString extends PropertyData { } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyUri.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyUri.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyUri.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/PropertyUri.java Fri May 17 16:05:18 2013 @@ -18,6 +18,9 @@ */ package org.apache.chemistry.opencmis.commons.data; +/** + * URI property. + */ public interface PropertyUri extends PropertyData { } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/RenditionData.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/RenditionData.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/RenditionData.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/RenditionData.java Fri May 17 16:05:18 2013 @@ -20,21 +20,54 @@ package org.apache.chemistry.opencmis.co import java.math.BigInteger; +/** + * Rendition. + * + * @cmis 1.0 + */ public interface RenditionData extends ExtensionsData { + /** + * Returns the stream id of the rendition. + */ String getStreamId(); + /** + * Returns the MIME type of the rendition. + */ String getMimeType(); + /** + * Returns the size of the rendition in byte if available. + */ BigInteger getBigLength(); + /** + * Returns the kind of the rendition. + *

+ * The CMIS specification only defines the kind cmis:thumbnail, + * but a repository can provide other kinds. + */ String getKind(); + /** + * Returns the title of the rendition. + */ String getTitle(); + /** + * Returns the height in pixels if the rendition is an image. + */ BigInteger getBigHeight(); + /** + * Returns the width in pixels if the rendition is an image. + */ BigInteger getBigWidth(); + /** + * Returns the object id of the rendition document if the rendition is a + * stand-alone document. + */ String getRenditionDocumentId(); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/RepositoryCapabilities.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/RepositoryCapabilities.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/RepositoryCapabilities.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/RepositoryCapabilities.java Fri May 17 16:05:18 2013 @@ -32,50 +32,118 @@ public interface RepositoryCapabilities // Object + /** + * + * @cmis 1.0 + */ CapabilityContentStreamUpdates getContentStreamUpdatesCapability(); + /** + * + * @cmis 1.0 + */ CapabilityChanges getChangesCapability(); + /** + * + * @cmis 1.0 + */ CapabilityRenditions getRenditionsCapability(); // Navigation + /** + * + * @cmis 1.0 + */ Boolean isGetDescendantsSupported(); + /** + * + * @cmis 1.0 + */ Boolean isGetFolderTreeSupported(); + /** + * + * @cmis 1.1 + */ CapabilityOrderBy getOrderByCapability(); // Filing + /** + * + * @cmis 1.0 + */ Boolean isMultifilingSupported(); + /** + * + * @cmis 1.0 + */ Boolean isUnfilingSupported(); + /** + * + * @cmis 1.0 + */ Boolean isVersionSpecificFilingSupported(); // Versioning + /** + * + * @cmis 1.0 + */ Boolean isPwcSearchableSupported(); + /** + * + * @cmis 1.0 + */ Boolean isPwcUpdatableSupported(); + /** + * + * @cmis 1.0 + */ Boolean isAllVersionsSearchableSupported(); // Query + /** + * + * @cmis 1.0 + */ CapabilityQuery getQueryCapability(); + /** + * + * @cmis 1.0 + */ CapabilityJoin getJoinCapability(); // ACLs + /** + * + * @cmis 1.0 + */ CapabilityAcl getAclCapability(); // Type mutability + /** + * + * @cmis 1.1 + */ CreatablePropertyTypes getCreatablePropertyTypes(); + /** + * + * @cmis 1.1 + */ NewTypeSettableAttributes getNewTypeSettableAttributes(); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/RepositoryInfo.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/RepositoryInfo.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/RepositoryInfo.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/data/RepositoryInfo.java Fri May 17 16:05:18 2013 @@ -24,41 +24,146 @@ import java.util.List; import org.apache.chemistry.opencmis.commons.enums.BaseTypeId; import org.apache.chemistry.opencmis.commons.enums.CmisVersion; +/** + * Repository Info. + * + * @cmis 1.0 + */ public interface RepositoryInfo extends Serializable, ExtensionsData { + /** + * Returns the repository id. + * + * @cmis 1.0 + */ String getId(); + /** + * Returns the repository name. + * + * @cmis 1.0 + */ String getName(); + /** + * Returns the repository description. + * + * @cmis 1.0 + */ String getDescription(); + /** + * Returns the repository vendor name. + * + * @cmis 1.0 + */ String getVendorName(); + /** + * Returns the repository product name. + * + * @cmis 1.0 + */ String getProductName(); + /** + * Returns the repository product version. + * + * @cmis 1.0 + */ String getProductVersion(); + /** + * Returns the object id of the root folder. + * + * @cmis 1.0 + */ String getRootFolderId(); + /** + * Returns the repository capabilities. + * + * @cmis 1.0 + */ RepositoryCapabilities getCapabilities(); + /** + * Returns the ACL capabilities. + * + * @cmis 1.0 + */ AclCapabilities getAclCapabilities(); + /** + * Returns the latest changelog token. + * + * @cmis 1.0 + */ String getLatestChangeLogToken(); + /** + * Returns the CMIS version supported by this repository as a string. + * + * @cmis 1.0 + */ String getCmisVersionSupported(); - + + /** + * Returns the CMIS version supported by this repository as a + * {@link CmisVersion} enum. + * + * @cmis 1.0 + */ CmisVersion getCmisVersion(); + /** + * Returns the URL of a web interface for this repository if available. + * + * @cmis 1.0 + */ String getThinClientUri(); + /** + * Indicates whether the entries in the changelog are incomplete or + * complete. + * + * @cmis 1.0 + */ Boolean getChangesIncomplete(); + /** + * Returns which types of objects are considered in the changelog. + * + * @cmis 1.0 + */ List getChangesOnType(); + /** + * Returns principal id for an anonymous user (any authenticated user). This + * principal id is supposed to be used in an {@link Ace}. + * + * @return principal id for an anonymous user or null if the + * repository does not support anonymous users + * + * @cmis 1.0 + */ String getPrincipalIdAnonymous(); + /** + * Returns principal id for unauthenticated user (guest user). This + * principal id is supposed to be used in an {@link Ace}. + * + * @return principal id for unauthenticated user or null if the + * repository does not support unauthenticated users + * + * @cmis 1.0 + */ String getPrincipalIdAnyone(); + /** + * Returns the list of CMIS extensions supported by this repository. + * + * @cmis 1.1 + */ List getExtensionFeatures(); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/Choice.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/Choice.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/Choice.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/Choice.java Fri May 17 16:05:18 2013 @@ -21,11 +21,23 @@ package org.apache.chemistry.opencmis.co import java.io.Serializable; import java.util.List; +/** + * Choice value interface. + * + * @cmis 1.0 + */ public interface Choice extends Serializable { - String getDisplayName(); + /** + * Return the display name of the choice value. + */ + String getDisplayName(); - List getValue(); + /** + * Return the value of the choice value. Single value properties return a + * list with exactly one value. + */ + List getValue(); - List> getChoice(); + List> getChoice(); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/DocumentTypeDefinition.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/DocumentTypeDefinition.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/DocumentTypeDefinition.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/DocumentTypeDefinition.java Fri May 17 16:05:18 2013 @@ -20,9 +20,24 @@ package org.apache.chemistry.opencmis.co import org.apache.chemistry.opencmis.commons.enums.ContentStreamAllowed; +/** + * Document Type Definition. + * + * @cmis 1.0 + */ public interface DocumentTypeDefinition extends TypeDefinition { + /** + * Returns whether objects of this type are versionable or not. + * + * @cmis 1.0 + */ Boolean isVersionable(); + /** + * Returns if a content stream must be set. + * + * @cmis 1.0 + */ ContentStreamAllowed getContentStreamAllowed(); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/FolderTypeDefinition.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/FolderTypeDefinition.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/FolderTypeDefinition.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/FolderTypeDefinition.java Fri May 17 16:05:18 2013 @@ -18,6 +18,11 @@ */ package org.apache.chemistry.opencmis.commons.definitions; +/** + * Folder Type Definition. + * + * @cmis 1.0 + */ public interface FolderTypeDefinition extends TypeDefinition { } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/ItemTypeDefinition.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/ItemTypeDefinition.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/ItemTypeDefinition.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/ItemTypeDefinition.java Fri May 17 16:05:18 2013 @@ -18,6 +18,11 @@ */ package org.apache.chemistry.opencmis.commons.definitions; +/** + * Item Type Definition. + * + * @cmis 1.1 + */ public interface ItemTypeDefinition extends TypeDefinition { } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PermissionDefinition.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PermissionDefinition.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PermissionDefinition.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PermissionDefinition.java Fri May 17 16:05:18 2013 @@ -22,9 +22,18 @@ import java.io.Serializable; import org.apache.chemistry.opencmis.commons.data.ExtensionsData; +/** + * Permission definition. + */ public interface PermissionDefinition extends Serializable, ExtensionsData { + /** + * Returns the permission id. + */ String getId(); + /** + * Returns a human readable description of the permission. + */ String getDescription(); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PolicyTypeDefinition.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PolicyTypeDefinition.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PolicyTypeDefinition.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PolicyTypeDefinition.java Fri May 17 16:05:18 2013 @@ -18,7 +18,11 @@ */ package org.apache.chemistry.opencmis.commons.definitions; - +/** + * Policy Type Definition. + * + * @cmis 1.0 + */ public interface PolicyTypeDefinition extends TypeDefinition { } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyBooleanDefinition.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyBooleanDefinition.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyBooleanDefinition.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyBooleanDefinition.java Fri May 17 16:05:18 2013 @@ -18,6 +18,8 @@ */ package org.apache.chemistry.opencmis.commons.definitions; - +/** + * Property definition of a boolean property. + */ public interface PropertyBooleanDefinition extends PropertyDefinition { } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyDateTimeDefinition.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyDateTimeDefinition.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyDateTimeDefinition.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyDateTimeDefinition.java Fri May 17 16:05:18 2013 @@ -22,7 +22,15 @@ import java.util.GregorianCalendar; import org.apache.chemistry.opencmis.commons.enums.DateTimeResolution; +/** + * Property definition of a datetime property. + */ public interface PropertyDateTimeDefinition extends PropertyDefinition { + /** + * Returns which datetime resolution is supported by this property. + * + * @see DateTimeResolution + */ DateTimeResolution getDateTimeResolution(); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyDecimalDefinition.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyDecimalDefinition.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyDecimalDefinition.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyDecimalDefinition.java Fri May 17 16:05:18 2013 @@ -22,11 +22,32 @@ import java.math.BigDecimal; import org.apache.chemistry.opencmis.commons.enums.DecimalPrecision; +/** + * Property definition of a decimal property. + */ public interface PropertyDecimalDefinition extends PropertyDefinition { + /** + * Returns the min value of this decimal. + * + * @return the min value or null if no limit is specified + */ BigDecimal getMinValue(); + /** + * Returns the max value of this decimal. + * + * @return the max value or null if no limit is specified + */ BigDecimal getMaxValue(); + /** + * Returns the precision this decimal. + * + * @return the precision or null if the decimal supports any + * value + * + * @see DecimalPrecision + */ DecimalPrecision getPrecision(); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyDefinition.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyDefinition.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyDefinition.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyDefinition.java Fri May 17 16:05:18 2013 @@ -28,6 +28,8 @@ import org.apache.chemistry.opencmis.com /** * Base property definition interface. + * + * @cmis 1.0 */ public interface PropertyDefinition extends Serializable, ExtensionsData { @@ -35,6 +37,8 @@ public interface PropertyDefinition e * Returns the property definition id. * * @return the property definition id + * + * @cmis 1.0 */ String getId(); @@ -42,6 +46,8 @@ public interface PropertyDefinition e * Returns the local name. * * @return the local name + * + * @cmis 1.0 */ String getLocalName(); @@ -49,6 +55,8 @@ public interface PropertyDefinition e * Returns the local namespace. * * @return the local namespace + * + * @cmis 1.0 */ String getLocalNamespace(); @@ -56,6 +64,8 @@ public interface PropertyDefinition e * Returns the display name. * * @return the display name + * + * @cmis 1.0 */ String getDisplayName(); @@ -63,6 +73,8 @@ public interface PropertyDefinition e * Returns the query name * * @return the query name + * + * @cmis 1.0 */ String getQueryName(); @@ -70,6 +82,8 @@ public interface PropertyDefinition e * Returns the property description. * * @return returns the description + * + * @cmis 1.0 */ String getDescription(); @@ -77,6 +91,8 @@ public interface PropertyDefinition e * Returns the property type. * * @return the property type + * + * @cmis 1.0 */ PropertyType getPropertyType(); @@ -84,6 +100,8 @@ public interface PropertyDefinition e * Returns the cardinality. * * @return the cardinality + * + * @cmis 1.0 */ Cardinality getCardinality(); @@ -91,6 +109,8 @@ public interface PropertyDefinition e * Returns the updatability. * * @return the updatability + * + * @cmis 1.0 */ Updatability getUpdatability(); @@ -100,6 +120,8 @@ public interface PropertyDefinition e * @return true - is inherited; * false - is not inherited; null - * unknown (noncompliant repository) + * + * @cmis 1.0 */ Boolean isInherited(); @@ -109,6 +131,8 @@ public interface PropertyDefinition e * @return true - is required; * false - is not required; null - * unknown (noncompliant repository) + * + * @cmis 1.0 */ Boolean isRequired(); @@ -118,6 +142,8 @@ public interface PropertyDefinition e * @return true - is queryable; * false - is not queryable; null - * unknown (noncompliant repository) + * + * @cmis 1.0 */ Boolean isQueryable(); @@ -127,6 +153,8 @@ public interface PropertyDefinition e * @return true - is Orderable; * false - is not Orderable; null - * unknown (noncompliant repository) + * + * @cmis 1.0 */ Boolean isOrderable(); @@ -136,6 +164,8 @@ public interface PropertyDefinition e * @return true - supports open choice; * false - does not support open choice; null * - unknown or not applicable + * + * @cmis 1.0 */ Boolean isOpenChoice(); @@ -144,6 +174,8 @@ public interface PropertyDefinition e * * @return the default value (list) or null if no default value * is defined + * + * @cmis 1.0 */ List getDefaultValue(); @@ -151,6 +183,8 @@ public interface PropertyDefinition e * Returns the choices for this property. * * @return the choices or null if no choices are defined + * + * @cmis 1.0 */ List> getChoices(); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyHtmlDefinition.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyHtmlDefinition.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyHtmlDefinition.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyHtmlDefinition.java Fri May 17 16:05:18 2013 @@ -18,5 +18,8 @@ */ package org.apache.chemistry.opencmis.commons.definitions; +/** + * Property definition of a HTML property. + */ public interface PropertyHtmlDefinition extends PropertyDefinition { } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyIdDefinition.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyIdDefinition.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyIdDefinition.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyIdDefinition.java Fri May 17 16:05:18 2013 @@ -18,5 +18,8 @@ */ package org.apache.chemistry.opencmis.commons.definitions; +/** + * Property definition of an Id property. + */ public interface PropertyIdDefinition extends PropertyDefinition { } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyIntegerDefinition.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyIntegerDefinition.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyIntegerDefinition.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyIntegerDefinition.java Fri May 17 16:05:18 2013 @@ -20,9 +20,22 @@ package org.apache.chemistry.opencmis.co import java.math.BigInteger; +/** + * Property definition of an integer property. + */ public interface PropertyIntegerDefinition extends PropertyDefinition { + /** + * Returns the min value of this integer. + * + * @return the min value or null if no limit is specified + */ BigInteger getMinValue(); + /** + * Returns the max value of this integer. + * + * @return the max value or null if no limit is specified + */ BigInteger getMaxValue(); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyStringDefinition.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyStringDefinition.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyStringDefinition.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyStringDefinition.java Fri May 17 16:05:18 2013 @@ -20,7 +20,16 @@ package org.apache.chemistry.opencmis.co import java.math.BigInteger; +/** + * Property definition of a string property. + */ public interface PropertyStringDefinition extends PropertyDefinition { + /** + * Returns the max length of the string. + * + * @return the max string length in characters or null if the + * the length is not limited + */ BigInteger getMaxLength(); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyUriDefinition.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyUriDefinition.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyUriDefinition.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/PropertyUriDefinition.java Fri May 17 16:05:18 2013 @@ -18,5 +18,8 @@ */ package org.apache.chemistry.opencmis.commons.definitions; +/** + * Property definition of a URI property. + */ public interface PropertyUriDefinition extends PropertyDefinition { } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/RelationshipTypeDefinition.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/RelationshipTypeDefinition.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/RelationshipTypeDefinition.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/RelationshipTypeDefinition.java Fri May 17 16:05:18 2013 @@ -20,10 +20,28 @@ package org.apache.chemistry.opencmis.co import java.util.List; - +/** + * Relationship Type Definition. + * + * @cmis 1.0 + */ public interface RelationshipTypeDefinition extends TypeDefinition { + /** + * Returns the list of type ids that are allowed as source objects. + * + * @return list of type ids or null if all types are allowed + * + * @cmis 1.0 + */ List getAllowedSourceTypeIds(); + /** + * Returns the list of type ids that are allowed as target objects. + * + * @return list of type ids or null if all types are allowed + * + * @cmis 1.0 + */ List getAllowedTargetTypeIds(); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/SecondaryTypeDefinition.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/SecondaryTypeDefinition.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/SecondaryTypeDefinition.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/SecondaryTypeDefinition.java Fri May 17 16:05:18 2013 @@ -18,6 +18,11 @@ */ package org.apache.chemistry.opencmis.commons.definitions; +/** + * Secondary Type Definition. + * + * @cmis 1.1 + */ public interface SecondaryTypeDefinition extends TypeDefinition { } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/TypeDefinition.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/TypeDefinition.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/TypeDefinition.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/TypeDefinition.java Fri May 17 16:05:18 2013 @@ -26,6 +26,8 @@ import org.apache.chemistry.opencmis.com /** * Base type definition interface. + * + * @cmis 1.0 */ public interface TypeDefinition extends Serializable, ExtensionsData { @@ -33,6 +35,8 @@ public interface TypeDefinition extends * Returns the type id. * * @return the type id + * + * @cmis 1.0 */ String getId(); @@ -40,6 +44,8 @@ public interface TypeDefinition extends * Returns the local name. * * @return the local name + * + * @cmis 1.0 */ String getLocalName(); @@ -47,6 +53,8 @@ public interface TypeDefinition extends * Returns the local namespace. * * @return the local namespace + * + * @cmis 1.0 */ String getLocalNamespace(); @@ -54,6 +62,8 @@ public interface TypeDefinition extends * Returns the display name. * * @return the display name + * + * @cmis 1.0 */ String getDisplayName(); @@ -61,6 +71,8 @@ public interface TypeDefinition extends * Returns the query name * * @return the query name + * + * @cmis 1.0 */ String getQueryName(); @@ -68,6 +80,8 @@ public interface TypeDefinition extends * Returns the property description. * * @return returns the description + * + * @cmis 1.0 */ String getDescription(); @@ -75,6 +89,8 @@ public interface TypeDefinition extends * Returns the base object type id. * * @return the base object type id + * + * @cmis 1.0 */ BaseTypeId getBaseTypeId(); @@ -83,6 +99,8 @@ public interface TypeDefinition extends * * @return the parent type id or null if the type is a base * type + * + * @cmis 1.0 */ String getParentTypeId(); @@ -92,6 +110,8 @@ public interface TypeDefinition extends * @return true if an object of this type can be created; * false if creation of objects of this type is not * possible; null - unknown (noncompliant repository) + * + * @cmis 1.0 */ Boolean isCreatable(); @@ -101,6 +121,8 @@ public interface TypeDefinition extends * @return true if an object of this type can be filed; * false if an object of this type cannot be filed; * null - unknown (noncompliant repository) + * + * @cmis 1.0 */ Boolean isFileable(); @@ -110,6 +132,8 @@ public interface TypeDefinition extends * @return true if this type is queryable; false * if this type is not queryable; null - unknown * (noncompliant repository) + * + * @cmis 1.0 */ Boolean isQueryable(); @@ -119,6 +143,8 @@ public interface TypeDefinition extends * @return true if this type is full text indexed; * false if this type is not full text indexed; * null - unknown (noncompliant repository) + * + * @cmis 1.0 */ Boolean isFulltextIndexed(); @@ -128,6 +154,8 @@ public interface TypeDefinition extends * @return true if this type is included; false if * this type is not included; null - unknown * (noncompliant repository) + * + * @cmis 1.0 */ Boolean isIncludedInSupertypeQuery(); @@ -137,6 +165,8 @@ public interface TypeDefinition extends * @return true if objects are controllable by policies; * false if objects are not controllable by policies; * null - unknown (noncompliant repository) + * + * @cmis 1.0 */ Boolean isControllablePolicy(); @@ -146,6 +176,8 @@ public interface TypeDefinition extends * @return true if objects are controllable by ACLs; * false if objects are not controllable by ACLs; * null - unknown (noncompliant repository) + * + * @cmis 1.0 */ Boolean isControllableAcl(); @@ -154,6 +186,8 @@ public interface TypeDefinition extends * * @return the property definitions or null if the property * definitions were not requested + * + * @cmis 1.0 */ Map> getPropertyDefinitions(); @@ -161,6 +195,8 @@ public interface TypeDefinition extends * Returns type mutability flags. * * @return type mutability flags + * + * @cmis 1.1 */ TypeMutability getTypeMutability(); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/TypeDefinitionContainer.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/TypeDefinitionContainer.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/TypeDefinitionContainer.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/TypeDefinitionContainer.java Fri May 17 16:05:18 2013 @@ -22,9 +22,19 @@ import java.util.List; import org.apache.chemistry.opencmis.commons.data.ExtensionsData; +/** + * Type Definition Container. This class is used to build a tree of type + * definitions. + */ public interface TypeDefinitionContainer extends ExtensionsData { + /** + * Returns the type definition at this level. + */ TypeDefinition getTypeDefinition(); + /** + * Returns direct children of the type definition at this level. + */ List getChildren(); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/TypeDefinitionList.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/TypeDefinitionList.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/TypeDefinitionList.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/TypeDefinitionList.java Fri May 17 16:05:18 2013 @@ -23,11 +23,30 @@ import java.util.List; import org.apache.chemistry.opencmis.commons.data.ExtensionsData; +/** + * List of type definitions. + */ public interface TypeDefinitionList extends ExtensionsData { + /** + * Returns the list of type definitions. + */ List getList(); + /** + * Returns whether there more type definitions or not. + * + * @return true if there are more type definitions, + * false if there are no more type definitions, + * null if it's unknown + */ Boolean hasMoreItems(); + /** + * Returns the total number of type definitions. + * + * @return total number of type definitions or null if the + * total number is unknown + */ BigInteger getNumItems(); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/TypeMutability.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/TypeMutability.java?rev=1483889&r1=1483888&r2=1483889&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/TypeMutability.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/definitions/TypeMutability.java Fri May 17 16:05:18 2013 @@ -22,6 +22,8 @@ import org.apache.chemistry.opencmis.com /** * Type mutability flags. + * + * @cmis 1.1 */ public interface TypeMutability extends ExtensionsData { @@ -30,6 +32,8 @@ public interface TypeMutability extends * * @return true if a sub type can be created, * false otherwise + * + * @cmis 1.1 */ Boolean canCreate(); @@ -38,6 +42,8 @@ public interface TypeMutability extends * * @return true if this type can be updated, false * otherwise + * + * @cmis 1.1 */ Boolean canUpdate(); @@ -46,6 +52,8 @@ public interface TypeMutability extends * * @return true if this type can be deleted, false * otherwise + * + * @cmis 1.1 */ Boolean canDelete(); }