From f51be032bc5c5f2e437b281cca61274e4ea4c514 Mon Sep 17 00:00:00 2001 From: David Caruana Date: Thu, 4 Sep 2008 10:44:42 +0000 Subject: [PATCH] Merge from SEAMIST3 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10722 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .classpath | 2 + .../org/alfresco/cmis/entries.lib.atom.ftl | 108 +- .../org/alfresco/cmis/index.get.desc.xml | 6 + .../org/alfresco/cmis/index.get.html.ftl | 42 + .../org/alfresco/cmis/ns.lib.atom.ftl | 8 + .../repository/repository.get.atom.ftl | 21 +- .../store/children.get.atomfeed.ftl | 31 +- .../repository/store/children.get.desc.xml | 3 +- .../repository/store/children.post.atom.js | 56 + .../store/children.post.atomentry.201.ftl | 10 + .../repository/store/children.post.desc.xml | 9 + .../repository/store/children.post.js | 9 + .../repository/store/content.get.desc.xml | 5 +- .../repository/store/parent.get.atomfeed.ftl | 37 +- .../repository/store/parent.get.desc.xml | 1 + .../repository/store/parents.get.atomfeed.ftl | 39 +- .../repository/store/parents.get.desc.xml | 1 + .../store/properties.get.atomentry.ftl | 10 + .../repository/store/properties.get.desc.xml | 10 + .../repository/store/properties.get.js | 17 + .../repository/store/unfiled.get.desc.xml | 1 + .../web-scripts-application-context.xml | 11 +- .../repo/cmis/ws/AddDocumentToFolder.java | 94 + .../cmis/ws/AddDocumentToFolderResponse.java | 36 + .../repo/cmis/ws/AllowableActionsEnum.java | 94 + .../repo/cmis/ws/AlreadyExistsException.java | 46 + .../org/alfresco/repo/cmis/ws/BasicFault.java | 91 + .../alfresco/repo/cmis/ws/CancelCheckOut.java | 66 + .../repo/cmis/ws/CancelCheckOutResponse.java | 36 + .../repo/cmis/ws/CapabilitiesType.java | 94 + .../repo/cmis/ws/CardinalityEnum.java | 49 + .../org/alfresco/repo/cmis/ws/CheckIn.java | 178 ++ .../repo/cmis/ws/CheckInResponse.java | 66 + .../org/alfresco/repo/cmis/ws/CheckOut.java | 66 + .../repo/cmis/ws/CheckOutResponse.java | 86 + .../org/alfresco/repo/cmis/ws/Children.java | 73 + .../org/alfresco/repo/cmis/ws/ChoiceType.java | 115 ++ .../repo/cmis/ws/ConcurrencyException.java | 46 + .../cmis/ws/ConstraintViolationException.java | 46 + .../alfresco/repo/cmis/ws/ContentStream.java | 148 ++ .../alfresco/repo/cmis/ws/CreateDocument.java | 178 ++ .../repo/cmis/ws/CreateDocumentResponse.java | 66 + .../alfresco/repo/cmis/ws/CreateFolder.java | 122 ++ .../repo/cmis/ws/CreateFolderResponse.java | 66 + .../repo/cmis/ws/CreateRelationship.java | 150 ++ .../cmis/ws/CreateRelationshipResponse.java | 66 + .../repo/cmis/ws/DeleteAllVersions.java | 66 + .../cmis/ws/DeleteAllVersionsResponse.java | 36 + .../repo/cmis/ws/DeleteContentStream.java | 66 + .../cmis/ws/DeleteContentStreamResponse.java | 36 + .../alfresco/repo/cmis/ws/DeleteObject.java | 66 + .../repo/cmis/ws/DeleteObjectResponse.java | 36 + .../org/alfresco/repo/cmis/ws/DeleteTree.java | 122 ++ .../repo/cmis/ws/DeleteTreeResponse.java | 139 ++ .../cmis/ws/DeleteWithMultiFilingEnum.java | 52 + .../cmis/ws/DocumentAndFolderCollection.java | 73 + .../repo/cmis/ws/DocumentCollection.java | 73 + ...ocumentFolderOrRelationshipObjectType.java | 92 + .../repo/cmis/ws/DocumentObjectType.java | 436 +++++ .../cmis/ws/DocumentOrFolderObjectType.java | 92 + .../repo/cmis/ws/FilterNotValidException.java | 46 + .../repo/cmis/ws/FolderCollection.java | 73 + .../repo/cmis/ws/FolderNotValidException.java | 46 + .../repo/cmis/ws/FolderObjectType.java | 155 ++ .../alfresco/repo/cmis/ws/GetAllVersions.java | 94 + .../repo/cmis/ws/GetAllVersionsResponse.java | 66 + .../repo/cmis/ws/GetAllowableActions.java | 94 + .../cmis/ws/GetAllowableActionsResponse.java | 139 ++ .../repo/cmis/ws/GetCheckedoutDocs.java | 151 ++ .../cmis/ws/GetCheckedoutDocsResponse.java | 86 + .../alfresco/repo/cmis/ws/GetChildren.java | 179 ++ .../repo/cmis/ws/GetChildrenResponse.java | 86 + .../repo/cmis/ws/GetContentStream.java | 123 ++ .../cmis/ws/GetContentStreamResponse.java | 64 + .../alfresco/repo/cmis/ws/GetDescendants.java | 150 ++ .../repo/cmis/ws/GetDescendantsResponse.java | 66 + .../repo/cmis/ws/GetDocumentParents.java | 94 + .../cmis/ws/GetDocumentParentsResponse.java | 66 + .../repo/cmis/ws/GetFolderParent.java | 122 ++ .../repo/cmis/ws/GetFolderParentResponse.java | 66 + .../alfresco/repo/cmis/ws/GetProperties.java | 122 ++ .../repo/cmis/ws/GetPropertiesResponse.java | 66 + .../repo/cmis/ws/GetRelationships.java | 235 +++ .../cmis/ws/GetRelationshipsResponse.java | 86 + .../repo/cmis/ws/GetRepositoryInfo.java | 36 + .../cmis/ws/GetRepositoryInfoResponse.java | 66 + .../alfresco/repo/cmis/ws/GetRootFolder.java | 66 + .../repo/cmis/ws/GetRootFolderResponse.java | 66 + .../repo/cmis/ws/GetTypeDefinition.java | 94 + .../cmis/ws/GetTypeDefinitionResponse.java | 86 + .../org/alfresco/repo/cmis/ws/GetTypes.java | 151 ++ .../alfresco/repo/cmis/ws/GetTypesEnum.java | 55 + .../repo/cmis/ws/GetTypesResponse.java | 159 ++ .../alfresco/repo/cmis/ws/GetUnfiledDocs.java | 123 ++ .../repo/cmis/ws/GetUnfiledDocsResponse.java | 86 + .../cmis/ws/InvalidArgumentException.java | 46 + .../org/alfresco/repo/cmis/ws/MoveObject.java | 122 ++ .../repo/cmis/ws/MoveObjectResponse.java | 36 + .../repo/cmis/ws/NavigationService.java | 58 + .../repo/cmis/ws/NavigationServicePort.java | 70 + .../repo/cmis/ws/NotInFolderException.java | 46 + .../alfresco/repo/cmis/ws/ObjectFactory.java | 933 ++++++++++ .../repo/cmis/ws/ObjectNotFoundException.java | 46 + .../alfresco/repo/cmis/ws/ObjectService.java | 58 + .../repo/cmis/ws/ObjectServicePort.java | 152 ++ .../alfresco/repo/cmis/ws/ObjectTypeBase.java | 287 +++ .../cmis/ws/ObjectTypeDefinitionType.java | 326 ++++ .../repo/cmis/ws/OffsetException.java | 46 + .../ws/OperationNotSupportedException.java | 46 + .../cmis/ws/PermissionDeniedException.java | 46 + .../org/alfresco/repo/cmis/ws/Property.java | 118 ++ .../repo/cmis/ws/PropertyAttributesType.java | 354 ++++ .../org/alfresco/repo/cmis/ws/Query.java | 151 ++ .../alfresco/repo/cmis/ws/QueryResponse.java | 86 + .../repo/cmis/ws/RelationshipCollection.java | 73 + .../cmis/ws/RelationshipDirectionEnum.java | 52 + .../repo/cmis/ws/RelationshipObjectType.java | 127 ++ .../cmis/ws/RemoveDocumentFromFolder.java | 94 + .../ws/RemoveDocumentFromFolderResponse.java | 36 + .../repo/cmis/ws/RepositoryInfoType.java | 286 +++ .../repo/cmis/ws/RepositoryService.java | 58 + .../repo/cmis/ws/RepositoryServicePort.java | 60 + .../repo/cmis/ws/RuntimeException.java | 46 + .../repo/cmis/ws/SetContentStream.java | 122 ++ .../cmis/ws/SetContentStreamResponse.java | 36 + .../repo/cmis/ws/StorageException.java | 46 + .../cmis/ws/StreamNotSupportedException.java | 46 + .../repo/cmis/ws/TypeNotFoundException.java | 46 + .../repo/cmis/ws/TypesOfObjectsEnum.java | 52 + .../repo/cmis/ws/UpdatabilityEnum.java | 52 + .../repo/cmis/ws/UpdateProperties.java | 122 ++ .../cmis/ws/UpdatePropertiesResponse.java | 36 + .../alfresco/repo/cmis/ws/VersionEnum.java | 52 + .../repo/cmis/ws/VersioningStateEnum.java | 52 + .../alfresco/repo/cmis/ws/package-info.java | 2 + source/java/org/alfresco/repo/cmis/Index.java | 74 + .../cmis/ws/AuthenticationInterceptor.java | 58 + .../AuthenticationTokenCallbackHandler.java | 84 + .../alfresco/repo/cmis/ws/CmisProperty.java | 66 + .../repo/cmis/ws/DMAbstractServicePort.java | 509 ++++++ .../repo/cmis/ws/DMNavigationServicePort.java | 245 +++ .../repo/cmis/ws/DMObjectServicePort.java | 459 +++++ .../repo/cmis/ws/DMRepositoryServicePort.java | 203 ++ .../cmis/ws/DMServicePortThrowsAdvice.java | 64 + .../alfresco/repo/cmis/ws/ExceptionUtils.java | 55 + .../org/alfresco/repo/cmis/ws/OIDType.java | 52 + .../org/alfresco/repo/cmis/ws/OIDUtils.java | 111 ++ .../alfresco/repo/cmis/ws/PropertyFilter.java | 97 + .../repo/web/scripts/content/ContentGet.java | 13 +- .../web/scripts/content/StreamContent.java | 2 - .../import-for-cmis-ws-test.acp | Bin 0 -> 2751 bytes source/test-resources/test-cmis-context.xml | 96 + source/test/apptest/results.html | 1625 +++++++++++++++-- .../repo/cmis/ws/AbstractServiceTest.java | 105 ++ .../cmis/ws/BaseServicePortContentTest.java | 144 ++ .../repo/cmis/ws/BaseServicePortTest.java | 102 ++ .../cmis/ws/DMNavigationServicePortTest.java | 251 +++ .../repo/cmis/ws/DMObjectServicePortTest.java | 231 +++ .../repo/cmis/ws/DMObjectServiceTest.java | 104 ++ .../cmis/ws/DMRepositoryServicePortTest.java | 36 + .../repo/cmis/ws/DMRepositoryServiceTest.java | 65 + source/test/resources/create.atomentry.xml | 18 + source/test/wcftest/CmisTest.exe | Bin 0 -> 42496 bytes source/test/wcftest/CmisTest.exe.config | 38 + source/test/wcftest/CmisTest.zip | Bin 0 -> 14470 bytes source/wsdl/NavigationService.wsdl | 252 +++ source/wsdl/ObjectService.wsdl | 493 +++++ source/wsdl/RepositoryService.wsdl | 173 ++ source/wsdl/cmisMessageTypes.xsd | 772 ++++++++ source/wsdl/cmisObjectTypes.xsd | 240 +++ 170 files changed, 18520 insertions(+), 203 deletions(-) create mode 100644 config/alfresco/templates/webscripts/org/alfresco/cmis/index.get.desc.xml create mode 100644 config/alfresco/templates/webscripts/org/alfresco/cmis/index.get.html.ftl create mode 100644 config/alfresco/templates/webscripts/org/alfresco/cmis/ns.lib.atom.ftl create mode 100644 config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.atom.js create mode 100644 config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.atomentry.201.ftl create mode 100644 config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.desc.xml create mode 100644 config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.js create mode 100644 config/alfresco/templates/webscripts/org/alfresco/repository/store/properties.get.atomentry.ftl create mode 100644 config/alfresco/templates/webscripts/org/alfresco/repository/store/properties.get.desc.xml create mode 100644 config/alfresco/templates/webscripts/org/alfresco/repository/store/properties.get.js create mode 100644 source/generated/org/alfresco/repo/cmis/ws/AddDocumentToFolder.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/AddDocumentToFolderResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/AllowableActionsEnum.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/AlreadyExistsException.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/BasicFault.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/CancelCheckOut.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/CancelCheckOutResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/CapabilitiesType.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/CardinalityEnum.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/CheckIn.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/CheckInResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/CheckOut.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/CheckOutResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/Children.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/ChoiceType.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/ConcurrencyException.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/ConstraintViolationException.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/ContentStream.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/CreateDocument.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/CreateDocumentResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/CreateFolder.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/CreateFolderResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/CreateRelationship.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/CreateRelationshipResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/DeleteAllVersions.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/DeleteAllVersionsResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/DeleteContentStream.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/DeleteContentStreamResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/DeleteObject.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/DeleteObjectResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/DeleteTree.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/DeleteTreeResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/DeleteWithMultiFilingEnum.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/DocumentAndFolderCollection.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/DocumentCollection.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/DocumentFolderOrRelationshipObjectType.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/DocumentObjectType.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/DocumentOrFolderObjectType.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/FilterNotValidException.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/FolderCollection.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/FolderNotValidException.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/FolderObjectType.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetAllVersions.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetAllVersionsResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetAllowableActions.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetAllowableActionsResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocs.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocsResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetChildren.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetChildrenResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetContentStream.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetContentStreamResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetDescendants.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetDescendantsResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetDocumentParents.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetDocumentParentsResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetFolderParent.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetFolderParentResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetProperties.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetPropertiesResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetRelationships.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetRelationshipsResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetRepositoryInfo.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetRepositoryInfoResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetRootFolder.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetRootFolderResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetTypeDefinition.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetTypeDefinitionResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetTypes.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetTypesEnum.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetTypesResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetUnfiledDocs.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/GetUnfiledDocsResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/InvalidArgumentException.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/MoveObject.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/MoveObjectResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/NavigationService.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/NavigationServicePort.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/NotInFolderException.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/ObjectFactory.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/ObjectNotFoundException.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/ObjectService.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/ObjectServicePort.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/ObjectTypeBase.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/ObjectTypeDefinitionType.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/OffsetException.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/OperationNotSupportedException.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/PermissionDeniedException.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/Property.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/PropertyAttributesType.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/Query.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/QueryResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/RelationshipCollection.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/RelationshipDirectionEnum.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/RelationshipObjectType.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/RemoveDocumentFromFolder.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/RemoveDocumentFromFolderResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/RepositoryInfoType.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/RepositoryService.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/RepositoryServicePort.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/RuntimeException.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/SetContentStream.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/SetContentStreamResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/StorageException.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/StreamNotSupportedException.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/TypeNotFoundException.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/TypesOfObjectsEnum.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/UpdatabilityEnum.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/UpdateProperties.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/UpdatePropertiesResponse.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/VersionEnum.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/VersioningStateEnum.java create mode 100644 source/generated/org/alfresco/repo/cmis/ws/package-info.java create mode 100644 source/java/org/alfresco/repo/cmis/Index.java create mode 100644 source/java/org/alfresco/repo/cmis/ws/AuthenticationInterceptor.java create mode 100644 source/java/org/alfresco/repo/cmis/ws/AuthenticationTokenCallbackHandler.java create mode 100644 source/java/org/alfresco/repo/cmis/ws/CmisProperty.java create mode 100644 source/java/org/alfresco/repo/cmis/ws/DMAbstractServicePort.java create mode 100644 source/java/org/alfresco/repo/cmis/ws/DMNavigationServicePort.java create mode 100644 source/java/org/alfresco/repo/cmis/ws/DMObjectServicePort.java create mode 100644 source/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePort.java create mode 100644 source/java/org/alfresco/repo/cmis/ws/DMServicePortThrowsAdvice.java create mode 100644 source/java/org/alfresco/repo/cmis/ws/ExceptionUtils.java create mode 100644 source/java/org/alfresco/repo/cmis/ws/OIDType.java create mode 100644 source/java/org/alfresco/repo/cmis/ws/OIDUtils.java create mode 100644 source/java/org/alfresco/repo/cmis/ws/PropertyFilter.java create mode 100644 source/test-resources/import-for-cmis-ws-test.acp create mode 100644 source/test-resources/test-cmis-context.xml create mode 100644 source/test/java/org/alfresco/repo/cmis/ws/AbstractServiceTest.java create mode 100644 source/test/java/org/alfresco/repo/cmis/ws/BaseServicePortContentTest.java create mode 100644 source/test/java/org/alfresco/repo/cmis/ws/BaseServicePortTest.java create mode 100644 source/test/java/org/alfresco/repo/cmis/ws/DMNavigationServicePortTest.java create mode 100644 source/test/java/org/alfresco/repo/cmis/ws/DMObjectServicePortTest.java create mode 100644 source/test/java/org/alfresco/repo/cmis/ws/DMObjectServiceTest.java create mode 100644 source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePortTest.java create mode 100644 source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServiceTest.java create mode 100644 source/test/resources/create.atomentry.xml create mode 100644 source/test/wcftest/CmisTest.exe create mode 100644 source/test/wcftest/CmisTest.exe.config create mode 100644 source/test/wcftest/CmisTest.zip create mode 100644 source/wsdl/NavigationService.wsdl create mode 100644 source/wsdl/ObjectService.wsdl create mode 100644 source/wsdl/RepositoryService.wsdl create mode 100644 source/wsdl/cmisMessageTypes.xsd create mode 100644 source/wsdl/cmisObjectTypes.xsd diff --git a/.classpath b/.classpath index 5f52aa0f80..05f0b6a38a 100644 --- a/.classpath +++ b/.classpath @@ -3,6 +3,8 @@ + + diff --git a/config/alfresco/templates/webscripts/org/alfresco/cmis/entries.lib.atom.ftl b/config/alfresco/templates/webscripts/org/alfresco/cmis/entries.lib.atom.ftl index 02a767909b..2d89e013e2 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/cmis/entries.lib.atom.ftl +++ b/config/alfresco/templates/webscripts/org/alfresco/cmis/entries.lib.atom.ftl @@ -1,39 +1,79 @@ <#macro document node> - <#-- TODO: link elements (both APP and CMIS) --> - - ${node.name} - - urn:uuid:${node.id} - ${xmldate(node.properties.modified)} - ${xmldate(node.properties.created)} - ${node.properties.description!""} - ${node.properties.creator} - ${node.nodeRef} - ${absurl(url.context)}${node.icon16} - <#-- TODO: full cmis schema --> - - ${node.id} - document - - +<#-- ATOM props --> +${node.name} +urn:uuid:${node.id} +${xmldate(node.properties.modified)} +${xmldate(node.properties.created)} +${node.properties.description!""} +${node.properties.creator} +<#-- Alfresco props --> +${node.nodeRef} +${absurl(url.context)}${node.icon16} +<#-- CMIS Schema --> + + ${node.id} + document + http://example.org/atom03 <#-- TODO: --> + document <#-- TODO: --> + Al Brown <#-- TODO: --> + 2003-12-13T18:30:02Z <#-- TODO: --> + Al Brown <#-- TODO: --> + 2003-12-13T18:30:02Z <#-- TODO: --> + true <#-- TODO: --> + false <#-- TODO: --> + 534 <#-- TODO: --> + application/msword <#-- TODO: --> + myDocument.doc <#-- TODO: --> + http://example.org/media/atom03 <#-- TODO: --> + XML <#-- TODO: --> + standards <#-- TODO: --> + +<#-- TODO: ATOM LINKS --> + + <#-- TODO: --> +<#-- CMIS LINKS --> + <#-- TODO: --> + <#-- TODO: --> + <#-- TODO: --> + <#-- TODO: --> + <#-- TODO: --> + <#-- TODO: --> <#macro folder node> - <#-- TODO: link elements (both APP and CMIS) --> - - ${node.name} - - urn:uuid:${node.id} - ${xmldate(node.properties.modified)} - ${xmldate(node.properties.created)} - ${node.properties.description!""} - ${node.properties.creator!""} - ${node.nodeRef} - ${absurl(url.context)}${node.icon16} - <#-- TODO: full cmis schema --> - - ${node.id} - folder - - +<#-- ATOM props --> +${node.name} + +urn:uuid:${node.id} +${xmldate(node.properties.modified)} +${xmldate(node.properties.created)} +${node.properties.description!""} +${node.properties.creator!""} +<#-- Alfresco props --> +${node.nodeRef} +${absurl(url.context)}${node.icon16} +<#-- CMIS Schema --> + + ${node.id} + folder + http://example.org/folders/myfolder <#-- TODO: --> + folder <#-- TODO: --> + folder <#-- TODO: --> + Al Brown <#-- TODO: --> + 2003-12-13T18:30:02Z <#-- TODO: --> + Al Brown <#-- TODO: --> + 2003-12-13T18:30:02Z <#-- TODO: --> + Atom-powered folders <#-- TODO: --> + folderIdp1 <#-- TODO: --> + <#-- In certain cases, if depth is specified children may appear Here. If there are children, the cmis:object tag will be nested For the children of this item --> + +<#-- TODO: ATOM LINKS --> + +<#-- CMIS LINKS --> + <#-- TODO: --> + <#-- TODO: --> + <#-- TODO: --> + <#-- TODO: --> + <#-- TODO: --> + <#-- TODO: --> \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/cmis/index.get.desc.xml b/config/alfresco/templates/webscripts/org/alfresco/cmis/index.get.desc.xml new file mode 100644 index 0000000000..a13ec977ce --- /dev/null +++ b/config/alfresco/templates/webscripts/org/alfresco/cmis/index.get.desc.xml @@ -0,0 +1,6 @@ + + CMIS Index + Provides an index of CMIS services + /cmis + /index/cmis + \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/cmis/index.get.html.ftl b/config/alfresco/templates/webscripts/org/alfresco/cmis/index.get.html.ftl new file mode 100644 index 0000000000..f08a4bee6d --- /dev/null +++ b/config/alfresco/templates/webscripts/org/alfresco/cmis/index.get.html.ftl @@ -0,0 +1,42 @@ + + + + Index of CMIS Services + + + + + + + + +
AlfrescoIndex of CMIS Services
${services?size} Services +
+
+ +
Back to Web Scripts Home +
+
+ <#list services as webscript> + <#assign desc = webscript.description> + ${desc.shortName} + + <#list desc.URIs as uri> +
${desc.method} ${url.serviceContext}${uri} + +
+
+ + <#if desc.description??>
Description:${desc.description}<#else> +
Authentication:${desc.requiredAuthentication} +
Transaction:${desc.requiredTransaction} +
Format Style:${desc.formatStyle} +
Default Format:${desc.defaultFormat!"Determined at run-time"} +
+
Id:${desc.id} +
Description:${desc.storePath}/${desc.descPath} +
+
+ + + \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/cmis/ns.lib.atom.ftl b/config/alfresco/templates/webscripts/org/alfresco/cmis/ns.lib.atom.ftl new file mode 100644 index 0000000000..c76ef2e2de --- /dev/null +++ b/config/alfresco/templates/webscripts/org/alfresco/cmis/ns.lib.atom.ftl @@ -0,0 +1,8 @@ +<#macro appNS>http://www.w3.org/2007/app +<#macro atomNS>http://www.w3.org/2005/Atom +<#macro cmisNS>http://www.cmis.org/CMIS/1.0 +<#macro alfNS>http://www.alfresco.org +<#macro opensearchNS>http://a9.com/-/spec/opensearch/1.1/ +<#macro serviceNS>xmlns="<@appNS/>" xmlns:atom="<@atomNS/>" xmlns:cmis="<@cmisNS/>" xmlns:alf="<@alfNS/>" +<#macro feedNS>xmlns="<@atomNS/>" xmlns:cmis="<@cmisNS/>" xmlns:alf="<@alfNS/>" xmlns:opensearch="<@opensearchNS/>" +<#macro entryNS>xmlns="<@atomNS/>" xmlns:cmis="<@cmisNS/>" xmlns:alf="<@alfNS/>" \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/repository.get.atom.ftl b/config/alfresco/templates/webscripts/org/alfresco/repository/repository.get.atom.ftl index c555684ae5..400d66136f 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/repository.get.atom.ftl +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/repository.get.atom.ftl @@ -1,20 +1,29 @@ +<#import "/org/alfresco/cmis/ns.lib.atom.ftl" as nsLib/> - +> ${server.name} - - + + <#-- TODO: cmis version --> + + + ${server.id} + ${server.name} + <#-- TODO --> Alfresco Alfresco Repository (${server.edition}) ${server.version} true + false + false false true + true + true - - - + + <#-- TODO: cmis:id on collection elements - are they required by cmis? --> <#-- TODO: collection resources --> diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.get.atomfeed.ftl b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.get.atomfeed.ftl index 2a0a2d7ee4..380d5a1b63 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.get.atomfeed.ftl +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.get.atomfeed.ftl @@ -1,22 +1,25 @@ -<#import "/org/alfresco/paging.lib.atom.ftl" as pagingLib/> +<#import "/org/alfresco/cmis/ns.lib.atom.ftl" as nsLib/> <#import "/org/alfresco/cmis/entries.lib.atom.ftl" as entriesLib/> +<#import "/org/alfresco/paging.lib.atom.ftl" as pagingLib/> - - Alfresco (${server.edition}) - ${node.name} - ${xmldate(node.properties.modified)} - ${absurl(url.context)}/images/logo/AlfrescoLogo16.ico - - ${node.properties.creator!""} - - urn:uuid:${node.id} - - <@pagingLib.cursor cursor=cursor/> +> +Alfresco (${server.edition}) +${node.name} +${xmldate(node.properties.modified)} +${absurl(url.context)}/images/logo/AlfrescoLogo16.ico + + ${node.properties.creator!""} + +urn:uuid:${node.id} + +<@pagingLib.cursor cursor=cursor/> <#list results as child> + <#if child.isDocument> - <@entriesLib.document node=child/> +<@entriesLib.document node=child/> <#else> - <@entriesLib.folder node=child/> +<@entriesLib.folder node=child/> + \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.get.desc.xml b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.get.desc.xml index d3c54a228f..23a04196d7 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.get.desc.xml +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.get.desc.xml @@ -4,5 +4,6 @@ /api/node/{store_type}/{store_id}/{id}/children?types={types}&filter={filter?}&skipCount={skipCount?}&maxChildren={maxChildren?} /api/path/{store_type}/{store_id}/{id}/children?types={types}&filter={filter?}&skipCount={skipCount?}&maxChildren={maxChildren?} guest - + argument + \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.atom.js b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.atom.js new file mode 100644 index 0000000000..d485263295 --- /dev/null +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.atom.js @@ -0,0 +1,56 @@ +script: +{ + // ensure atom entry is posted + if (entry === null) + { + status.code = 400; + status.message = "Expected atom entry"; + status.redirect = true; + break script; + } + + // locate node + var pathSegments = url.match.split("/"); + var reference = [ url.templateArgs.store_type, url.templateArgs.store_id ].concat(url.templateArgs.id.split("/")); + model.parent = cmis.findNode(pathSegments[2], reference); + if (model.parent === null) + { + status.code = 404; + status.message = "Repository " + pathSegments[2] + " " + reference.join("/") + " not found"; + status.redirect = true; + break script; + } + + // pull apart atom entry + // TODO: creation of folder + // TODO: creation of file/folder sub-types + // TODO: cmis properties + + var id = entry.id; + var name = (slug !== null) ? slug : entry.title; + var title = entry.title; + var description = entry.summary; + var updated = entry.updated; + var author = (entry.author !== null) ? entry.author.name : null; + var content = entry.content; + + // create the item + // TODO: author/updated/id + var node = model.parent.createFile(name); + node.properties.title = title; + node.properties.description = description; + if (content !== null) + { + node.content = content; + node.properties.content.encoding = "UTF-8"; + node.properties.content.mimetype = atom.toMimeType(entry); + } + node.save(); + model.node = node; + + // setup for 201 Created response + // TODO: set Content-Location + status.code = 201; + status.location = url.server + url.serviceContext + "/api/node/" + node.nodeRef.storeRef.protocol + "/" + node.nodeRef.storeRef.identifier + "/" + node.nodeRef.id + "/properties"; + status.redirect = true; +} diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.atomentry.201.ftl b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.atomentry.201.ftl new file mode 100644 index 0000000000..8ab2160d54 --- /dev/null +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.atomentry.201.ftl @@ -0,0 +1,10 @@ +<#import "/org/alfresco/cmis/ns.lib.atom.ftl" as nsLib/> +<#import "/org/alfresco/cmis/entries.lib.atom.ftl" as entriesLib/> + +> +<#if node.isDocument> + <@entriesLib.document node=node/> +<#else> + <@entriesLib.folder node=node/> + + diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.desc.xml b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.desc.xml new file mode 100644 index 0000000000..20301c7a79 --- /dev/null +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.desc.xml @@ -0,0 +1,9 @@ + + Create folder or document + + /api/node/{store_type}/{store_id}/{id}/children + /api/path/{store_type}/{store_id}/{id}/children + user + + + \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.js b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.js new file mode 100644 index 0000000000..1527e32831 --- /dev/null +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/children.post.js @@ -0,0 +1,9 @@ +script: +{ + // TODO: Handle direct posting of media + + status.code = 400; + status.message = "Posting of media resource not supported"; + status.redirect = true; + break script; +} diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/content.get.desc.xml b/config/alfresco/templates/webscripts/org/alfresco/repository/store/content.get.desc.xml index 3eae36fdaf..e563d134c4 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/store/content.get.desc.xml +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/content.get.desc.xml @@ -3,7 +3,10 @@ Stream a content property from the Repository /api/node/content{property}/{store_type}/{store_id}/{node_id}?a={attach?} /api/path/content{property}/{store_type}/{store_id}/{path}?a={attach?} - /api/avmpath/content{property}/{store_id}/{path}?a={attach?} + /api/avmpath/content{property}/{store_id}/{path}?a={attach?} + /api/node/{store_type}/{store_id}/{id}/content{property}?a={attach?} + /api/path/{store_type}/{store_id}/{id}/content{property}?a={attach?} guest argument + \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/parent.get.atomfeed.ftl b/config/alfresco/templates/webscripts/org/alfresco/repository/store/parent.get.atomfeed.ftl index f79d53f12d..b31371dcc5 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/store/parent.get.atomfeed.ftl +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/parent.get.atomfeed.ftl @@ -1,23 +1,26 @@ +<#import "/org/alfresco/cmis/ns.lib.atom.ftl" as nsLib/> <#import "/org/alfresco/cmis/entries.lib.atom.ftl" as entriesLib/> - - Alfresco (${server.edition}) - ${node.name} - ${xmldate(node.properties.modified)} - ${absurl(url.context)}/images/logo/AlfrescoLogo16.ico - - ${node.properties.creator!""} - - urn:uuid:${node.id} - - <@parent node=node.parent recurse=returnToRoot/> +> +Alfresco (${server.edition}) +${node.name} +${xmldate(node.properties.modified)} +${absurl(url.context)}/images/logo/AlfrescoLogo16.ico + + ${node.properties.creator!""} + +urn:uuid:${node.id} + +<@parent node=node.parent recurse=returnToRoot/> <#macro parent node recurse=false> - <#if node?exists && node.isContainer> - <@entriesLib.folder node=node/> - <#if recurse> - <@parent node=node.parent recurse=true/> - - +<#if node?exists && node.isContainer> + +<@entriesLib.folder node=node/> + +<#if recurse> + <@parent node=node.parent recurse=true/> + + \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/parent.get.desc.xml b/config/alfresco/templates/webscripts/org/alfresco/repository/store/parent.get.desc.xml index aa8e8e03eb..b1dfe27108 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/store/parent.get.desc.xml +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/parent.get.desc.xml @@ -5,4 +5,5 @@ /api/path/{store_type}/{store_id}/{id}/parent?returnToRoot={returnToRoot} guest argument + \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/parents.get.atomfeed.ftl b/config/alfresco/templates/webscripts/org/alfresco/repository/store/parents.get.atomfeed.ftl index c790833014..6125bfccee 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/store/parents.get.atomfeed.ftl +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/parents.get.atomfeed.ftl @@ -1,24 +1,27 @@ +<#import "/org/alfresco/cmis/ns.lib.atom.ftl" as nsLib/> <#import "/org/alfresco/cmis/entries.lib.atom.ftl" as entriesLib/> - - Alfresco (${server.edition}) - ${node.name} - ${xmldate(node.properties.modified)} - ${absurl(url.context)}/images/logo/AlfrescoLogo16.ico - - ${node.properties.creator!""} - - urn:uuid:${node.id} - - <@parent node=node.parent recurse=returnToRoot/> - <#-- TODO: secondary parents loop --> +> +Alfresco (${server.edition}) +${node.name} +${xmldate(node.properties.modified)} +${absurl(url.context)}/images/logo/AlfrescoLogo16.ico + + ${node.properties.creator!""} + +urn:uuid:${node.id} + +<@parent node=node.parent recurse=returnToRoot/> +<#-- TODO: secondary parents loop --> <#macro parent node recurse=false> - <#if node?exists && node.isContainer> - <@entriesLib.folder node=node/> - <#if recurse> - <@parent node=node.parent recurse=true/> - - +<#if node?exists && node.isContainer> + +<@entriesLib.folder node=node/> + +<#if recurse> + <@parent node=node.parent recurse=true/> + + \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/parents.get.desc.xml b/config/alfresco/templates/webscripts/org/alfresco/repository/store/parents.get.desc.xml index 669ad14305..bad01ef72b 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/store/parents.get.desc.xml +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/parents.get.desc.xml @@ -6,4 +6,5 @@ /api/path/{store_type}/{store_id}/{id}/parents guest argument + \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/properties.get.atomentry.ftl b/config/alfresco/templates/webscripts/org/alfresco/repository/store/properties.get.atomentry.ftl new file mode 100644 index 0000000000..8ab2160d54 --- /dev/null +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/properties.get.atomentry.ftl @@ -0,0 +1,10 @@ +<#import "/org/alfresco/cmis/ns.lib.atom.ftl" as nsLib/> +<#import "/org/alfresco/cmis/entries.lib.atom.ftl" as entriesLib/> + +> +<#if node.isDocument> + <@entriesLib.document node=node/> +<#else> + <@entriesLib.folder node=node/> + + diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/properties.get.desc.xml b/config/alfresco/templates/webscripts/org/alfresco/repository/store/properties.get.desc.xml new file mode 100644 index 0000000000..a5db731245 --- /dev/null +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/properties.get.desc.xml @@ -0,0 +1,10 @@ + + Retrieve properties + Retrieves the properties of the node + + /api/node/{store_type}/{store_id}/{id}/properties?filter={filter?}&returnVersion={returnVersion?} + /api/path/{store_type}/{store_id}/{id}/properties?filter={filter?}&returnVersion={returnVersion?} + guest + argument + + \ No newline at end of file diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/properties.get.js b/config/alfresco/templates/webscripts/org/alfresco/repository/store/properties.get.js new file mode 100644 index 0000000000..4be2d998a6 --- /dev/null +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/properties.get.js @@ -0,0 +1,17 @@ +script: +{ + // locate node + var pathSegments = url.match.split("/"); + var reference = [ url.templateArgs.store_type, url.templateArgs.store_id ].concat(url.templateArgs.id.split("/")); + model.node = cmis.findNode(pathSegments[2], reference); + if (model.node === null) + { + status.code = 404; + status.message = "Repository " + pathSegments[2] + " " + reference.join("/") + " not found"; + status.redirect = true; + break script; + } + + // TODO: handle version?? + // TODO: property filters +} diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/unfiled.get.desc.xml b/config/alfresco/templates/webscripts/org/alfresco/repository/store/unfiled.get.desc.xml index 43c1637069..2698020b9b 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/store/unfiled.get.desc.xml +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/unfiled.get.desc.xml @@ -4,4 +4,5 @@ /api/unfiled guest + \ No newline at end of file diff --git a/config/alfresco/web-scripts-application-context.xml b/config/alfresco/web-scripts-application-context.xml index f08f170509..cd5aaea873 100644 --- a/config/alfresco/web-scripts-application-context.xml +++ b/config/alfresco/web-scripts-application-context.xml @@ -1,5 +1,5 @@ - + @@ -94,7 +94,7 @@ Repository - + @@ -117,7 +117,7 @@ - + @@ -409,10 +409,15 @@ + + + + + diff --git a/source/generated/org/alfresco/repo/cmis/ws/AddDocumentToFolder.java b/source/generated/org/alfresco/repo/cmis/ws/AddDocumentToFolder.java new file mode 100644 index 0000000000..1f0ba66b90 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/AddDocumentToFolder.java @@ -0,0 +1,94 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for addDocumentToFolder element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="addDocumentToFolder">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId", + "folderId" +}) +@XmlRootElement(name = "addDocumentToFolder") +public class AddDocumentToFolder { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String folderId; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + + /** + * Gets the value of the folderId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFolderId() { + return folderId; + } + + /** + * Sets the value of the folderId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFolderId(String value) { + this.folderId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/AddDocumentToFolderResponse.java b/source/generated/org/alfresco/repo/cmis/ws/AddDocumentToFolderResponse.java new file mode 100644 index 0000000000..06a402cd22 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/AddDocumentToFolderResponse.java @@ -0,0 +1,36 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for addDocumentToFolderResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="addDocumentToFolderResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "addDocumentToFolderResponse") +public class AddDocumentToFolderResponse { + + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/AllowableActionsEnum.java b/source/generated/org/alfresco/repo/cmis/ws/AllowableActionsEnum.java new file mode 100644 index 0000000000..c65752dc77 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/AllowableActionsEnum.java @@ -0,0 +1,94 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + + +/** + *

Java class for allowableActionsEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="allowableActionsEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="delete"/>
+ *     <enumeration value="updateProperties"/>
+ *     <enumeration value="checkOut"/>
+ *     <enumeration value="cancelCheckOut"/>
+ *     <enumeration value="checkIn"/>
+ *     <enumeration value="deleteVersion"/>
+ *     <enumeration value="addToFolder"/>
+ *     <enumeration value="removeFromFolder"/>
+ *     <enumeration value="setContent"/>
+ *     <enumeration value="deleteContent"/>
+ *     <enumeration value="getAllVersions"/>
+ *     <enumeration value="getChilderen"/>
+ *     <enumeration value="getParents"/>
+ *     <enumeration value="getRelationships"/>
+ *     <enumeration value="getProperties"/>
+ *     <enumeration value="viewContent"/>
+ *     <enumeration value="move"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlEnum +public enum AllowableActionsEnum { + + @XmlEnumValue("addToFolder") + ADD_TO_FOLDER("addToFolder"), + @XmlEnumValue("cancelCheckOut") + CANCEL_CHECK_OUT("cancelCheckOut"), + @XmlEnumValue("checkIn") + CHECK_IN("checkIn"), + @XmlEnumValue("checkOut") + CHECK_OUT("checkOut"), + @XmlEnumValue("delete") + DELETE("delete"), + @XmlEnumValue("deleteContent") + DELETE_CONTENT("deleteContent"), + @XmlEnumValue("deleteVersion") + DELETE_VERSION("deleteVersion"), + @XmlEnumValue("getAllVersions") + GET_ALL_VERSIONS("getAllVersions"), + @XmlEnumValue("getChilderen") + GET_CHILDEREN("getChilderen"), + @XmlEnumValue("getParents") + GET_PARENTS("getParents"), + @XmlEnumValue("getProperties") + GET_PROPERTIES("getProperties"), + @XmlEnumValue("getRelationships") + GET_RELATIONSHIPS("getRelationships"), + @XmlEnumValue("move") + MOVE("move"), + @XmlEnumValue("removeFromFolder") + REMOVE_FROM_FOLDER("removeFromFolder"), + @XmlEnumValue("setContent") + SET_CONTENT("setContent"), + @XmlEnumValue("updateProperties") + UPDATE_PROPERTIES("updateProperties"), + @XmlEnumValue("viewContent") + VIEW_CONTENT("viewContent"); + private final String value; + + AllowableActionsEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AllowableActionsEnum fromValue(String v) { + for (AllowableActionsEnum c: AllowableActionsEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/AlreadyExistsException.java b/source/generated/org/alfresco/repo/cmis/ws/AlreadyExistsException.java new file mode 100644 index 0000000000..2a943e8a85 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/AlreadyExistsException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:13 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "AlreadyExistsFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class AlreadyExistsException extends Exception { + public static final long serialVersionUID = 20080527141113L; + + private org.alfresco.repo.cmis.ws.BasicFault alreadyExistsFault; + + public AlreadyExistsException() { + super(); + } + + public AlreadyExistsException(String message) { + super(message); + } + + public AlreadyExistsException(String message, Throwable cause) { + super(message, cause); + } + + public AlreadyExistsException(String message, org.alfresco.repo.cmis.ws.BasicFault alreadyExistsFault) { + super(message); + this.alreadyExistsFault = alreadyExistsFault; + } + + public AlreadyExistsException(String message, org.alfresco.repo.cmis.ws.BasicFault alreadyExistsFault, Throwable cause) { + super(message, cause); + this.alreadyExistsFault = alreadyExistsFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.alreadyExistsFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/BasicFault.java b/source/generated/org/alfresco/repo/cmis/ws/BasicFault.java new file mode 100644 index 0000000000..a6ee2a7f5c --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/BasicFault.java @@ -0,0 +1,91 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for basicFault complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="basicFault">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="errorCode" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
+ *         <element name="errorMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "basicFault", propOrder = { + "errorCode", + "errorMessage" +}) +public class BasicFault { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger errorCode; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String errorMessage; + + /** + * Gets the value of the errorCode property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getErrorCode() { + return errorCode; + } + + /** + * Sets the value of the errorCode property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setErrorCode(BigInteger value) { + this.errorCode = value; + } + + /** + * Gets the value of the errorMessage property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getErrorMessage() { + return errorMessage; + } + + /** + * Sets the value of the errorMessage property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setErrorMessage(String value) { + this.errorMessage = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CancelCheckOut.java b/source/generated/org/alfresco/repo/cmis/ws/CancelCheckOut.java new file mode 100644 index 0000000000..b3fb25bbff --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CancelCheckOut.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cancelCheckOut element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="cancelCheckOut">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId" +}) +@XmlRootElement(name = "cancelCheckOut") +public class CancelCheckOut { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CancelCheckOutResponse.java b/source/generated/org/alfresco/repo/cmis/ws/CancelCheckOutResponse.java new file mode 100644 index 0000000000..54603431ee --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CancelCheckOutResponse.java @@ -0,0 +1,36 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cancelCheckOutResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="cancelCheckOutResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "cancelCheckOutResponse") +public class CancelCheckOutResponse { + + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CapabilitiesType.java b/source/generated/org/alfresco/repo/cmis/ws/CapabilitiesType.java new file mode 100644 index 0000000000..9583eb96d2 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CapabilitiesType.java @@ -0,0 +1,94 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for capabilitiesType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="capabilitiesType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="capabilityMultifiling" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="capabilityUpdatePWC" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="capabilityAllVersionsSearchable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "capabilitiesType", propOrder = { + "capabilityMultifiling", + "capabilityUpdatePWC", + "capabilityAllVersionsSearchable" +}) +public class CapabilitiesType { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean capabilityMultifiling; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean capabilityUpdatePWC; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean capabilityAllVersionsSearchable; + + /** + * Gets the value of the capabilityMultifiling property. + * + */ + public boolean isCapabilityMultifiling() { + return capabilityMultifiling; + } + + /** + * Sets the value of the capabilityMultifiling property. + * + */ + public void setCapabilityMultifiling(boolean value) { + this.capabilityMultifiling = value; + } + + /** + * Gets the value of the capabilityUpdatePWC property. + * + */ + public boolean isCapabilityUpdatePWC() { + return capabilityUpdatePWC; + } + + /** + * Sets the value of the capabilityUpdatePWC property. + * + */ + public void setCapabilityUpdatePWC(boolean value) { + this.capabilityUpdatePWC = value; + } + + /** + * Gets the value of the capabilityAllVersionsSearchable property. + * + */ + public boolean isCapabilityAllVersionsSearchable() { + return capabilityAllVersionsSearchable; + } + + /** + * Sets the value of the capabilityAllVersionsSearchable property. + * + */ + public void setCapabilityAllVersionsSearchable(boolean value) { + this.capabilityAllVersionsSearchable = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CardinalityEnum.java b/source/generated/org/alfresco/repo/cmis/ws/CardinalityEnum.java new file mode 100644 index 0000000000..19969764c7 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CardinalityEnum.java @@ -0,0 +1,49 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + + +/** + *

Java class for cardinalityEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="cardinalityEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="singleValued"/>
+ *     <enumeration value="multiValued"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlEnum +public enum CardinalityEnum { + + @XmlEnumValue("multiValued") + MULTI_VALUED("multiValued"), + @XmlEnumValue("singleValued") + SINGLE_VALUED("singleValued"); + private final String value; + + CardinalityEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static CardinalityEnum fromValue(String v) { + for (CardinalityEnum c: CardinalityEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CheckIn.java b/source/generated/org/alfresco/repo/cmis/ws/CheckIn.java new file mode 100644 index 0000000000..f298f52633 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CheckIn.java @@ -0,0 +1,178 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for checkIn element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="checkIn">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="major" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *           <element name="properties" type="{http://www.cmis.org/ns/1.0}documentObjectType" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}contentStream" minOccurs="0"/>
+ *           <element name="checkinComment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId", + "major", + "properties", + "contentStream", + "checkinComment" +}) +@XmlRootElement(name = "checkIn") +public class CheckIn { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean major; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected DocumentObjectType properties; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected ContentStream contentStream; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String checkinComment; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + + /** + * Gets the value of the major property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isMajor() { + return major; + } + + /** + * Sets the value of the major property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMajor(Boolean value) { + this.major = value; + } + + /** + * Gets the value of the properties property. + * + * @return + * possible object is + * {@link DocumentObjectType } + * + */ + public DocumentObjectType getProperties() { + return properties; + } + + /** + * Sets the value of the properties property. + * + * @param value + * allowed object is + * {@link DocumentObjectType } + * + */ + public void setProperties(DocumentObjectType value) { + this.properties = value; + } + + /** + * Gets the value of the contentStream property. + * + * @return + * possible object is + * {@link ContentStream } + * + */ + public ContentStream getContentStream() { + return contentStream; + } + + /** + * Sets the value of the contentStream property. + * + * @param value + * allowed object is + * {@link ContentStream } + * + */ + public void setContentStream(ContentStream value) { + this.contentStream = value; + } + + /** + * Gets the value of the checkinComment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCheckinComment() { + return checkinComment; + } + + /** + * Sets the value of the checkinComment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCheckinComment(String value) { + this.checkinComment = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CheckInResponse.java b/source/generated/org/alfresco/repo/cmis/ws/CheckInResponse.java new file mode 100644 index 0000000000..b40c57fea8 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CheckInResponse.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for checkInResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="checkInResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId" +}) +@XmlRootElement(name = "checkInResponse") +public class CheckInResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CheckOut.java b/source/generated/org/alfresco/repo/cmis/ws/CheckOut.java new file mode 100644 index 0000000000..75c5e4dd7d --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CheckOut.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for checkOut element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="checkOut">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId" +}) +@XmlRootElement(name = "checkOut") +public class CheckOut { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CheckOutResponse.java b/source/generated/org/alfresco/repo/cmis/ws/CheckOutResponse.java new file mode 100644 index 0000000000..ec022a690e --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CheckOutResponse.java @@ -0,0 +1,86 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for checkOutResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="checkOutResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="contentCopied" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId", + "contentCopied" +}) +@XmlRootElement(name = "checkOutResponse") +public class CheckOutResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean contentCopied; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + + /** + * Gets the value of the contentCopied property. + * + */ + public boolean isContentCopied() { + return contentCopied; + } + + /** + * Sets the value of the contentCopied property. + * + */ + public void setContentCopied(boolean value) { + this.contentCopied = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/Children.java b/source/generated/org/alfresco/repo/cmis/ws/Children.java new file mode 100644 index 0000000000..1068ab3d0c --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/Children.java @@ -0,0 +1,73 @@ + +package org.alfresco.repo.cmis.ws; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for children element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="children">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="object" type="{http://www.cmis.org/ns/1.0}documentOrFolderObjectType" maxOccurs="unbounded" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "object" +}) +@XmlRootElement(name = "children") +public class Children { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List object; + + /** + * Gets the value of the object property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the object property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getObject().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link DocumentOrFolderObjectType } + * + * + */ + public List getObject() { + if (object == null) { + object = new ArrayList(); + } + return this.object; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ChoiceType.java b/source/generated/org/alfresco/repo/cmis/ws/ChoiceType.java new file mode 100644 index 0000000000..339fa54182 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ChoiceType.java @@ -0,0 +1,115 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for choiceType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="choiceType">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
+ *       <attribute name="index" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="key" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "choiceType", propOrder = { + "value" +}) +public class ChoiceType { + + @XmlValue + protected String value; + @XmlAttribute(required = true) + protected BigInteger index; + @XmlAttribute(required = true) + protected String key; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + + /** + * Gets the value of the index property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setIndex(BigInteger value) { + this.index = value; + } + + /** + * Gets the value of the key property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKey() { + return key; + } + + /** + * Sets the value of the key property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKey(String value) { + this.key = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ConcurrencyException.java b/source/generated/org/alfresco/repo/cmis/ws/ConcurrencyException.java new file mode 100644 index 0000000000..99ddc4643f --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ConcurrencyException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:27 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "ConcurrencyFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class ConcurrencyException extends Exception { + public static final long serialVersionUID = 20080527141127L; + + private org.alfresco.repo.cmis.ws.BasicFault concurrencyFault; + + public ConcurrencyException() { + super(); + } + + public ConcurrencyException(String message) { + super(message); + } + + public ConcurrencyException(String message, Throwable cause) { + super(message, cause); + } + + public ConcurrencyException(String message, org.alfresco.repo.cmis.ws.BasicFault concurrencyFault) { + super(message); + this.concurrencyFault = concurrencyFault; + } + + public ConcurrencyException(String message, org.alfresco.repo.cmis.ws.BasicFault concurrencyFault, Throwable cause) { + super(message, cause); + this.concurrencyFault = concurrencyFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.concurrencyFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ConstraintViolationException.java b/source/generated/org/alfresco/repo/cmis/ws/ConstraintViolationException.java new file mode 100644 index 0000000000..3d1a5768be --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ConstraintViolationException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:13 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "ConstraintViolationFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class ConstraintViolationException extends Exception { + public static final long serialVersionUID = 20080527141113L; + + private org.alfresco.repo.cmis.ws.BasicFault constraintViolationFault; + + public ConstraintViolationException() { + super(); + } + + public ConstraintViolationException(String message) { + super(message); + } + + public ConstraintViolationException(String message, Throwable cause) { + super(message, cause); + } + + public ConstraintViolationException(String message, org.alfresco.repo.cmis.ws.BasicFault constraintViolationFault) { + super(message); + this.constraintViolationFault = constraintViolationFault; + } + + public ConstraintViolationException(String message, org.alfresco.repo.cmis.ws.BasicFault constraintViolationFault, Throwable cause) { + super(message, cause); + this.constraintViolationFault = constraintViolationFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.constraintViolationFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ContentStream.java b/source/generated/org/alfresco/repo/cmis/ws/ContentStream.java new file mode 100644 index 0000000000..7440502dcd --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ContentStream.java @@ -0,0 +1,148 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for contentStream element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="contentStream">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="mimeType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}name" minOccurs="0"/>
+ *           <element name="uri" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
+ *           <element name="stream" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "mimeType", + "name", + "uri", + "stream" +}) +@XmlRootElement(name = "contentStream") +public class ContentStream { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String mimeType; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String name; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String uri; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected byte[] stream; + + /** + * Gets the value of the mimeType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMimeType() { + return mimeType; + } + + /** + * Sets the value of the mimeType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMimeType(String value) { + this.mimeType = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the uri property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUri() { + return uri; + } + + /** + * Sets the value of the uri property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUri(String value) { + this.uri = value; + } + + /** + * Gets the value of the stream property. + * + * @return + * possible object is + * byte[] + */ + public byte[] getStream() { + return stream; + } + + /** + * Sets the value of the stream property. + * + * @param value + * allowed object is + * byte[] + */ + public void setStream(byte[] value) { + this.stream = ((byte[]) value); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CreateDocument.java b/source/generated/org/alfresco/repo/cmis/ws/CreateDocument.java new file mode 100644 index 0000000000..28e006f8a8 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CreateDocument.java @@ -0,0 +1,178 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for createDocument element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="createDocument">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="typeId" type="{http://www.cmis.org/ns/1.0}ID"/>
+ *           <element name="propertyCollection" type="{http://www.cmis.org/ns/1.0}documentObjectType"/>
+ *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}objectID" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}contentStream" minOccurs="0"/>
+ *           <element name="versioningState" type="{http://www.cmis.org/ns/1.0}versioningStateEnum" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "typeId", + "propertyCollection", + "folderId", + "contentStream", + "versioningState" +}) +@XmlRootElement(name = "createDocument") +public class CreateDocument { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String typeId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected DocumentObjectType propertyCollection; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String folderId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected ContentStream contentStream; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected VersioningStateEnum versioningState; + + /** + * Gets the value of the typeId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTypeId() { + return typeId; + } + + /** + * Sets the value of the typeId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTypeId(String value) { + this.typeId = value; + } + + /** + * Gets the value of the propertyCollection property. + * + * @return + * possible object is + * {@link DocumentObjectType } + * + */ + public DocumentObjectType getPropertyCollection() { + return propertyCollection; + } + + /** + * Sets the value of the propertyCollection property. + * + * @param value + * allowed object is + * {@link DocumentObjectType } + * + */ + public void setPropertyCollection(DocumentObjectType value) { + this.propertyCollection = value; + } + + /** + * Gets the value of the folderId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFolderId() { + return folderId; + } + + /** + * Sets the value of the folderId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFolderId(String value) { + this.folderId = value; + } + + /** + * Gets the value of the contentStream property. + * + * @return + * possible object is + * {@link ContentStream } + * + */ + public ContentStream getContentStream() { + return contentStream; + } + + /** + * Sets the value of the contentStream property. + * + * @param value + * allowed object is + * {@link ContentStream } + * + */ + public void setContentStream(ContentStream value) { + this.contentStream = value; + } + + /** + * Gets the value of the versioningState property. + * + * @return + * possible object is + * {@link VersioningStateEnum } + * + */ + public VersioningStateEnum getVersioningState() { + return versioningState; + } + + /** + * Sets the value of the versioningState property. + * + * @param value + * allowed object is + * {@link VersioningStateEnum } + * + */ + public void setVersioningState(VersioningStateEnum value) { + this.versioningState = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CreateDocumentResponse.java b/source/generated/org/alfresco/repo/cmis/ws/CreateDocumentResponse.java new file mode 100644 index 0000000000..565357c132 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CreateDocumentResponse.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for createDocumentResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="createDocumentResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "objectId" +}) +@XmlRootElement(name = "createDocumentResponse") +public class CreateDocumentResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String objectId; + + /** + * Gets the value of the objectId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectId() { + return objectId; + } + + /** + * Sets the value of the objectId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectId(String value) { + this.objectId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CreateFolder.java b/source/generated/org/alfresco/repo/cmis/ws/CreateFolder.java new file mode 100644 index 0000000000..3e437a2261 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CreateFolder.java @@ -0,0 +1,122 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for createFolder element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="createFolder">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="typeId" type="{http://www.cmis.org/ns/1.0}ID"/>
+ *           <element name="propertyCollection" type="{http://www.cmis.org/ns/1.0}folderObjectType"/>
+ *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "typeId", + "propertyCollection", + "folderId" +}) +@XmlRootElement(name = "createFolder") +public class CreateFolder { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String typeId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected FolderObjectType propertyCollection; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String folderId; + + /** + * Gets the value of the typeId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTypeId() { + return typeId; + } + + /** + * Sets the value of the typeId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTypeId(String value) { + this.typeId = value; + } + + /** + * Gets the value of the propertyCollection property. + * + * @return + * possible object is + * {@link FolderObjectType } + * + */ + public FolderObjectType getPropertyCollection() { + return propertyCollection; + } + + /** + * Sets the value of the propertyCollection property. + * + * @param value + * allowed object is + * {@link FolderObjectType } + * + */ + public void setPropertyCollection(FolderObjectType value) { + this.propertyCollection = value; + } + + /** + * Gets the value of the folderId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFolderId() { + return folderId; + } + + /** + * Sets the value of the folderId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFolderId(String value) { + this.folderId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CreateFolderResponse.java b/source/generated/org/alfresco/repo/cmis/ws/CreateFolderResponse.java new file mode 100644 index 0000000000..f2df157015 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CreateFolderResponse.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for createFolderResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="createFolderResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "objectId" +}) +@XmlRootElement(name = "createFolderResponse") +public class CreateFolderResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String objectId; + + /** + * Gets the value of the objectId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectId() { + return objectId; + } + + /** + * Sets the value of the objectId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectId(String value) { + this.objectId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CreateRelationship.java b/source/generated/org/alfresco/repo/cmis/ws/CreateRelationship.java new file mode 100644 index 0000000000..3c9e5213ab --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CreateRelationship.java @@ -0,0 +1,150 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for createRelationship element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="createRelationship">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="typeId" type="{http://www.cmis.org/ns/1.0}ID"/>
+ *           <element name="propertyCollection" type="{http://www.cmis.org/ns/1.0}relationshipObjectType"/>
+ *           <element name="sourceObjectId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="targetObjectId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "typeId", + "propertyCollection", + "sourceObjectId", + "targetObjectId" +}) +@XmlRootElement(name = "createRelationship") +public class CreateRelationship { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String typeId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected RelationshipObjectType propertyCollection; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String sourceObjectId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String targetObjectId; + + /** + * Gets the value of the typeId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTypeId() { + return typeId; + } + + /** + * Sets the value of the typeId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTypeId(String value) { + this.typeId = value; + } + + /** + * Gets the value of the propertyCollection property. + * + * @return + * possible object is + * {@link RelationshipObjectType } + * + */ + public RelationshipObjectType getPropertyCollection() { + return propertyCollection; + } + + /** + * Sets the value of the propertyCollection property. + * + * @param value + * allowed object is + * {@link RelationshipObjectType } + * + */ + public void setPropertyCollection(RelationshipObjectType value) { + this.propertyCollection = value; + } + + /** + * Gets the value of the sourceObjectId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSourceObjectId() { + return sourceObjectId; + } + + /** + * Sets the value of the sourceObjectId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSourceObjectId(String value) { + this.sourceObjectId = value; + } + + /** + * Gets the value of the targetObjectId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTargetObjectId() { + return targetObjectId; + } + + /** + * Sets the value of the targetObjectId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTargetObjectId(String value) { + this.targetObjectId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/CreateRelationshipResponse.java b/source/generated/org/alfresco/repo/cmis/ws/CreateRelationshipResponse.java new file mode 100644 index 0000000000..1d332f4c22 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/CreateRelationshipResponse.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for createRelationshipResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="createRelationshipResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "objectId" +}) +@XmlRootElement(name = "createRelationshipResponse") +public class CreateRelationshipResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String objectId; + + /** + * Gets the value of the objectId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectId() { + return objectId; + } + + /** + * Sets the value of the objectId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectId(String value) { + this.objectId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteAllVersions.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteAllVersions.java new file mode 100644 index 0000000000..6025fcabf0 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteAllVersions.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for deleteAllVersions element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="deleteAllVersions">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId" +}) +@XmlRootElement(name = "deleteAllVersions") +public class DeleteAllVersions { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteAllVersionsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteAllVersionsResponse.java new file mode 100644 index 0000000000..f5dc268c04 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteAllVersionsResponse.java @@ -0,0 +1,36 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for deleteAllVersionsResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="deleteAllVersionsResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "deleteAllVersionsResponse") +public class DeleteAllVersionsResponse { + + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteContentStream.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteContentStream.java new file mode 100644 index 0000000000..58dabdd5b8 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteContentStream.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for deleteContentStream element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="deleteContentStream">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId" +}) +@XmlRootElement(name = "deleteContentStream") +public class DeleteContentStream { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteContentStreamResponse.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteContentStreamResponse.java new file mode 100644 index 0000000000..92f2307253 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteContentStreamResponse.java @@ -0,0 +1,36 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for deleteContentStreamResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="deleteContentStreamResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "deleteContentStreamResponse") +public class DeleteContentStreamResponse { + + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteObject.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteObject.java new file mode 100644 index 0000000000..14158d3d8e --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteObject.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for deleteObject element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="deleteObject">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "objectId" +}) +@XmlRootElement(name = "deleteObject") +public class DeleteObject { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String objectId; + + /** + * Gets the value of the objectId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectId() { + return objectId; + } + + /** + * Sets the value of the objectId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectId(String value) { + this.objectId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteObjectResponse.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteObjectResponse.java new file mode 100644 index 0000000000..597cfe5770 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteObjectResponse.java @@ -0,0 +1,36 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for deleteObjectResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="deleteObjectResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "deleteObjectResponse") +public class DeleteObjectResponse { + + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteTree.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteTree.java new file mode 100644 index 0000000000..09edcf02b9 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteTree.java @@ -0,0 +1,122 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for deleteTree element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="deleteTree">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="unfileMultiFiledDocuments" type="{http://www.cmis.org/ns/1.0}deleteWithMultiFilingEnum"/>
+ *           <element name="continueOnFailure" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "folderId", + "unfileMultiFiledDocuments", + "continueOnFailure" +}) +@XmlRootElement(name = "deleteTree") +public class DeleteTree { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String folderId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected DeleteWithMultiFilingEnum unfileMultiFiledDocuments; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean continueOnFailure; + + /** + * Gets the value of the folderId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFolderId() { + return folderId; + } + + /** + * Sets the value of the folderId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFolderId(String value) { + this.folderId = value; + } + + /** + * Gets the value of the unfileMultiFiledDocuments property. + * + * @return + * possible object is + * {@link DeleteWithMultiFilingEnum } + * + */ + public DeleteWithMultiFilingEnum getUnfileMultiFiledDocuments() { + return unfileMultiFiledDocuments; + } + + /** + * Sets the value of the unfileMultiFiledDocuments property. + * + * @param value + * allowed object is + * {@link DeleteWithMultiFilingEnum } + * + */ + public void setUnfileMultiFiledDocuments(DeleteWithMultiFilingEnum value) { + this.unfileMultiFiledDocuments = value; + } + + /** + * Gets the value of the continueOnFailure property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isContinueOnFailure() { + return continueOnFailure; + } + + /** + * Sets the value of the continueOnFailure property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setContinueOnFailure(Boolean value) { + this.continueOnFailure = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteTreeResponse.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteTreeResponse.java new file mode 100644 index 0000000000..ffb61fe4ce --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteTreeResponse.java @@ -0,0 +1,139 @@ + +package org.alfresco.repo.cmis.ws; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import org.alfresco.repo.cmis.ws.DeleteTreeResponse.FailedToDelete; + + +/** + *

Java class for deleteTreeResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="deleteTreeResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="failedToDelete">
+ *             <complexType>
+ *               <complexContent>
+ *                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                   <sequence>
+ *                     <element name="objectId" type="{http://www.cmis.org/ns/1.0}objectID" maxOccurs="unbounded" minOccurs="0"/>
+ *                   </sequence>
+ *                 </restriction>
+ *               </complexContent>
+ *             </complexType>
+ *           </element>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "failedToDelete" +}) +@XmlRootElement(name = "deleteTreeResponse") +public class DeleteTreeResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected FailedToDelete failedToDelete; + + /** + * Gets the value of the failedToDelete property. + * + * @return + * possible object is + * {@link FailedToDelete } + * + */ + public FailedToDelete getFailedToDelete() { + return failedToDelete; + } + + /** + * Sets the value of the failedToDelete property. + * + * @param value + * allowed object is + * {@link FailedToDelete } + * + */ + public void setFailedToDelete(FailedToDelete value) { + this.failedToDelete = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="objectId" type="{http://www.cmis.org/ns/1.0}objectID" maxOccurs="unbounded" minOccurs="0"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "objectId" + }) + public static class FailedToDelete { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List objectId; + + /** + * Gets the value of the objectId property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the objectId property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getObjectId().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getObjectId() { + if (objectId == null) { + objectId = new ArrayList(); + } + return this.objectId; + } + + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DeleteWithMultiFilingEnum.java b/source/generated/org/alfresco/repo/cmis/ws/DeleteWithMultiFilingEnum.java new file mode 100644 index 0000000000..4f34845ce9 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DeleteWithMultiFilingEnum.java @@ -0,0 +1,52 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + + +/** + *

Java class for deleteWithMultiFilingEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="deleteWithMultiFilingEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="unfile"/>
+ *     <enumeration value="deleteSingleFiledDocs"/>
+ *     <enumeration value="delete"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlEnum +public enum DeleteWithMultiFilingEnum { + + @XmlEnumValue("delete") + DELETE("delete"), + @XmlEnumValue("deleteSingleFiledDocs") + DELETE_SINGLE_FILED_DOCS("deleteSingleFiledDocs"), + @XmlEnumValue("unfile") + UNFILE("unfile"); + private final String value; + + DeleteWithMultiFilingEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static DeleteWithMultiFilingEnum fromValue(String v) { + for (DeleteWithMultiFilingEnum c: DeleteWithMultiFilingEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DocumentAndFolderCollection.java b/source/generated/org/alfresco/repo/cmis/ws/DocumentAndFolderCollection.java new file mode 100644 index 0000000000..252bfdbc7c --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DocumentAndFolderCollection.java @@ -0,0 +1,73 @@ + +package org.alfresco.repo.cmis.ws; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for documentAndFolderCollection element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="documentAndFolderCollection">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="object" type="{http://www.cmis.org/ns/1.0}documentOrFolderObjectType" maxOccurs="unbounded" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "object" +}) +@XmlRootElement(name = "documentAndFolderCollection") +public class DocumentAndFolderCollection { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List object; + + /** + * Gets the value of the object property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the object property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getObject().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link DocumentOrFolderObjectType } + * + * + */ + public List getObject() { + if (object == null) { + object = new ArrayList(); + } + return this.object; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DocumentCollection.java b/source/generated/org/alfresco/repo/cmis/ws/DocumentCollection.java new file mode 100644 index 0000000000..e446497a0a --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DocumentCollection.java @@ -0,0 +1,73 @@ + +package org.alfresco.repo.cmis.ws; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for documentCollection element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="documentCollection">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="object" type="{http://www.cmis.org/ns/1.0}documentObjectType" maxOccurs="unbounded" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "object" +}) +@XmlRootElement(name = "documentCollection") +public class DocumentCollection { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List object; + + /** + * Gets the value of the object property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the object property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getObject().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link DocumentObjectType } + * + * + */ + public List getObject() { + if (object == null) { + object = new ArrayList(); + } + return this.object; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DocumentFolderOrRelationshipObjectType.java b/source/generated/org/alfresco/repo/cmis/ws/DocumentFolderOrRelationshipObjectType.java new file mode 100644 index 0000000000..6f2f0d5a39 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DocumentFolderOrRelationshipObjectType.java @@ -0,0 +1,92 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for documentFolderOrRelationshipObjectType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="documentFolderOrRelationshipObjectType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/ns/1.0}documentOrFolderObjectType">
+ *       <sequence>
+ *         <element ref="{http://www.cmis.org/ns/1.0}sourceOID" minOccurs="0"/>
+ *         <element ref="{http://www.cmis.org/ns/1.0}targetOID" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "documentFolderOrRelationshipObjectType", propOrder = { + "sourceOID", + "targetOID" +}) +public class DocumentFolderOrRelationshipObjectType + extends DocumentOrFolderObjectType +{ + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String sourceOID; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String targetOID; + + /** + * Gets the value of the sourceOID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSourceOID() { + return sourceOID; + } + + /** + * Sets the value of the sourceOID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSourceOID(String value) { + this.sourceOID = value; + } + + /** + * Gets the value of the targetOID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTargetOID() { + return targetOID; + } + + /** + * Sets the value of the targetOID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTargetOID(String value) { + this.targetOID = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DocumentObjectType.java b/source/generated/org/alfresco/repo/cmis/ws/DocumentObjectType.java new file mode 100644 index 0000000000..676572776f --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DocumentObjectType.java @@ -0,0 +1,436 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for documentObjectType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="documentObjectType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/ns/1.0}objectTypeBase">
+ *       <sequence>
+ *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="isImmutable" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="isLatestVersion" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="isMajorVersion" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="isLatestMajorVersion" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="versionSeriesIsCheckedOut" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="versionSeriesCheckedOutBy" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="versionSeriesCheckedOutOID" type="{http://www.cmis.org/ns/1.0}objectID" minOccurs="0"/>
+ *         <element name="checkinComment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="contentStreamLength" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
+ *         <element name="contentStreamMimeType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="contentStreamFilename" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="contentStreamURI" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
+ *         <element ref="{http://www.cmis.org/ns/1.0}property" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "documentObjectType", propOrder = { + "name", + "isImmutable", + "isLatestVersion", + "isMajorVersion", + "isLatestMajorVersion", + "versionSeriesIsCheckedOut", + "versionSeriesCheckedOutBy", + "versionSeriesCheckedOutOID", + "checkinComment", + "contentStreamLength", + "contentStreamMimeType", + "contentStreamFilename", + "contentStreamURI", + "property" +}) +public class DocumentObjectType + extends ObjectTypeBase +{ + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String name; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean isImmutable; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean isLatestVersion; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean isMajorVersion; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean isLatestMajorVersion; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean versionSeriesIsCheckedOut; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String versionSeriesCheckedOutBy; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String versionSeriesCheckedOutOID; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String checkinComment; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger contentStreamLength; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String contentStreamMimeType; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String contentStreamFilename; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String contentStreamURI; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List property; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the isImmutable property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isIsImmutable() { + return isImmutable; + } + + /** + * Sets the value of the isImmutable property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIsImmutable(Boolean value) { + this.isImmutable = value; + } + + /** + * Gets the value of the isLatestVersion property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isIsLatestVersion() { + return isLatestVersion; + } + + /** + * Sets the value of the isLatestVersion property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIsLatestVersion(Boolean value) { + this.isLatestVersion = value; + } + + /** + * Gets the value of the isMajorVersion property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isIsMajorVersion() { + return isMajorVersion; + } + + /** + * Sets the value of the isMajorVersion property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIsMajorVersion(Boolean value) { + this.isMajorVersion = value; + } + + /** + * Gets the value of the isLatestMajorVersion property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isIsLatestMajorVersion() { + return isLatestMajorVersion; + } + + /** + * Sets the value of the isLatestMajorVersion property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIsLatestMajorVersion(Boolean value) { + this.isLatestMajorVersion = value; + } + + /** + * Gets the value of the versionSeriesIsCheckedOut property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isVersionSeriesIsCheckedOut() { + return versionSeriesIsCheckedOut; + } + + /** + * Sets the value of the versionSeriesIsCheckedOut property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setVersionSeriesIsCheckedOut(Boolean value) { + this.versionSeriesIsCheckedOut = value; + } + + /** + * Gets the value of the versionSeriesCheckedOutBy property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersionSeriesCheckedOutBy() { + return versionSeriesCheckedOutBy; + } + + /** + * Sets the value of the versionSeriesCheckedOutBy property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersionSeriesCheckedOutBy(String value) { + this.versionSeriesCheckedOutBy = value; + } + + /** + * Gets the value of the versionSeriesCheckedOutOID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersionSeriesCheckedOutOID() { + return versionSeriesCheckedOutOID; + } + + /** + * Sets the value of the versionSeriesCheckedOutOID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersionSeriesCheckedOutOID(String value) { + this.versionSeriesCheckedOutOID = value; + } + + /** + * Gets the value of the checkinComment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCheckinComment() { + return checkinComment; + } + + /** + * Sets the value of the checkinComment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCheckinComment(String value) { + this.checkinComment = value; + } + + /** + * Gets the value of the contentStreamLength property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getContentStreamLength() { + return contentStreamLength; + } + + /** + * Sets the value of the contentStreamLength property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setContentStreamLength(BigInteger value) { + this.contentStreamLength = value; + } + + /** + * Gets the value of the contentStreamMimeType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContentStreamMimeType() { + return contentStreamMimeType; + } + + /** + * Sets the value of the contentStreamMimeType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContentStreamMimeType(String value) { + this.contentStreamMimeType = value; + } + + /** + * Gets the value of the contentStreamFilename property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContentStreamFilename() { + return contentStreamFilename; + } + + /** + * Sets the value of the contentStreamFilename property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContentStreamFilename(String value) { + this.contentStreamFilename = value; + } + + /** + * Gets the value of the contentStreamURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContentStreamURI() { + return contentStreamURI; + } + + /** + * Sets the value of the contentStreamURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContentStreamURI(String value) { + this.contentStreamURI = value; + } + + /** + * Gets the value of the property property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the property property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getProperty().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Property } + * + * + */ + public List getProperty() { + if (property == null) { + property = new ArrayList(); + } + return this.property; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/DocumentOrFolderObjectType.java b/source/generated/org/alfresco/repo/cmis/ws/DocumentOrFolderObjectType.java new file mode 100644 index 0000000000..88ca50b437 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/DocumentOrFolderObjectType.java @@ -0,0 +1,92 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for documentOrFolderObjectType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="documentOrFolderObjectType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/ns/1.0}documentObjectType">
+ *       <sequence>
+ *         <element ref="{http://www.cmis.org/ns/1.0}parent" minOccurs="0"/>
+ *         <element ref="{http://www.cmis.org/ns/1.0}children" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "documentOrFolderObjectType", propOrder = { + "parent", + "children" +}) +public class DocumentOrFolderObjectType + extends DocumentObjectType +{ + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String parent; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Children children; + + /** + * Gets the value of the parent property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getParent() { + return parent; + } + + /** + * Sets the value of the parent property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setParent(String value) { + this.parent = value; + } + + /** + * Gets the value of the children property. + * + * @return + * possible object is + * {@link Children } + * + */ + public Children getChildren() { + return children; + } + + /** + * Sets the value of the children property. + * + * @param value + * allowed object is + * {@link Children } + * + */ + public void setChildren(Children value) { + this.children = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/FilterNotValidException.java b/source/generated/org/alfresco/repo/cmis/ws/FilterNotValidException.java new file mode 100644 index 0000000000..d1a25bfd08 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/FilterNotValidException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:27 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "FilterNotValidFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class FilterNotValidException extends Exception { + public static final long serialVersionUID = 20080527141127L; + + private org.alfresco.repo.cmis.ws.BasicFault filterNotValidFault; + + public FilterNotValidException() { + super(); + } + + public FilterNotValidException(String message) { + super(message); + } + + public FilterNotValidException(String message, Throwable cause) { + super(message, cause); + } + + public FilterNotValidException(String message, org.alfresco.repo.cmis.ws.BasicFault filterNotValidFault) { + super(message); + this.filterNotValidFault = filterNotValidFault; + } + + public FilterNotValidException(String message, org.alfresco.repo.cmis.ws.BasicFault filterNotValidFault, Throwable cause) { + super(message, cause); + this.filterNotValidFault = filterNotValidFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.filterNotValidFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/FolderCollection.java b/source/generated/org/alfresco/repo/cmis/ws/FolderCollection.java new file mode 100644 index 0000000000..855a689ad3 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/FolderCollection.java @@ -0,0 +1,73 @@ + +package org.alfresco.repo.cmis.ws; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for folderCollection element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="folderCollection">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="object" type="{http://www.cmis.org/ns/1.0}folderObjectType" maxOccurs="unbounded" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "object" +}) +@XmlRootElement(name = "folderCollection") +public class FolderCollection { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List object; + + /** + * Gets the value of the object property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the object property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getObject().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link FolderObjectType } + * + * + */ + public List getObject() { + if (object == null) { + object = new ArrayList(); + } + return this.object; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/FolderNotValidException.java b/source/generated/org/alfresco/repo/cmis/ws/FolderNotValidException.java new file mode 100644 index 0000000000..5fdcd415bb --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/FolderNotValidException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:27 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "FolderNotValidFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class FolderNotValidException extends Exception { + public static final long serialVersionUID = 20080527141127L; + + private org.alfresco.repo.cmis.ws.BasicFault folderNotValidFault; + + public FolderNotValidException() { + super(); + } + + public FolderNotValidException(String message) { + super(message); + } + + public FolderNotValidException(String message, Throwable cause) { + super(message, cause); + } + + public FolderNotValidException(String message, org.alfresco.repo.cmis.ws.BasicFault folderNotValidFault) { + super(message); + this.folderNotValidFault = folderNotValidFault; + } + + public FolderNotValidException(String message, org.alfresco.repo.cmis.ws.BasicFault folderNotValidFault, Throwable cause) { + super(message, cause); + this.folderNotValidFault = folderNotValidFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.folderNotValidFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/FolderObjectType.java b/source/generated/org/alfresco/repo/cmis/ws/FolderObjectType.java new file mode 100644 index 0000000000..0d80527810 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/FolderObjectType.java @@ -0,0 +1,155 @@ + +package org.alfresco.repo.cmis.ws; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for folderObjectType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="folderObjectType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/ns/1.0}objectTypeBase">
+ *       <sequence>
+ *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element ref="{http://www.cmis.org/ns/1.0}parent" minOccurs="0"/>
+ *         <element ref="{http://www.cmis.org/ns/1.0}children" minOccurs="0"/>
+ *         <element ref="{http://www.cmis.org/ns/1.0}property" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "folderObjectType", propOrder = { + "name", + "parent", + "children", + "property" +}) +public class FolderObjectType + extends ObjectTypeBase +{ + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String name; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String parent; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Children children; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List property; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the parent property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getParent() { + return parent; + } + + /** + * Sets the value of the parent property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setParent(String value) { + this.parent = value; + } + + /** + * Gets the value of the children property. + * + * @return + * possible object is + * {@link Children } + * + */ + public Children getChildren() { + return children; + } + + /** + * Sets the value of the children property. + * + * @param value + * allowed object is + * {@link Children } + * + */ + public void setChildren(Children value) { + this.children = value; + } + + /** + * Gets the value of the property property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the property property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getProperty().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Property } + * + * + */ + public List getProperty() { + if (property == null) { + property = new ArrayList(); + } + return this.property; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetAllVersions.java b/source/generated/org/alfresco/repo/cmis/ws/GetAllVersions.java new file mode 100644 index 0000000000..6048643cce --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetAllVersions.java @@ -0,0 +1,94 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getAllVersions element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getAllVersions">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId", + "filter" +}) +@XmlRootElement(name = "getAllVersions") +public class GetAllVersions { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String filter; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + + /** + * Gets the value of the filter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilter() { + return filter; + } + + /** + * Sets the value of the filter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilter(String value) { + this.filter = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetAllVersionsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetAllVersionsResponse.java new file mode 100644 index 0000000000..06a2a84145 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetAllVersionsResponse.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getAllVersionsResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getAllVersionsResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}documentCollection"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentCollection" +}) +@XmlRootElement(name = "getAllVersionsResponse") +public class GetAllVersionsResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected DocumentCollection documentCollection; + + /** + * Gets the value of the documentCollection property. + * + * @return + * possible object is + * {@link DocumentCollection } + * + */ + public DocumentCollection getDocumentCollection() { + return documentCollection; + } + + /** + * Sets the value of the documentCollection property. + * + * @param value + * allowed object is + * {@link DocumentCollection } + * + */ + public void setDocumentCollection(DocumentCollection value) { + this.documentCollection = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActions.java b/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActions.java new file mode 100644 index 0000000000..e1480768b3 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActions.java @@ -0,0 +1,94 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getAllowableActions element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getAllowableActions">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="asUser" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "objectId", + "asUser" +}) +@XmlRootElement(name = "getAllowableActions") +public class GetAllowableActions { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String objectId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String asUser; + + /** + * Gets the value of the objectId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectId() { + return objectId; + } + + /** + * Sets the value of the objectId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectId(String value) { + this.objectId = value; + } + + /** + * Gets the value of the asUser property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAsUser() { + return asUser; + } + + /** + * Sets the value of the asUser property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAsUser(String value) { + this.asUser = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActionsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActionsResponse.java new file mode 100644 index 0000000000..78f96871b2 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetAllowableActionsResponse.java @@ -0,0 +1,139 @@ + +package org.alfresco.repo.cmis.ws; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import org.alfresco.repo.cmis.ws.GetAllowableActionsResponse.AllowableActionCollection; + + +/** + *

Java class for getAllowableActionsResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getAllowableActionsResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="allowableActionCollection">
+ *             <complexType>
+ *               <complexContent>
+ *                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                   <sequence>
+ *                     <element name="action" type="{http://www.cmis.org/ns/1.0}allowableActionsEnum" maxOccurs="unbounded" minOccurs="0"/>
+ *                   </sequence>
+ *                 </restriction>
+ *               </complexContent>
+ *             </complexType>
+ *           </element>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "allowableActionCollection" +}) +@XmlRootElement(name = "getAllowableActionsResponse") +public class GetAllowableActionsResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected AllowableActionCollection allowableActionCollection; + + /** + * Gets the value of the allowableActionCollection property. + * + * @return + * possible object is + * {@link AllowableActionCollection } + * + */ + public AllowableActionCollection getAllowableActionCollection() { + return allowableActionCollection; + } + + /** + * Sets the value of the allowableActionCollection property. + * + * @param value + * allowed object is + * {@link AllowableActionCollection } + * + */ + public void setAllowableActionCollection(AllowableActionCollection value) { + this.allowableActionCollection = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="action" type="{http://www.cmis.org/ns/1.0}allowableActionsEnum" maxOccurs="unbounded" minOccurs="0"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "action" + }) + public static class AllowableActionCollection { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List action; + + /** + * Gets the value of the action property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the action property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getAction().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AllowableActionsEnum } + * + * + */ + public List getAction() { + if (action == null) { + action = new ArrayList(); + } + return this.action; + } + + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocs.java b/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocs.java new file mode 100644 index 0000000000..7c5607e693 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocs.java @@ -0,0 +1,151 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getCheckedoutDocs element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getCheckedoutDocs">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}maxItems" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}skipCount" minOccurs="0"/>
+ *           <element name="folderID" type="{http://www.cmis.org/ns/1.0}objectID" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "filter", + "maxItems", + "skipCount", + "folderID" +}) +@XmlRootElement(name = "getCheckedoutDocs") +public class GetCheckedoutDocs { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String filter; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger maxItems; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger skipCount; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String folderID; + + /** + * Gets the value of the filter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilter() { + return filter; + } + + /** + * Sets the value of the filter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilter(String value) { + this.filter = value; + } + + /** + * Gets the value of the maxItems property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getMaxItems() { + return maxItems; + } + + /** + * Sets the value of the maxItems property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setMaxItems(BigInteger value) { + this.maxItems = value; + } + + /** + * Gets the value of the skipCount property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getSkipCount() { + return skipCount; + } + + /** + * Sets the value of the skipCount property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setSkipCount(BigInteger value) { + this.skipCount = value; + } + + /** + * Gets the value of the folderID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFolderID() { + return folderID; + } + + /** + * Sets the value of the folderID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFolderID(String value) { + this.folderID = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocsResponse.java new file mode 100644 index 0000000000..f41a570226 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetCheckedoutDocsResponse.java @@ -0,0 +1,86 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getCheckedoutDocsResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getCheckedoutDocsResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}documentCollection"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}hasMoreItems"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentCollection", + "hasMoreItems" +}) +@XmlRootElement(name = "getCheckedoutDocsResponse") +public class GetCheckedoutDocsResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected DocumentCollection documentCollection; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean hasMoreItems; + + /** + * Gets the value of the documentCollection property. + * + * @return + * possible object is + * {@link DocumentCollection } + * + */ + public DocumentCollection getDocumentCollection() { + return documentCollection; + } + + /** + * Sets the value of the documentCollection property. + * + * @param value + * allowed object is + * {@link DocumentCollection } + * + */ + public void setDocumentCollection(DocumentCollection value) { + this.documentCollection = value; + } + + /** + * Gets the value of the hasMoreItems property. + * + */ + public boolean isHasMoreItems() { + return hasMoreItems; + } + + /** + * Sets the value of the hasMoreItems property. + * + */ + public void setHasMoreItems(boolean value) { + this.hasMoreItems = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetChildren.java b/source/generated/org/alfresco/repo/cmis/ws/GetChildren.java new file mode 100644 index 0000000000..3e9dd73aff --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetChildren.java @@ -0,0 +1,179 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getChildren element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getChildren">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="type" type="{http://www.cmis.org/ns/1.0}typesOfObjectsEnum"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}maxItems" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}skipCount" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "folderId", + "type", + "filter", + "maxItems", + "skipCount" +}) +@XmlRootElement(name = "getChildren") +public class GetChildren { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String folderId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected TypesOfObjectsEnum type; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String filter; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger maxItems; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger skipCount; + + /** + * Gets the value of the folderId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFolderId() { + return folderId; + } + + /** + * Sets the value of the folderId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFolderId(String value) { + this.folderId = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link TypesOfObjectsEnum } + * + */ + public TypesOfObjectsEnum getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link TypesOfObjectsEnum } + * + */ + public void setType(TypesOfObjectsEnum value) { + this.type = value; + } + + /** + * Gets the value of the filter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilter() { + return filter; + } + + /** + * Sets the value of the filter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilter(String value) { + this.filter = value; + } + + /** + * Gets the value of the maxItems property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getMaxItems() { + return maxItems; + } + + /** + * Sets the value of the maxItems property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setMaxItems(BigInteger value) { + this.maxItems = value; + } + + /** + * Gets the value of the skipCount property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getSkipCount() { + return skipCount; + } + + /** + * Sets the value of the skipCount property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setSkipCount(BigInteger value) { + this.skipCount = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetChildrenResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetChildrenResponse.java new file mode 100644 index 0000000000..f6ef9690c4 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetChildrenResponse.java @@ -0,0 +1,86 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getChildrenResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getChildrenResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}documentAndFolderCollection"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}hasMoreItems"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentAndFolderCollection", + "hasMoreItems" +}) +@XmlRootElement(name = "getChildrenResponse") +public class GetChildrenResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected DocumentAndFolderCollection documentAndFolderCollection; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean hasMoreItems; + + /** + * Gets the value of the documentAndFolderCollection property. + * + * @return + * possible object is + * {@link DocumentAndFolderCollection } + * + */ + public DocumentAndFolderCollection getDocumentAndFolderCollection() { + return documentAndFolderCollection; + } + + /** + * Sets the value of the documentAndFolderCollection property. + * + * @param value + * allowed object is + * {@link DocumentAndFolderCollection } + * + */ + public void setDocumentAndFolderCollection(DocumentAndFolderCollection value) { + this.documentAndFolderCollection = value; + } + + /** + * Gets the value of the hasMoreItems property. + * + */ + public boolean isHasMoreItems() { + return hasMoreItems; + } + + /** + * Sets the value of the hasMoreItems property. + * + */ + public void setHasMoreItems(boolean value) { + this.hasMoreItems = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetContentStream.java b/source/generated/org/alfresco/repo/cmis/ws/GetContentStream.java new file mode 100644 index 0000000000..d3a059fd94 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetContentStream.java @@ -0,0 +1,123 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getContentStream element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getContentStream">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="offset" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
+ *           <element name="length" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId", + "offset", + "length" +}) +@XmlRootElement(name = "getContentStream") +public class GetContentStream { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger offset; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger length; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + + /** + * Gets the value of the offset property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getOffset() { + return offset; + } + + /** + * Sets the value of the offset property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setOffset(BigInteger value) { + this.offset = value; + } + + /** + * Gets the value of the length property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getLength() { + return length; + } + + /** + * Sets the value of the length property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setLength(BigInteger value) { + this.length = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetContentStreamResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetContentStreamResponse.java new file mode 100644 index 0000000000..f7c2addfda --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetContentStreamResponse.java @@ -0,0 +1,64 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getContentStreamResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getContentStreamResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="stream" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "stream" +}) +@XmlRootElement(name = "getContentStreamResponse") +public class GetContentStreamResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected byte[] stream; + + /** + * Gets the value of the stream property. + * + * @return + * possible object is + * byte[] + */ + public byte[] getStream() { + return stream; + } + + /** + * Sets the value of the stream property. + * + * @param value + * allowed object is + * byte[] + */ + public void setStream(byte[] value) { + this.stream = ((byte[]) value); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetDescendants.java b/source/generated/org/alfresco/repo/cmis/ws/GetDescendants.java new file mode 100644 index 0000000000..210a0dc99a --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetDescendants.java @@ -0,0 +1,150 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getDescendants element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getDescendants">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="type" type="{http://www.cmis.org/ns/1.0}typesOfObjectsEnum"/>
+ *           <element name="depth" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "folderId", + "type", + "depth", + "filter" +}) +@XmlRootElement(name = "getDescendants") +public class GetDescendants { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String folderId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected TypesOfObjectsEnum type; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Object depth; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String filter; + + /** + * Gets the value of the folderId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFolderId() { + return folderId; + } + + /** + * Sets the value of the folderId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFolderId(String value) { + this.folderId = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link TypesOfObjectsEnum } + * + */ + public TypesOfObjectsEnum getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link TypesOfObjectsEnum } + * + */ + public void setType(TypesOfObjectsEnum value) { + this.type = value; + } + + /** + * Gets the value of the depth property. + * + * @return + * possible object is + * {@link Object } + * + */ + public Object getDepth() { + return depth; + } + + /** + * Sets the value of the depth property. + * + * @param value + * allowed object is + * {@link Object } + * + */ + public void setDepth(Object value) { + this.depth = value; + } + + /** + * Gets the value of the filter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilter() { + return filter; + } + + /** + * Sets the value of the filter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilter(String value) { + this.filter = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetDescendantsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetDescendantsResponse.java new file mode 100644 index 0000000000..537c7a2b2a --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetDescendantsResponse.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getDescendantsResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getDescendantsResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}documentAndFolderCollection"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentAndFolderCollection" +}) +@XmlRootElement(name = "getDescendantsResponse") +public class GetDescendantsResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected DocumentAndFolderCollection documentAndFolderCollection; + + /** + * Gets the value of the documentAndFolderCollection property. + * + * @return + * possible object is + * {@link DocumentAndFolderCollection } + * + */ + public DocumentAndFolderCollection getDocumentAndFolderCollection() { + return documentAndFolderCollection; + } + + /** + * Sets the value of the documentAndFolderCollection property. + * + * @param value + * allowed object is + * {@link DocumentAndFolderCollection } + * + */ + public void setDocumentAndFolderCollection(DocumentAndFolderCollection value) { + this.documentAndFolderCollection = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetDocumentParents.java b/source/generated/org/alfresco/repo/cmis/ws/GetDocumentParents.java new file mode 100644 index 0000000000..95d8608951 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetDocumentParents.java @@ -0,0 +1,94 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getDocumentParents element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getDocumentParents">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId", + "filter" +}) +@XmlRootElement(name = "getDocumentParents") +public class GetDocumentParents { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String filter; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + + /** + * Gets the value of the filter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilter() { + return filter; + } + + /** + * Sets the value of the filter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilter(String value) { + this.filter = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetDocumentParentsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetDocumentParentsResponse.java new file mode 100644 index 0000000000..c5829f7c6a --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetDocumentParentsResponse.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getDocumentParentsResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getDocumentParentsResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}folderCollection"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "folderCollection" +}) +@XmlRootElement(name = "getDocumentParentsResponse") +public class GetDocumentParentsResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected FolderCollection folderCollection; + + /** + * Gets the value of the folderCollection property. + * + * @return + * possible object is + * {@link FolderCollection } + * + */ + public FolderCollection getFolderCollection() { + return folderCollection; + } + + /** + * Sets the value of the folderCollection property. + * + * @param value + * allowed object is + * {@link FolderCollection } + * + */ + public void setFolderCollection(FolderCollection value) { + this.folderCollection = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetFolderParent.java b/source/generated/org/alfresco/repo/cmis/ws/GetFolderParent.java new file mode 100644 index 0000000000..af53b08fe4 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetFolderParent.java @@ -0,0 +1,122 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getFolderParent element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getFolderParent">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
+ *           <element name="returnToRoot" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "folderId", + "filter", + "returnToRoot" +}) +@XmlRootElement(name = "getFolderParent") +public class GetFolderParent { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String folderId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String filter; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean returnToRoot; + + /** + * Gets the value of the folderId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFolderId() { + return folderId; + } + + /** + * Sets the value of the folderId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFolderId(String value) { + this.folderId = value; + } + + /** + * Gets the value of the filter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilter() { + return filter; + } + + /** + * Sets the value of the filter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilter(String value) { + this.filter = value; + } + + /** + * Gets the value of the returnToRoot property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isReturnToRoot() { + return returnToRoot; + } + + /** + * Sets the value of the returnToRoot property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setReturnToRoot(Boolean value) { + this.returnToRoot = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetFolderParentResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetFolderParentResponse.java new file mode 100644 index 0000000000..992ccd263d --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetFolderParentResponse.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getFolderParentResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getFolderParentResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}folderCollection"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "folderCollection" +}) +@XmlRootElement(name = "getFolderParentResponse") +public class GetFolderParentResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected FolderCollection folderCollection; + + /** + * Gets the value of the folderCollection property. + * + * @return + * possible object is + * {@link FolderCollection } + * + */ + public FolderCollection getFolderCollection() { + return folderCollection; + } + + /** + * Sets the value of the folderCollection property. + * + * @param value + * allowed object is + * {@link FolderCollection } + * + */ + public void setFolderCollection(FolderCollection value) { + this.folderCollection = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetProperties.java b/source/generated/org/alfresco/repo/cmis/ws/GetProperties.java new file mode 100644 index 0000000000..8d47a79a2c --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetProperties.java @@ -0,0 +1,122 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getProperties element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getProperties">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="returnVersion" type="{http://www.cmis.org/ns/1.0}versionEnum" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "objectId", + "returnVersion", + "filter" +}) +@XmlRootElement(name = "getProperties") +public class GetProperties { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String objectId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected VersionEnum returnVersion; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String filter; + + /** + * Gets the value of the objectId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectId() { + return objectId; + } + + /** + * Sets the value of the objectId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectId(String value) { + this.objectId = value; + } + + /** + * Gets the value of the returnVersion property. + * + * @return + * possible object is + * {@link VersionEnum } + * + */ + public VersionEnum getReturnVersion() { + return returnVersion; + } + + /** + * Sets the value of the returnVersion property. + * + * @param value + * allowed object is + * {@link VersionEnum } + * + */ + public void setReturnVersion(VersionEnum value) { + this.returnVersion = value; + } + + /** + * Gets the value of the filter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilter() { + return filter; + } + + /** + * Sets the value of the filter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilter(String value) { + this.filter = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesResponse.java new file mode 100644 index 0000000000..df85015391 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetPropertiesResponse.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getPropertiesResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getPropertiesResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="object" type="{http://www.cmis.org/ns/1.0}documentFolderOrRelationshipObjectType"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "object" +}) +@XmlRootElement(name = "getPropertiesResponse") +public class GetPropertiesResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected DocumentFolderOrRelationshipObjectType object; + + /** + * Gets the value of the object property. + * + * @return + * possible object is + * {@link DocumentFolderOrRelationshipObjectType } + * + */ + public DocumentFolderOrRelationshipObjectType getObject() { + return object; + } + + /** + * Sets the value of the object property. + * + * @param value + * allowed object is + * {@link DocumentFolderOrRelationshipObjectType } + * + */ + public void setObject(DocumentFolderOrRelationshipObjectType value) { + this.object = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetRelationships.java b/source/generated/org/alfresco/repo/cmis/ws/GetRelationships.java new file mode 100644 index 0000000000..d2e87fd3d8 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetRelationships.java @@ -0,0 +1,235 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getRelationships element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getRelationships">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="direction" type="{http://www.cmis.org/ns/1.0}relationshipDirectionEnum"/>
+ *           <element name="typeId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *           <element name="includeSubRelationshipTypes" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}maxItems" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}skipCount" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "objectId", + "direction", + "typeId", + "includeSubRelationshipTypes", + "filter", + "maxItems", + "skipCount" +}) +@XmlRootElement(name = "getRelationships") +public class GetRelationships { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String objectId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected RelationshipDirectionEnum direction; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String typeId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean includeSubRelationshipTypes; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String filter; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger maxItems; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger skipCount; + + /** + * Gets the value of the objectId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectId() { + return objectId; + } + + /** + * Sets the value of the objectId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectId(String value) { + this.objectId = value; + } + + /** + * Gets the value of the direction property. + * + * @return + * possible object is + * {@link RelationshipDirectionEnum } + * + */ + public RelationshipDirectionEnum getDirection() { + return direction; + } + + /** + * Sets the value of the direction property. + * + * @param value + * allowed object is + * {@link RelationshipDirectionEnum } + * + */ + public void setDirection(RelationshipDirectionEnum value) { + this.direction = value; + } + + /** + * Gets the value of the typeId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTypeId() { + return typeId; + } + + /** + * Sets the value of the typeId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTypeId(String value) { + this.typeId = value; + } + + /** + * Gets the value of the includeSubRelationshipTypes property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isIncludeSubRelationshipTypes() { + return includeSubRelationshipTypes; + } + + /** + * Sets the value of the includeSubRelationshipTypes property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIncludeSubRelationshipTypes(Boolean value) { + this.includeSubRelationshipTypes = value; + } + + /** + * Gets the value of the filter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilter() { + return filter; + } + + /** + * Sets the value of the filter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilter(String value) { + this.filter = value; + } + + /** + * Gets the value of the maxItems property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getMaxItems() { + return maxItems; + } + + /** + * Sets the value of the maxItems property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setMaxItems(BigInteger value) { + this.maxItems = value; + } + + /** + * Gets the value of the skipCount property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getSkipCount() { + return skipCount; + } + + /** + * Sets the value of the skipCount property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setSkipCount(BigInteger value) { + this.skipCount = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetRelationshipsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetRelationshipsResponse.java new file mode 100644 index 0000000000..2a7120d351 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetRelationshipsResponse.java @@ -0,0 +1,86 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getRelationshipsResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getRelationshipsResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}relationshipCollection"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}hasMoreItems"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "relationshipCollection", + "hasMoreItems" +}) +@XmlRootElement(name = "getRelationshipsResponse") +public class GetRelationshipsResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected RelationshipCollection relationshipCollection; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean hasMoreItems; + + /** + * Gets the value of the relationshipCollection property. + * + * @return + * possible object is + * {@link RelationshipCollection } + * + */ + public RelationshipCollection getRelationshipCollection() { + return relationshipCollection; + } + + /** + * Sets the value of the relationshipCollection property. + * + * @param value + * allowed object is + * {@link RelationshipCollection } + * + */ + public void setRelationshipCollection(RelationshipCollection value) { + this.relationshipCollection = value; + } + + /** + * Gets the value of the hasMoreItems property. + * + */ + public boolean isHasMoreItems() { + return hasMoreItems; + } + + /** + * Sets the value of the hasMoreItems property. + * + */ + public void setHasMoreItems(boolean value) { + this.hasMoreItems = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetRepositoryInfo.java b/source/generated/org/alfresco/repo/cmis/ws/GetRepositoryInfo.java new file mode 100644 index 0000000000..d32c3fe406 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetRepositoryInfo.java @@ -0,0 +1,36 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getRepositoryInfo element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getRepositoryInfo">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "getRepositoryInfo") +public class GetRepositoryInfo { + + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetRepositoryInfoResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetRepositoryInfoResponse.java new file mode 100644 index 0000000000..2b76f761c2 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetRepositoryInfoResponse.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getRepositoryInfoResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getRepositoryInfoResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="repositoryInfo" type="{http://www.cmis.org/ns/1.0}repositoryInfoType"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "repositoryInfo" +}) +@XmlRootElement(name = "getRepositoryInfoResponse") +public class GetRepositoryInfoResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected RepositoryInfoType repositoryInfo; + + /** + * Gets the value of the repositoryInfo property. + * + * @return + * possible object is + * {@link RepositoryInfoType } + * + */ + public RepositoryInfoType getRepositoryInfo() { + return repositoryInfo; + } + + /** + * Sets the value of the repositoryInfo property. + * + * @param value + * allowed object is + * {@link RepositoryInfoType } + * + */ + public void setRepositoryInfo(RepositoryInfoType value) { + this.repositoryInfo = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetRootFolder.java b/source/generated/org/alfresco/repo/cmis/ws/GetRootFolder.java new file mode 100644 index 0000000000..5ab9b0ba82 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetRootFolder.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getRootFolder element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getRootFolder">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "filter" +}) +@XmlRootElement(name = "getRootFolder") +public class GetRootFolder { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String filter; + + /** + * Gets the value of the filter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilter() { + return filter; + } + + /** + * Sets the value of the filter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilter(String value) { + this.filter = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetRootFolderResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetRootFolderResponse.java new file mode 100644 index 0000000000..563ceea6a7 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetRootFolderResponse.java @@ -0,0 +1,66 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getRootFolderResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getRootFolderResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="rootFolder" type="{http://www.cmis.org/ns/1.0}folderObjectType"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "rootFolder" +}) +@XmlRootElement(name = "getRootFolderResponse") +public class GetRootFolderResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected FolderObjectType rootFolder; + + /** + * Gets the value of the rootFolder property. + * + * @return + * possible object is + * {@link FolderObjectType } + * + */ + public FolderObjectType getRootFolder() { + return rootFolder; + } + + /** + * Sets the value of the rootFolder property. + * + * @param value + * allowed object is + * {@link FolderObjectType } + * + */ + public void setRootFolder(FolderObjectType value) { + this.rootFolder = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetTypeDefinition.java b/source/generated/org/alfresco/repo/cmis/ws/GetTypeDefinition.java new file mode 100644 index 0000000000..38d01fb818 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetTypeDefinition.java @@ -0,0 +1,94 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getTypeDefinition element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getTypeDefinition">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="typeId" type="{http://www.cmis.org/ns/1.0}ID"/>
+ *           <element name="includeInheritedProperties" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "typeId", + "includeInheritedProperties" +}) +@XmlRootElement(name = "getTypeDefinition") +public class GetTypeDefinition { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String typeId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean includeInheritedProperties; + + /** + * Gets the value of the typeId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTypeId() { + return typeId; + } + + /** + * Sets the value of the typeId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTypeId(String value) { + this.typeId = value; + } + + /** + * Gets the value of the includeInheritedProperties property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isIncludeInheritedProperties() { + return includeInheritedProperties; + } + + /** + * Sets the value of the includeInheritedProperties property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIncludeInheritedProperties(Boolean value) { + this.includeInheritedProperties = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetTypeDefinitionResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetTypeDefinitionResponse.java new file mode 100644 index 0000000000..34f85a0749 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetTypeDefinitionResponse.java @@ -0,0 +1,86 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getTypeDefinitionResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getTypeDefinitionResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="type" type="{http://www.cmis.org/ns/1.0}objectTypeDefinitionType"/>
+ *           <element name="canCreateInstances" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "type", + "canCreateInstances" +}) +@XmlRootElement(name = "getTypeDefinitionResponse") +public class GetTypeDefinitionResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected ObjectTypeDefinitionType type; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean canCreateInstances; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link ObjectTypeDefinitionType } + * + */ + public ObjectTypeDefinitionType getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link ObjectTypeDefinitionType } + * + */ + public void setType(ObjectTypeDefinitionType value) { + this.type = value; + } + + /** + * Gets the value of the canCreateInstances property. + * + */ + public boolean isCanCreateInstances() { + return canCreateInstances; + } + + /** + * Sets the value of the canCreateInstances property. + * + */ + public void setCanCreateInstances(boolean value) { + this.canCreateInstances = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetTypes.java b/source/generated/org/alfresco/repo/cmis/ws/GetTypes.java new file mode 100644 index 0000000000..c3490705f6 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetTypes.java @@ -0,0 +1,151 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getTypes element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getTypes">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="type" type="{http://www.cmis.org/ns/1.0}getTypesEnum"/>
+ *           <element name="returnPropertyDefinitions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}maxItems" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}skipCount" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "type", + "returnPropertyDefinitions", + "maxItems", + "skipCount" +}) +@XmlRootElement(name = "getTypes") +public class GetTypes { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected GetTypesEnum type; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean returnPropertyDefinitions; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger maxItems; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger skipCount; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link GetTypesEnum } + * + */ + public GetTypesEnum getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link GetTypesEnum } + * + */ + public void setType(GetTypesEnum value) { + this.type = value; + } + + /** + * Gets the value of the returnPropertyDefinitions property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isReturnPropertyDefinitions() { + return returnPropertyDefinitions; + } + + /** + * Sets the value of the returnPropertyDefinitions property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setReturnPropertyDefinitions(Boolean value) { + this.returnPropertyDefinitions = value; + } + + /** + * Gets the value of the maxItems property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getMaxItems() { + return maxItems; + } + + /** + * Sets the value of the maxItems property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setMaxItems(BigInteger value) { + this.maxItems = value; + } + + /** + * Gets the value of the skipCount property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getSkipCount() { + return skipCount; + } + + /** + * Sets the value of the skipCount property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setSkipCount(BigInteger value) { + this.skipCount = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetTypesEnum.java b/source/generated/org/alfresco/repo/cmis/ws/GetTypesEnum.java new file mode 100644 index 0000000000..ccab3f489a --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetTypesEnum.java @@ -0,0 +1,55 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + + +/** + *

Java class for getTypesEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="getTypesEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Document"/>
+ *     <enumeration value="Folder"/>
+ *     <enumeration value="Relationship"/>
+ *     <enumeration value="All"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlEnum +public enum GetTypesEnum { + + @XmlEnumValue("All") + ALL("All"), + @XmlEnumValue("Document") + DOCUMENT("Document"), + @XmlEnumValue("Folder") + FOLDER("Folder"), + @XmlEnumValue("Relationship") + RELATIONSHIP("Relationship"); + private final String value; + + GetTypesEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static GetTypesEnum fromValue(String v) { + for (GetTypesEnum c: GetTypesEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetTypesResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetTypesResponse.java new file mode 100644 index 0000000000..fb774a3e64 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetTypesResponse.java @@ -0,0 +1,159 @@ + +package org.alfresco.repo.cmis.ws; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import org.alfresco.repo.cmis.ws.GetTypesResponse.Types; + + +/** + *

Java class for getTypesResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getTypesResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="types">
+ *             <complexType>
+ *               <complexContent>
+ *                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                   <sequence>
+ *                     <element name="type" type="{http://www.cmis.org/ns/1.0}objectTypeDefinitionType" maxOccurs="unbounded" minOccurs="0"/>
+ *                   </sequence>
+ *                 </restriction>
+ *               </complexContent>
+ *             </complexType>
+ *           </element>
+ *           <element ref="{http://www.cmis.org/ns/1.0}hasMoreItems"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "types", + "hasMoreItems" +}) +@XmlRootElement(name = "getTypesResponse") +public class GetTypesResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected Types types; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean hasMoreItems; + + /** + * Gets the value of the types property. + * + * @return + * possible object is + * {@link Types } + * + */ + public Types getTypes() { + return types; + } + + /** + * Sets the value of the types property. + * + * @param value + * allowed object is + * {@link Types } + * + */ + public void setTypes(Types value) { + this.types = value; + } + + /** + * Gets the value of the hasMoreItems property. + * + */ + public boolean isHasMoreItems() { + return hasMoreItems; + } + + /** + * Sets the value of the hasMoreItems property. + * + */ + public void setHasMoreItems(boolean value) { + this.hasMoreItems = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="type" type="{http://www.cmis.org/ns/1.0}objectTypeDefinitionType" maxOccurs="unbounded" minOccurs="0"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "type" + }) + public static class Types { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List type; + + /** + * Gets the value of the type property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the type property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getType().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ObjectTypeDefinitionType } + * + * + */ + public List getType() { + if (type == null) { + type = new ArrayList(); + } + return this.type; + } + + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetUnfiledDocs.java b/source/generated/org/alfresco/repo/cmis/ws/GetUnfiledDocs.java new file mode 100644 index 0000000000..109b63afd8 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetUnfiledDocs.java @@ -0,0 +1,123 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getUnfiledDocs element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getUnfiledDocs">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}filter" minOccurs="0"/>
+ *           <element name="maxDocuments" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
+ *           <element name="skipCount" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "filter", + "maxDocuments", + "skipCount" +}) +@XmlRootElement(name = "getUnfiledDocs") +public class GetUnfiledDocs { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String filter; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger maxDocuments; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger skipCount; + + /** + * Gets the value of the filter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilter() { + return filter; + } + + /** + * Sets the value of the filter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilter(String value) { + this.filter = value; + } + + /** + * Gets the value of the maxDocuments property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getMaxDocuments() { + return maxDocuments; + } + + /** + * Sets the value of the maxDocuments property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setMaxDocuments(BigInteger value) { + this.maxDocuments = value; + } + + /** + * Gets the value of the skipCount property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getSkipCount() { + return skipCount; + } + + /** + * Sets the value of the skipCount property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setSkipCount(BigInteger value) { + this.skipCount = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/GetUnfiledDocsResponse.java b/source/generated/org/alfresco/repo/cmis/ws/GetUnfiledDocsResponse.java new file mode 100644 index 0000000000..762bb26834 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/GetUnfiledDocsResponse.java @@ -0,0 +1,86 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for getUnfiledDocsResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="getUnfiledDocsResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}documentCollection"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}hasMoreItems"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentCollection", + "hasMoreItems" +}) +@XmlRootElement(name = "getUnfiledDocsResponse") +public class GetUnfiledDocsResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected DocumentCollection documentCollection; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean hasMoreItems; + + /** + * Gets the value of the documentCollection property. + * + * @return + * possible object is + * {@link DocumentCollection } + * + */ + public DocumentCollection getDocumentCollection() { + return documentCollection; + } + + /** + * Sets the value of the documentCollection property. + * + * @param value + * allowed object is + * {@link DocumentCollection } + * + */ + public void setDocumentCollection(DocumentCollection value) { + this.documentCollection = value; + } + + /** + * Gets the value of the hasMoreItems property. + * + */ + public boolean isHasMoreItems() { + return hasMoreItems; + } + + /** + * Sets the value of the hasMoreItems property. + * + */ + public void setHasMoreItems(boolean value) { + this.hasMoreItems = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/InvalidArgumentException.java b/source/generated/org/alfresco/repo/cmis/ws/InvalidArgumentException.java new file mode 100644 index 0000000000..6e0141ebed --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/InvalidArgumentException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:27 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "InvalidArgumentFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class InvalidArgumentException extends Exception { + public static final long serialVersionUID = 20080527141127L; + + private org.alfresco.repo.cmis.ws.BasicFault invalidArgumentFault; + + public InvalidArgumentException() { + super(); + } + + public InvalidArgumentException(String message) { + super(message); + } + + public InvalidArgumentException(String message, Throwable cause) { + super(message, cause); + } + + public InvalidArgumentException(String message, org.alfresco.repo.cmis.ws.BasicFault invalidArgumentFault) { + super(message); + this.invalidArgumentFault = invalidArgumentFault; + } + + public InvalidArgumentException(String message, org.alfresco.repo.cmis.ws.BasicFault invalidArgumentFault, Throwable cause) { + super(message, cause); + this.invalidArgumentFault = invalidArgumentFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.invalidArgumentFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/MoveObject.java b/source/generated/org/alfresco/repo/cmis/ws/MoveObject.java new file mode 100644 index 0000000000..e68554f3ae --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/MoveObject.java @@ -0,0 +1,122 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for moveObject element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="moveObject">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="sourceFolderId" type="{http://www.cmis.org/ns/1.0}objectID" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "objectId", + "folderId", + "sourceFolderId" +}) +@XmlRootElement(name = "moveObject") +public class MoveObject { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String objectId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String folderId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String sourceFolderId; + + /** + * Gets the value of the objectId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectId() { + return objectId; + } + + /** + * Sets the value of the objectId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectId(String value) { + this.objectId = value; + } + + /** + * Gets the value of the folderId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFolderId() { + return folderId; + } + + /** + * Sets the value of the folderId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFolderId(String value) { + this.folderId = value; + } + + /** + * Gets the value of the sourceFolderId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSourceFolderId() { + return sourceFolderId; + } + + /** + * Sets the value of the sourceFolderId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSourceFolderId(String value) { + this.sourceFolderId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/MoveObjectResponse.java b/source/generated/org/alfresco/repo/cmis/ws/MoveObjectResponse.java new file mode 100644 index 0000000000..76da81fd98 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/MoveObjectResponse.java @@ -0,0 +1,36 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for moveObjectResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="moveObjectResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "moveObjectResponse") +public class MoveObjectResponse { + + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/NavigationService.java b/source/generated/org/alfresco/repo/cmis/ws/NavigationService.java new file mode 100644 index 0000000000..bda5c0f409 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/NavigationService.java @@ -0,0 +1,58 @@ + +package org.alfresco.repo.cmis.ws; + +import java.net.MalformedURLException; +import java.net.URL; +import javax.xml.namespace.QName; +import javax.xml.ws.Service; +import javax.xml.ws.WebEndpoint; +import javax.xml.ws.WebServiceClient; +import org.alfresco.repo.cmis.ws.NavigationServicePort; + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:27 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebServiceClient(name = "NavigationService", targetNamespace = "http://www.cmis.org/ns/1.0", wsdlLocation = "file:/D:/work/AlfrescoCMIS-WS/WScmis/web/wsdl/cmis/NavigationService.wsdl") +public class NavigationService extends Service { + + public final static URL WSDL_LOCATION; + public final static QName SERVICE = new QName("http://www.cmis.org/ns/1.0", "NavigationService"); + public final static QName NavigationServicePort = new QName("http://www.cmis.org/ns/1.0", "NavigationServicePort"); + static { + URL url = null; + try { + url = new URL("file:/D:/work/AlfrescoCMIS-WS/WScmis/web/wsdl/cmis/NavigationService.wsdl"); + } catch (MalformedURLException e) { + System.err.println("Can not initialize the default wsdl from file:/D:/work/AlfrescoCMIS-WS/WScmis/web/wsdl/cmis/NavigationService.wsdl"); + // e.printStackTrace(); + } + WSDL_LOCATION = url; + } + + public NavigationService(URL wsdlLocation) { + super(wsdlLocation, SERVICE); + } + + public NavigationService(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + public NavigationService() { + super(WSDL_LOCATION, SERVICE); + } + + /** + * + * @return + * returns NavigationServicePort + */ + @WebEndpoint(name = "NavigationServicePort") + public NavigationServicePort getNavigationServicePort() { + return super.getPort(NavigationServicePort, NavigationServicePort.class); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/NavigationServicePort.java b/source/generated/org/alfresco/repo/cmis/ws/NavigationServicePort.java new file mode 100644 index 0000000000..aa1155e844 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/NavigationServicePort.java @@ -0,0 +1,70 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.jws.soap.SOAPBinding; +import javax.jws.soap.SOAPBinding.ParameterStyle; + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:27 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebService(targetNamespace = "http://www.cmis.org/ns/1.0", name = "NavigationServicePort") +@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + +public interface NavigationServicePort { + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "getDescendantsResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebMethod + public org.alfresco.repo.cmis.ws.GetDescendantsResponse getDescendants( + @WebParam(partName = "parameters", name = "getDescendants", targetNamespace = "http://www.cmis.org/ns/1.0") + GetDescendants parameters + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, FilterNotValidException, OperationNotSupportedException, FolderNotValidException, PermissionDeniedException; + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "getCheckedoutDocsResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebMethod + public org.alfresco.repo.cmis.ws.GetCheckedoutDocsResponse getCheckedoutDocs( + @WebParam(partName = "parameters", name = "getCheckedoutDocs", targetNamespace = "http://www.cmis.org/ns/1.0") + GetCheckedoutDocs parameters + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, FilterNotValidException, OperationNotSupportedException, FolderNotValidException, PermissionDeniedException; + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "getDocumentParentsResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebMethod + public org.alfresco.repo.cmis.ws.GetDocumentParentsResponse getDocumentParents( + @WebParam(partName = "parameters", name = "getDocumentParents", targetNamespace = "http://www.cmis.org/ns/1.0") + GetDocumentParents parameters + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, FilterNotValidException, OperationNotSupportedException, PermissionDeniedException; + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "getChildrenResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebMethod + public org.alfresco.repo.cmis.ws.GetChildrenResponse getChildren( + @WebParam(partName = "parameters", name = "getChildren", targetNamespace = "http://www.cmis.org/ns/1.0") + GetChildren parameters + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, FilterNotValidException, OperationNotSupportedException, FolderNotValidException, PermissionDeniedException; + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "getFolderParentResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebMethod + public org.alfresco.repo.cmis.ws.GetFolderParentResponse getFolderParent( + @WebParam(partName = "parameters", name = "getFolderParent", targetNamespace = "http://www.cmis.org/ns/1.0") + GetFolderParent parameters + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, FilterNotValidException, OperationNotSupportedException, FolderNotValidException, PermissionDeniedException; + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "getUnfiledDocsResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebMethod + public org.alfresco.repo.cmis.ws.GetUnfiledDocsResponse getUnfiledDocs( + @WebParam(partName = "parameters", name = "getUnfiledDocs", targetNamespace = "http://www.cmis.org/ns/1.0") + GetUnfiledDocs parameters + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, FilterNotValidException, OperationNotSupportedException, PermissionDeniedException; +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/NotInFolderException.java b/source/generated/org/alfresco/repo/cmis/ws/NotInFolderException.java new file mode 100644 index 0000000000..bb42996f30 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/NotInFolderException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:13 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "NotInFolderFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class NotInFolderException extends Exception { + public static final long serialVersionUID = 20080527141113L; + + private org.alfresco.repo.cmis.ws.BasicFault notInFolderFault; + + public NotInFolderException() { + super(); + } + + public NotInFolderException(String message) { + super(message); + } + + public NotInFolderException(String message, Throwable cause) { + super(message, cause); + } + + public NotInFolderException(String message, org.alfresco.repo.cmis.ws.BasicFault notInFolderFault) { + super(message); + this.notInFolderFault = notInFolderFault; + } + + public NotInFolderException(String message, org.alfresco.repo.cmis.ws.BasicFault notInFolderFault, Throwable cause) { + super(message, cause); + this.notInFolderFault = notInFolderFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.notInFolderFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectFactory.java b/source/generated/org/alfresco/repo/cmis/ws/ObjectFactory.java new file mode 100644 index 0000000000..9c08f971eb --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ObjectFactory.java @@ -0,0 +1,933 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; +import org.alfresco.repo.cmis.ws.DeleteTreeResponse.FailedToDelete; +import org.alfresco.repo.cmis.ws.GetAllowableActionsResponse.AllowableActionCollection; +import org.alfresco.repo.cmis.ws.GetTypesResponse.Types; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the org.alfresco.repo.cmis.ws package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _ObjectNotFoundFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "ObjectNotFoundFault"); + private final static QName _OffsetFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "OffsetFault"); + private final static QName _StorageFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "StorageFault"); + private final static QName _RuntimeFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "RuntimeFault"); + private final static QName _StreamNotSupportedFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "StreamNotSupportedFault"); + private final static QName _HasMoreItems_QNAME = new QName("http://www.cmis.org/ns/1.0", "hasMoreItems"); + private final static QName _FilterNotValidFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "FilterNotValidFault"); + private final static QName _SkipCount_QNAME = new QName("http://www.cmis.org/ns/1.0", "skipCount"); + private final static QName _Parent_QNAME = new QName("http://www.cmis.org/ns/1.0", "parent"); + private final static QName _InvalidArgumentFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "InvalidArgumentFault"); + private final static QName _Name_QNAME = new QName("http://www.cmis.org/ns/1.0", "name"); + private final static QName _OperationNotSupportedFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "OperationNotSupportedFault"); + private final static QName _SourceOID_QNAME = new QName("http://www.cmis.org/ns/1.0", "sourceOID"); + private final static QName _Filter_QNAME = new QName("http://www.cmis.org/ns/1.0", "filter"); + private final static QName _TypeNotFoundFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "TypeNotFoundFault"); + private final static QName _PermissionDeniedFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "PermissionDeniedFault"); + private final static QName _ConcurrencyFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "ConcurrencyFault"); + private final static QName _NotInFolderFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "NotInFolderFault"); + private final static QName _FolderNotValidFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "FolderNotValidFault"); + private final static QName _AlreadyExistsFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "AlreadyExistsFault"); + private final static QName _ConstraintViolationFault_QNAME = new QName("http://www.cmis.org/ns/1.0", "ConstraintViolationFault"); + private final static QName _MaxItems_QNAME = new QName("http://www.cmis.org/ns/1.0", "maxItems"); + private final static QName _TargetOID_QNAME = new QName("http://www.cmis.org/ns/1.0", "targetOID"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.alfresco.repo.cmis.ws + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link DeleteObject } + * + */ + public DeleteObject createDeleteObject() { + return new DeleteObject(); + } + + /** + * Create an instance of {@link GetRelationships } + * + */ + public GetRelationships createGetRelationships() { + return new GetRelationships(); + } + + /** + * Create an instance of {@link DocumentFolderOrRelationshipObjectType } + * + */ + public DocumentFolderOrRelationshipObjectType createDocumentFolderOrRelationshipObjectType() { + return new DocumentFolderOrRelationshipObjectType(); + } + + /** + * Create an instance of {@link CheckInResponse } + * + */ + public CheckInResponse createCheckInResponse() { + return new CheckInResponse(); + } + + /** + * Create an instance of {@link GetDescendants } + * + */ + public GetDescendants createGetDescendants() { + return new GetDescendants(); + } + + /** + * Create an instance of {@link QueryResponse } + * + */ + public QueryResponse createQueryResponse() { + return new QueryResponse(); + } + + /** + * Create an instance of {@link GetChildrenResponse } + * + */ + public GetChildrenResponse createGetChildrenResponse() { + return new GetChildrenResponse(); + } + + /** + * Create an instance of {@link BasicFault } + * + */ + public BasicFault createBasicFault() { + return new BasicFault(); + } + + /** + * Create an instance of {@link UpdatePropertiesResponse } + * + */ + public UpdatePropertiesResponse createUpdatePropertiesResponse() { + return new UpdatePropertiesResponse(); + } + + /** + * Create an instance of {@link GetFolderParentResponse } + * + */ + public GetFolderParentResponse createGetFolderParentResponse() { + return new GetFolderParentResponse(); + } + + /** + * Create an instance of {@link ObjectTypeDefinitionType } + * + */ + public ObjectTypeDefinitionType createObjectTypeDefinitionType() { + return new ObjectTypeDefinitionType(); + } + + /** + * Create an instance of {@link DeleteAllVersions } + * + */ + public DeleteAllVersions createDeleteAllVersions() { + return new DeleteAllVersions(); + } + + /** + * Create an instance of {@link RepositoryInfoType } + * + */ + public RepositoryInfoType createRepositoryInfoType() { + return new RepositoryInfoType(); + } + + /** + * Create an instance of {@link GetCheckedoutDocs } + * + */ + public GetCheckedoutDocs createGetCheckedoutDocs() { + return new GetCheckedoutDocs(); + } + + /** + * Create an instance of {@link RemoveDocumentFromFolderResponse } + * + */ + public RemoveDocumentFromFolderResponse createRemoveDocumentFromFolderResponse() { + return new RemoveDocumentFromFolderResponse(); + } + + /** + * Create an instance of {@link DeleteTree } + * + */ + public DeleteTree createDeleteTree() { + return new DeleteTree(); + } + + /** + * Create an instance of {@link ContentStream } + * + */ + public ContentStream createContentStream() { + return new ContentStream(); + } + + /** + * Create an instance of {@link GetRepositoryInfoResponse } + * + */ + public GetRepositoryInfoResponse createGetRepositoryInfoResponse() { + return new GetRepositoryInfoResponse(); + } + + /** + * Create an instance of {@link GetAllowableActionsResponse } + * + */ + public GetAllowableActionsResponse createGetAllowableActionsResponse() { + return new GetAllowableActionsResponse(); + } + + /** + * Create an instance of {@link RemoveDocumentFromFolder } + * + */ + public RemoveDocumentFromFolder createRemoveDocumentFromFolder() { + return new RemoveDocumentFromFolder(); + } + + /** + * Create an instance of {@link GetAllVersions } + * + */ + public GetAllVersions createGetAllVersions() { + return new GetAllVersions(); + } + + /** + * Create an instance of {@link AddDocumentToFolderResponse } + * + */ + public AddDocumentToFolderResponse createAddDocumentToFolderResponse() { + return new AddDocumentToFolderResponse(); + } + + /** + * Create an instance of {@link SetContentStream } + * + */ + public SetContentStream createSetContentStream() { + return new SetContentStream(); + } + + /** + * Create an instance of {@link GetDocumentParents } + * + */ + public GetDocumentParents createGetDocumentParents() { + return new GetDocumentParents(); + } + + /** + * Create an instance of {@link CancelCheckOutResponse } + * + */ + public CancelCheckOutResponse createCancelCheckOutResponse() { + return new CancelCheckOutResponse(); + } + + /** + * Create an instance of {@link AddDocumentToFolder } + * + */ + public AddDocumentToFolder createAddDocumentToFolder() { + return new AddDocumentToFolder(); + } + + /** + * Create an instance of {@link GetChildren } + * + */ + public GetChildren createGetChildren() { + return new GetChildren(); + } + + /** + * Create an instance of {@link GetRootFolderResponse } + * + */ + public GetRootFolderResponse createGetRootFolderResponse() { + return new GetRootFolderResponse(); + } + + /** + * Create an instance of {@link GetContentStream } + * + */ + public GetContentStream createGetContentStream() { + return new GetContentStream(); + } + + /** + * Create an instance of {@link GetTypesResponse } + * + */ + public GetTypesResponse createGetTypesResponse() { + return new GetTypesResponse(); + } + + /** + * Create an instance of {@link GetUnfiledDocs } + * + */ + public GetUnfiledDocs createGetUnfiledDocs() { + return new GetUnfiledDocs(); + } + + /** + * Create an instance of {@link MoveObject } + * + */ + public MoveObject createMoveObject() { + return new MoveObject(); + } + + /** + * Create an instance of {@link GetProperties } + * + */ + public GetProperties createGetProperties() { + return new GetProperties(); + } + + /** + * Create an instance of {@link DeleteTreeResponse } + * + */ + public DeleteTreeResponse createDeleteTreeResponse() { + return new DeleteTreeResponse(); + } + + /** + * Create an instance of {@link GetUnfiledDocsResponse } + * + */ + public GetUnfiledDocsResponse createGetUnfiledDocsResponse() { + return new GetUnfiledDocsResponse(); + } + + /** + * Create an instance of {@link Types } + * + */ + public Types createGetTypesResponseTypes() { + return new Types(); + } + + /** + * Create an instance of {@link RelationshipObjectType } + * + */ + public RelationshipObjectType createRelationshipObjectType() { + return new RelationshipObjectType(); + } + + /** + * Create an instance of {@link GetRelationshipsResponse } + * + */ + public GetRelationshipsResponse createGetRelationshipsResponse() { + return new GetRelationshipsResponse(); + } + + /** + * Create an instance of {@link DocumentCollection } + * + */ + public DocumentCollection createDocumentCollection() { + return new DocumentCollection(); + } + + /** + * Create an instance of {@link DocumentObjectType } + * + */ + public DocumentObjectType createDocumentObjectType() { + return new DocumentObjectType(); + } + + /** + * Create an instance of {@link CancelCheckOut } + * + */ + public CancelCheckOut createCancelCheckOut() { + return new CancelCheckOut(); + } + + /** + * Create an instance of {@link GetTypeDefinitionResponse } + * + */ + public GetTypeDefinitionResponse createGetTypeDefinitionResponse() { + return new GetTypeDefinitionResponse(); + } + + /** + * Create an instance of {@link GetAllVersionsResponse } + * + */ + public GetAllVersionsResponse createGetAllVersionsResponse() { + return new GetAllVersionsResponse(); + } + + /** + * Create an instance of {@link Children } + * + */ + public Children createChildren() { + return new Children(); + } + + /** + * Create an instance of {@link Property } + * + */ + public Property createProperty() { + return new Property(); + } + + /** + * Create an instance of {@link DocumentOrFolderObjectType } + * + */ + public DocumentOrFolderObjectType createDocumentOrFolderObjectType() { + return new DocumentOrFolderObjectType(); + } + + /** + * Create an instance of {@link GetFolderParent } + * + */ + public GetFolderParent createGetFolderParent() { + return new GetFolderParent(); + } + + /** + * Create an instance of {@link ChoiceType } + * + */ + public ChoiceType createChoiceType() { + return new ChoiceType(); + } + + /** + * Create an instance of {@link CapabilitiesType } + * + */ + public CapabilitiesType createCapabilitiesType() { + return new CapabilitiesType(); + } + + /** + * Create an instance of {@link Query } + * + */ + public Query createQuery() { + return new Query(); + } + + /** + * Create an instance of {@link CreateFolderResponse } + * + */ + public CreateFolderResponse createCreateFolderResponse() { + return new CreateFolderResponse(); + } + + /** + * Create an instance of {@link CreateDocument } + * + */ + public CreateDocument createCreateDocument() { + return new CreateDocument(); + } + + /** + * Create an instance of {@link DeleteAllVersionsResponse } + * + */ + public DeleteAllVersionsResponse createDeleteAllVersionsResponse() { + return new DeleteAllVersionsResponse(); + } + + /** + * Create an instance of {@link GetRepositoryInfo } + * + */ + public GetRepositoryInfo createGetRepositoryInfo() { + return new GetRepositoryInfo(); + } + + /** + * Create an instance of {@link FailedToDelete } + * + */ + public FailedToDelete createDeleteTreeResponseFailedToDelete() { + return new FailedToDelete(); + } + + /** + * Create an instance of {@link DeleteContentStreamResponse } + * + */ + public DeleteContentStreamResponse createDeleteContentStreamResponse() { + return new DeleteContentStreamResponse(); + } + + /** + * Create an instance of {@link GetTypes } + * + */ + public GetTypes createGetTypes() { + return new GetTypes(); + } + + /** + * Create an instance of {@link CreateDocumentResponse } + * + */ + public CreateDocumentResponse createCreateDocumentResponse() { + return new CreateDocumentResponse(); + } + + /** + * Create an instance of {@link PropertyAttributesType } + * + */ + public PropertyAttributesType createPropertyAttributesType() { + return new PropertyAttributesType(); + } + + /** + * Create an instance of {@link GetPropertiesResponse } + * + */ + public GetPropertiesResponse createGetPropertiesResponse() { + return new GetPropertiesResponse(); + } + + /** + * Create an instance of {@link CreateRelationshipResponse } + * + */ + public CreateRelationshipResponse createCreateRelationshipResponse() { + return new CreateRelationshipResponse(); + } + + /** + * Create an instance of {@link DeleteContentStream } + * + */ + public DeleteContentStream createDeleteContentStream() { + return new DeleteContentStream(); + } + + /** + * Create an instance of {@link UpdateProperties } + * + */ + public UpdateProperties createUpdateProperties() { + return new UpdateProperties(); + } + + /** + * Create an instance of {@link FolderCollection } + * + */ + public FolderCollection createFolderCollection() { + return new FolderCollection(); + } + + /** + * Create an instance of {@link GetDocumentParentsResponse } + * + */ + public GetDocumentParentsResponse createGetDocumentParentsResponse() { + return new GetDocumentParentsResponse(); + } + + /** + * Create an instance of {@link FolderObjectType } + * + */ + public FolderObjectType createFolderObjectType() { + return new FolderObjectType(); + } + + /** + * Create an instance of {@link GetAllowableActions } + * + */ + public GetAllowableActions createGetAllowableActions() { + return new GetAllowableActions(); + } + + /** + * Create an instance of {@link MoveObjectResponse } + * + */ + public MoveObjectResponse createMoveObjectResponse() { + return new MoveObjectResponse(); + } + + /** + * Create an instance of {@link DeleteObjectResponse } + * + */ + public DeleteObjectResponse createDeleteObjectResponse() { + return new DeleteObjectResponse(); + } + + /** + * Create an instance of {@link SetContentStreamResponse } + * + */ + public SetContentStreamResponse createSetContentStreamResponse() { + return new SetContentStreamResponse(); + } + + /** + * Create an instance of {@link GetContentStreamResponse } + * + */ + public GetContentStreamResponse createGetContentStreamResponse() { + return new GetContentStreamResponse(); + } + + /** + * Create an instance of {@link CreateFolder } + * + */ + public CreateFolder createCreateFolder() { + return new CreateFolder(); + } + + /** + * Create an instance of {@link AllowableActionCollection } + * + */ + public AllowableActionCollection createGetAllowableActionsResponseAllowableActionCollection() { + return new AllowableActionCollection(); + } + + /** + * Create an instance of {@link DocumentAndFolderCollection } + * + */ + public DocumentAndFolderCollection createDocumentAndFolderCollection() { + return new DocumentAndFolderCollection(); + } + + /** + * Create an instance of {@link GetDescendantsResponse } + * + */ + public GetDescendantsResponse createGetDescendantsResponse() { + return new GetDescendantsResponse(); + } + + /** + * Create an instance of {@link CheckOutResponse } + * + */ + public CheckOutResponse createCheckOutResponse() { + return new CheckOutResponse(); + } + + /** + * Create an instance of {@link RelationshipCollection } + * + */ + public RelationshipCollection createRelationshipCollection() { + return new RelationshipCollection(); + } + + /** + * Create an instance of {@link CheckIn } + * + */ + public CheckIn createCheckIn() { + return new CheckIn(); + } + + /** + * Create an instance of {@link GetRootFolder } + * + */ + public GetRootFolder createGetRootFolder() { + return new GetRootFolder(); + } + + /** + * Create an instance of {@link GetTypeDefinition } + * + */ + public GetTypeDefinition createGetTypeDefinition() { + return new GetTypeDefinition(); + } + + /** + * Create an instance of {@link CheckOut } + * + */ + public CheckOut createCheckOut() { + return new CheckOut(); + } + + /** + * Create an instance of {@link CreateRelationship } + * + */ + public CreateRelationship createCreateRelationship() { + return new CreateRelationship(); + } + + /** + * Create an instance of {@link GetCheckedoutDocsResponse } + * + */ + public GetCheckedoutDocsResponse createGetCheckedoutDocsResponse() { + return new GetCheckedoutDocsResponse(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "ObjectNotFoundFault") + public JAXBElement createObjectNotFoundFault(BasicFault value) { + return new JAXBElement(_ObjectNotFoundFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "OffsetFault") + public JAXBElement createOffsetFault(BasicFault value) { + return new JAXBElement(_OffsetFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "StorageFault") + public JAXBElement createStorageFault(BasicFault value) { + return new JAXBElement(_StorageFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "RuntimeFault") + public JAXBElement createRuntimeFault(BasicFault value) { + return new JAXBElement(_RuntimeFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "StreamNotSupportedFault") + public JAXBElement createStreamNotSupportedFault(BasicFault value) { + return new JAXBElement(_StreamNotSupportedFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "hasMoreItems") + public JAXBElement createHasMoreItems(Boolean value) { + return new JAXBElement(_HasMoreItems_QNAME, Boolean.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "FilterNotValidFault") + public JAXBElement createFilterNotValidFault(BasicFault value) { + return new JAXBElement(_FilterNotValidFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "skipCount") + public JAXBElement createSkipCount(BigInteger value) { + return new JAXBElement(_SkipCount_QNAME, BigInteger.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "parent") + public JAXBElement createParent(String value) { + return new JAXBElement(_Parent_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "InvalidArgumentFault") + public JAXBElement createInvalidArgumentFault(BasicFault value) { + return new JAXBElement(_InvalidArgumentFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "name") + public JAXBElement createName(String value) { + return new JAXBElement(_Name_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "OperationNotSupportedFault") + public JAXBElement createOperationNotSupportedFault(BasicFault value) { + return new JAXBElement(_OperationNotSupportedFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "sourceOID") + public JAXBElement createSourceOID(String value) { + return new JAXBElement(_SourceOID_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "filter") + public JAXBElement createFilter(String value) { + return new JAXBElement(_Filter_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "TypeNotFoundFault") + public JAXBElement createTypeNotFoundFault(BasicFault value) { + return new JAXBElement(_TypeNotFoundFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "PermissionDeniedFault") + public JAXBElement createPermissionDeniedFault(BasicFault value) { + return new JAXBElement(_PermissionDeniedFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "ConcurrencyFault") + public JAXBElement createConcurrencyFault(BasicFault value) { + return new JAXBElement(_ConcurrencyFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "NotInFolderFault") + public JAXBElement createNotInFolderFault(BasicFault value) { + return new JAXBElement(_NotInFolderFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "FolderNotValidFault") + public JAXBElement createFolderNotValidFault(BasicFault value) { + return new JAXBElement(_FolderNotValidFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "AlreadyExistsFault") + public JAXBElement createAlreadyExistsFault(BasicFault value) { + return new JAXBElement(_AlreadyExistsFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BasicFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "ConstraintViolationFault") + public JAXBElement createConstraintViolationFault(BasicFault value) { + return new JAXBElement(_ConstraintViolationFault_QNAME, BasicFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "maxItems") + public JAXBElement createMaxItems(BigInteger value) { + return new JAXBElement(_MaxItems_QNAME, BigInteger.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.cmis.org/ns/1.0", name = "targetOID") + public JAXBElement createTargetOID(String value) { + return new JAXBElement(_TargetOID_QNAME, String.class, null, value); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectNotFoundException.java b/source/generated/org/alfresco/repo/cmis/ws/ObjectNotFoundException.java new file mode 100644 index 0000000000..a2969bebb2 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ObjectNotFoundException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:27 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "ObjectNotFoundFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class ObjectNotFoundException extends Exception { + public static final long serialVersionUID = 20080527141127L; + + private org.alfresco.repo.cmis.ws.BasicFault objectNotFoundFault; + + public ObjectNotFoundException() { + super(); + } + + public ObjectNotFoundException(String message) { + super(message); + } + + public ObjectNotFoundException(String message, Throwable cause) { + super(message, cause); + } + + public ObjectNotFoundException(String message, org.alfresco.repo.cmis.ws.BasicFault objectNotFoundFault) { + super(message); + this.objectNotFoundFault = objectNotFoundFault; + } + + public ObjectNotFoundException(String message, org.alfresco.repo.cmis.ws.BasicFault objectNotFoundFault, Throwable cause) { + super(message, cause); + this.objectNotFoundFault = objectNotFoundFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.objectNotFoundFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectService.java b/source/generated/org/alfresco/repo/cmis/ws/ObjectService.java new file mode 100644 index 0000000000..79ae14cbab --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ObjectService.java @@ -0,0 +1,58 @@ + +package org.alfresco.repo.cmis.ws; + +import java.net.MalformedURLException; +import java.net.URL; +import javax.xml.namespace.QName; +import javax.xml.ws.Service; +import javax.xml.ws.WebEndpoint; +import javax.xml.ws.WebServiceClient; +import org.alfresco.repo.cmis.ws.ObjectServicePort; + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:14 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebServiceClient(name = "ObjectService", targetNamespace = "http://www.cmis.org/ns/1.0", wsdlLocation = "file:/D:/work/AlfrescoCMIS-WS/WScmis/web/wsdl/cmis/ObjectService.wsdl") +public class ObjectService extends Service { + + public final static URL WSDL_LOCATION; + public final static QName SERVICE = new QName("http://www.cmis.org/ns/1.0", "ObjectService"); + public final static QName ObjectServicePort = new QName("http://www.cmis.org/ns/1.0", "ObjectServicePort"); + static { + URL url = null; + try { + url = new URL("file:/D:/work/AlfrescoCMIS-WS/WScmis/web/wsdl/cmis/ObjectService.wsdl"); + } catch (MalformedURLException e) { + System.err.println("Can not initialize the default wsdl from file:/D:/work/AlfrescoCMIS-WS/WScmis/web/wsdl/cmis/ObjectService.wsdl"); + // e.printStackTrace(); + } + WSDL_LOCATION = url; + } + + public ObjectService(URL wsdlLocation) { + super(wsdlLocation, SERVICE); + } + + public ObjectService(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + public ObjectService() { + super(WSDL_LOCATION, SERVICE); + } + + /** + * + * @return + * returns ObjectServicePort + */ + @WebEndpoint(name = "ObjectServicePort") + public ObjectServicePort getObjectServicePort() { + return super.getPort(ObjectServicePort, ObjectServicePort.class); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectServicePort.java b/source/generated/org/alfresco/repo/cmis/ws/ObjectServicePort.java new file mode 100644 index 0000000000..2bc94ae12d --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ObjectServicePort.java @@ -0,0 +1,152 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.jws.soap.SOAPBinding; +import javax.jws.soap.SOAPBinding.ParameterStyle; +import javax.xml.ws.RequestWrapper; +import javax.xml.ws.ResponseWrapper; + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:14 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebService(targetNamespace = "http://www.cmis.org/ns/1.0", name = "ObjectServicePort") + +public interface ObjectServicePort { + + @ResponseWrapper(localName = "deleteTreeResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.DeleteTreeResponse") + @RequestWrapper(localName = "deleteTree", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.DeleteTree") + @WebResult(name = "failedToDelete", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebMethod + public org.alfresco.repo.cmis.ws.DeleteTreeResponse.FailedToDelete deleteTree( + @WebParam(name = "folderId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String folderId, + @WebParam(name = "unfileMultiFiledDocuments", targetNamespace = "http://www.cmis.org/ns/1.0") + org.alfresco.repo.cmis.ws.DeleteWithMultiFilingEnum unfileMultiFiledDocuments, + @WebParam(name = "continueOnFailure", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.Boolean continueOnFailure + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, OperationNotSupportedException, FolderNotValidException, PermissionDeniedException; + + @ResponseWrapper(localName = "getAllowableActionsResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetAllowableActionsResponse") + @RequestWrapper(localName = "getAllowableActions", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetAllowableActions") + @WebResult(name = "allowableActionCollection", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebMethod + public org.alfresco.repo.cmis.ws.GetAllowableActionsResponse.AllowableActionCollection getAllowableActions( + @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String objectId, + @WebParam(name = "asUser", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String asUser + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, OperationNotSupportedException, PermissionDeniedException; + + @ResponseWrapper(localName = "moveObjectResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.MoveObjectResponse") + @RequestWrapper(localName = "moveObject", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.MoveObject") + @WebMethod + public void moveObject( + @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String objectId, + @WebParam(name = "folderId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String folderId, + @WebParam(name = "sourceFolderId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String sourceFolderId + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, NotInFolderException, ConstraintViolationException, OperationNotSupportedException, FolderNotValidException, PermissionDeniedException; + + @ResponseWrapper(localName = "deleteContentStreamResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.DeleteContentStreamResponse") + @RequestWrapper(localName = "deleteContentStream", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.DeleteContentStream") + @WebMethod + public void deleteContentStream( + @WebParam(name = "documentId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String documentId + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, StorageException, ConstraintViolationException, OperationNotSupportedException, StreamNotSupportedException, PermissionDeniedException; + + @ResponseWrapper(localName = "createFolderResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.CreateFolderResponse") + @RequestWrapper(localName = "createFolder", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.CreateFolder") + @WebResult(name = "objectId", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebMethod + public java.lang.String createFolder( + @WebParam(name = "typeId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String typeId, + @WebParam(name = "propertyCollection", targetNamespace = "http://www.cmis.org/ns/1.0") + org.alfresco.repo.cmis.ws.FolderObjectType propertyCollection, + @WebParam(name = "folderId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String folderId + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, TypeNotFoundException, ConstraintViolationException, OperationNotSupportedException, FolderNotValidException, PermissionDeniedException; + + @ResponseWrapper(localName = "updatePropertiesResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.UpdatePropertiesResponse") + @RequestWrapper(localName = "updateProperties", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.UpdateProperties") + @WebMethod + public void updateProperties( + @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String objectId, + @WebParam(name = "changeToken", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String changeToken, + @WebParam(name = "object", targetNamespace = "http://www.cmis.org/ns/1.0") + org.alfresco.repo.cmis.ws.DocumentFolderOrRelationshipObjectType object + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, OperationNotSupportedException, PermissionDeniedException; + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "createDocumentResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebMethod + public org.alfresco.repo.cmis.ws.CreateDocumentResponse createDocument( + @WebParam(partName = "parameters", name = "createDocument", targetNamespace = "http://www.cmis.org/ns/1.0") + CreateDocument parameters + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, TypeNotFoundException, StorageException, ConstraintViolationException, OperationNotSupportedException, StreamNotSupportedException, FolderNotValidException, PermissionDeniedException; + + @ResponseWrapper(localName = "getContentStreamResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetContentStreamResponse") + @RequestWrapper(localName = "getContentStream", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetContentStream") + @WebResult(name = "stream", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebMethod + public byte[] getContentStream( + @WebParam(name = "documentId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String documentId, + @WebParam(name = "offset", targetNamespace = "http://www.cmis.org/ns/1.0") + java.math.BigInteger offset, + @WebParam(name = "length", targetNamespace = "http://www.cmis.org/ns/1.0") + java.math.BigInteger length + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, StorageException, OperationNotSupportedException, StreamNotSupportedException, OffsetException, PermissionDeniedException; + + @ResponseWrapper(localName = "createRelationshipResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.CreateRelationshipResponse") + @RequestWrapper(localName = "createRelationship", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.CreateRelationship") + @WebResult(name = "objectId", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebMethod + public java.lang.String createRelationship( + @WebParam(name = "typeId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String typeId, + @WebParam(name = "propertyCollection", targetNamespace = "http://www.cmis.org/ns/1.0") + org.alfresco.repo.cmis.ws.RelationshipObjectType propertyCollection, + @WebParam(name = "sourceObjectId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String sourceObjectId, + @WebParam(name = "targetObjectId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String targetObjectId + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, TypeNotFoundException, ObjectNotFoundException, ConstraintViolationException, OperationNotSupportedException, PermissionDeniedException; + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "setContentStreamResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebMethod + public org.alfresco.repo.cmis.ws.SetContentStreamResponse setContentStream( + @WebParam(partName = "parameters", name = "setContentStream", targetNamespace = "http://www.cmis.org/ns/1.0") + SetContentStream parameters + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, AlreadyExistsException, ObjectNotFoundException, StorageException, ConstraintViolationException, OperationNotSupportedException, StreamNotSupportedException, PermissionDeniedException; + + @ResponseWrapper(localName = "deleteObjectResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.DeleteObjectResponse") + @RequestWrapper(localName = "deleteObject", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.DeleteObject") + @WebMethod + public void deleteObject( + @WebParam(name = "objectId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String objectId + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, ConstraintViolationException, OperationNotSupportedException, PermissionDeniedException; + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "getPropertiesResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebMethod + public org.alfresco.repo.cmis.ws.GetPropertiesResponse getProperties( + @WebParam(partName = "parameters", name = "getProperties", targetNamespace = "http://www.cmis.org/ns/1.0") + GetProperties parameters + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, FilterNotValidException, OperationNotSupportedException, PermissionDeniedException; +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectTypeBase.java b/source/generated/org/alfresco/repo/cmis/ws/ObjectTypeBase.java new file mode 100644 index 0000000000..0cc19bb753 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ObjectTypeBase.java @@ -0,0 +1,287 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for objectTypeBase complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="objectTypeBase">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="objectID" type="{http://www.cmis.org/ns/1.0}objectID" minOccurs="0"/>
+ *         <element name="uri" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
+ *         <element name="objectTypeID" type="{http://www.cmis.org/ns/1.0}ID" minOccurs="0"/>
+ *         <element name="baseObjectType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="createdBy" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="creationDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ *         <element name="lastModifiedBy" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="lastModificationDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ *         <element name="changeToken" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "objectTypeBase", propOrder = { + "objectID", + "uri", + "objectTypeID", + "baseObjectType", + "createdBy", + "creationDate", + "lastModifiedBy", + "lastModificationDate", + "changeToken" +}) +public abstract class ObjectTypeBase { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String objectID; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String uri; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String objectTypeID; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String baseObjectType; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String createdBy; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected XMLGregorianCalendar creationDate; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String lastModifiedBy; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected XMLGregorianCalendar lastModificationDate; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String changeToken; + + /** + * Gets the value of the objectID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectID() { + return objectID; + } + + /** + * Sets the value of the objectID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectID(String value) { + this.objectID = value; + } + + /** + * Gets the value of the uri property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUri() { + return uri; + } + + /** + * Sets the value of the uri property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUri(String value) { + this.uri = value; + } + + /** + * Gets the value of the objectTypeID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectTypeID() { + return objectTypeID; + } + + /** + * Sets the value of the objectTypeID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectTypeID(String value) { + this.objectTypeID = value; + } + + /** + * Gets the value of the baseObjectType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBaseObjectType() { + return baseObjectType; + } + + /** + * Sets the value of the baseObjectType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBaseObjectType(String value) { + this.baseObjectType = value; + } + + /** + * Gets the value of the createdBy property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCreatedBy() { + return createdBy; + } + + /** + * Sets the value of the createdBy property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCreatedBy(String value) { + this.createdBy = value; + } + + /** + * Gets the value of the creationDate property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getCreationDate() { + return creationDate; + } + + /** + * Sets the value of the creationDate property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setCreationDate(XMLGregorianCalendar value) { + this.creationDate = value; + } + + /** + * Gets the value of the lastModifiedBy property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLastModifiedBy() { + return lastModifiedBy; + } + + /** + * Sets the value of the lastModifiedBy property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLastModifiedBy(String value) { + this.lastModifiedBy = value; + } + + /** + * Gets the value of the lastModificationDate property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getLastModificationDate() { + return lastModificationDate; + } + + /** + * Sets the value of the lastModificationDate property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setLastModificationDate(XMLGregorianCalendar value) { + this.lastModificationDate = value; + } + + /** + * Gets the value of the changeToken property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChangeToken() { + return changeToken; + } + + /** + * Sets the value of the changeToken property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChangeToken(String value) { + this.changeToken = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/ObjectTypeDefinitionType.java b/source/generated/org/alfresco/repo/cmis/ws/ObjectTypeDefinitionType.java new file mode 100644 index 0000000000..858a011c01 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/ObjectTypeDefinitionType.java @@ -0,0 +1,326 @@ + +package org.alfresco.repo.cmis.ws; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for objectTypeDefinitionType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="objectTypeDefinitionType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="objectTypeID" type="{http://www.cmis.org/ns/1.0}ID"/>
+ *         <element name="objectTypeName" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="displayName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="parentTypeName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="rootTypeName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="queryable" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="versionable" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="constraints" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="property" type="{http://www.cmis.org/ns/1.0}propertyAttributesType" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "objectTypeDefinitionType", propOrder = { + "objectTypeID", + "objectTypeName", + "displayName", + "parentTypeName", + "rootTypeName", + "description", + "queryable", + "versionable", + "constraints", + "property" +}) +public class ObjectTypeDefinitionType { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String objectTypeID; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String objectTypeName; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String displayName; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String parentTypeName; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String rootTypeName; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String description; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean queryable; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean versionable; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List constraints; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List property; + + /** + * Gets the value of the objectTypeID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectTypeID() { + return objectTypeID; + } + + /** + * Sets the value of the objectTypeID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectTypeID(String value) { + this.objectTypeID = value; + } + + /** + * Gets the value of the objectTypeName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectTypeName() { + return objectTypeName; + } + + /** + * Sets the value of the objectTypeName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectTypeName(String value) { + this.objectTypeName = value; + } + + /** + * Gets the value of the displayName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayName() { + return displayName; + } + + /** + * Sets the value of the displayName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayName(String value) { + this.displayName = value; + } + + /** + * Gets the value of the parentTypeName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getParentTypeName() { + return parentTypeName; + } + + /** + * Sets the value of the parentTypeName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setParentTypeName(String value) { + this.parentTypeName = value; + } + + /** + * Gets the value of the rootTypeName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRootTypeName() { + return rootTypeName; + } + + /** + * Sets the value of the rootTypeName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRootTypeName(String value) { + this.rootTypeName = value; + } + + /** + * Gets the value of the description property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescription() { + return description; + } + + /** + * Sets the value of the description property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescription(String value) { + this.description = value; + } + + /** + * Gets the value of the queryable property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isQueryable() { + return queryable; + } + + /** + * Sets the value of the queryable property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setQueryable(Boolean value) { + this.queryable = value; + } + + /** + * Gets the value of the versionable property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isVersionable() { + return versionable; + } + + /** + * Sets the value of the versionable property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setVersionable(Boolean value) { + this.versionable = value; + } + + /** + * Gets the value of the constraints property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the constraints property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getConstraints().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getConstraints() { + if (constraints == null) { + constraints = new ArrayList(); + } + return this.constraints; + } + + /** + * Gets the value of the property property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the property property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getProperty().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link PropertyAttributesType } + * + * + */ + public List getProperty() { + if (property == null) { + property = new ArrayList(); + } + return this.property; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/OffsetException.java b/source/generated/org/alfresco/repo/cmis/ws/OffsetException.java new file mode 100644 index 0000000000..1ac3cb2343 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/OffsetException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:13 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "OffsetFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class OffsetException extends Exception { + public static final long serialVersionUID = 20080527141113L; + + private org.alfresco.repo.cmis.ws.BasicFault offsetFault; + + public OffsetException() { + super(); + } + + public OffsetException(String message) { + super(message); + } + + public OffsetException(String message, Throwable cause) { + super(message, cause); + } + + public OffsetException(String message, org.alfresco.repo.cmis.ws.BasicFault offsetFault) { + super(message); + this.offsetFault = offsetFault; + } + + public OffsetException(String message, org.alfresco.repo.cmis.ws.BasicFault offsetFault, Throwable cause) { + super(message, cause); + this.offsetFault = offsetFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.offsetFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/OperationNotSupportedException.java b/source/generated/org/alfresco/repo/cmis/ws/OperationNotSupportedException.java new file mode 100644 index 0000000000..ea1e0d5009 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/OperationNotSupportedException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:27 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "OperationNotSupportedFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class OperationNotSupportedException extends Exception { + public static final long serialVersionUID = 20080527141127L; + + private org.alfresco.repo.cmis.ws.BasicFault operationNotSupportedFault; + + public OperationNotSupportedException() { + super(); + } + + public OperationNotSupportedException(String message) { + super(message); + } + + public OperationNotSupportedException(String message, Throwable cause) { + super(message, cause); + } + + public OperationNotSupportedException(String message, org.alfresco.repo.cmis.ws.BasicFault operationNotSupportedFault) { + super(message); + this.operationNotSupportedFault = operationNotSupportedFault; + } + + public OperationNotSupportedException(String message, org.alfresco.repo.cmis.ws.BasicFault operationNotSupportedFault, Throwable cause) { + super(message, cause); + this.operationNotSupportedFault = operationNotSupportedFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.operationNotSupportedFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/PermissionDeniedException.java b/source/generated/org/alfresco/repo/cmis/ws/PermissionDeniedException.java new file mode 100644 index 0000000000..8c90f2468f --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/PermissionDeniedException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:27 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "PermissionDeniedFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class PermissionDeniedException extends Exception { + public static final long serialVersionUID = 20080527141127L; + + private org.alfresco.repo.cmis.ws.BasicFault permissionDeniedFault; + + public PermissionDeniedException() { + super(); + } + + public PermissionDeniedException(String message) { + super(message); + } + + public PermissionDeniedException(String message, Throwable cause) { + super(message, cause); + } + + public PermissionDeniedException(String message, org.alfresco.repo.cmis.ws.BasicFault permissionDeniedFault) { + super(message); + this.permissionDeniedFault = permissionDeniedFault; + } + + public PermissionDeniedException(String message, org.alfresco.repo.cmis.ws.BasicFault permissionDeniedFault, Throwable cause) { + super(message, cause); + this.permissionDeniedFault = permissionDeniedFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.permissionDeniedFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/Property.java b/source/generated/org/alfresco/repo/cmis/ws/Property.java new file mode 100644 index 0000000000..237debb7c2 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/Property.java @@ -0,0 +1,118 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for property element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="property">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *         <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "property") +public class Property { + + @XmlValue + protected String content; + @XmlAttribute + protected String index; + @XmlAttribute(required = true) + protected String name; + + /** + * Gets the value of the content property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContent() { + return content; + } + + /** + * Sets the value of the content property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContent(String value) { + this.content = value; + } + + /** + * Gets the value of the index property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndex(String value) { + this.index = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/PropertyAttributesType.java b/source/generated/org/alfresco/repo/cmis/ws/PropertyAttributesType.java new file mode 100644 index 0000000000..2c87216fea --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/PropertyAttributesType.java @@ -0,0 +1,354 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for propertyAttributesType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="propertyAttributesType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="propertyName" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="displayName" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="propertyType" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="cardinality" type="{http://www.cmis.org/ns/1.0}cardinalityEnum"/>
+ *         <element name="maximumLength" type="{http://www.w3.org/2001/XMLSchema}integer"/>
+ *         <element name="choice" type="{http://www.cmis.org/ns/1.0}choiceType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="required" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="defaultValue" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="updatability" type="{http://www.cmis.org/ns/1.0}updatabilityEnum"/>
+ *         <element name="queryable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="orderable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "propertyAttributesType", propOrder = { + "propertyName", + "displayName", + "description", + "propertyType", + "cardinality", + "maximumLength", + "choice", + "required", + "defaultValue", + "updatability", + "queryable", + "orderable" +}) +public class PropertyAttributesType { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String propertyName; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String displayName; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String description; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String propertyType; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected CardinalityEnum cardinality; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected BigInteger maximumLength; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List choice; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean required; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String defaultValue; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected UpdatabilityEnum updatability; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean queryable; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean orderable; + + /** + * Gets the value of the propertyName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPropertyName() { + return propertyName; + } + + /** + * Sets the value of the propertyName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPropertyName(String value) { + this.propertyName = value; + } + + /** + * Gets the value of the displayName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayName() { + return displayName; + } + + /** + * Sets the value of the displayName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayName(String value) { + this.displayName = value; + } + + /** + * Gets the value of the description property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescription() { + return description; + } + + /** + * Sets the value of the description property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescription(String value) { + this.description = value; + } + + /** + * Gets the value of the propertyType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPropertyType() { + return propertyType; + } + + /** + * Sets the value of the propertyType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPropertyType(String value) { + this.propertyType = value; + } + + /** + * Gets the value of the cardinality property. + * + * @return + * possible object is + * {@link CardinalityEnum } + * + */ + public CardinalityEnum getCardinality() { + return cardinality; + } + + /** + * Sets the value of the cardinality property. + * + * @param value + * allowed object is + * {@link CardinalityEnum } + * + */ + public void setCardinality(CardinalityEnum value) { + this.cardinality = value; + } + + /** + * Gets the value of the maximumLength property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getMaximumLength() { + return maximumLength; + } + + /** + * Sets the value of the maximumLength property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setMaximumLength(BigInteger value) { + this.maximumLength = value; + } + + /** + * Gets the value of the choice property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the choice property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getChoice().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ChoiceType } + * + * + */ + public List getChoice() { + if (choice == null) { + choice = new ArrayList(); + } + return this.choice; + } + + /** + * Gets the value of the required property. + * + */ + public boolean isRequired() { + return required; + } + + /** + * Sets the value of the required property. + * + */ + public void setRequired(boolean value) { + this.required = value; + } + + /** + * Gets the value of the defaultValue property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDefaultValue() { + return defaultValue; + } + + /** + * Sets the value of the defaultValue property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDefaultValue(String value) { + this.defaultValue = value; + } + + /** + * Gets the value of the updatability property. + * + * @return + * possible object is + * {@link UpdatabilityEnum } + * + */ + public UpdatabilityEnum getUpdatability() { + return updatability; + } + + /** + * Sets the value of the updatability property. + * + * @param value + * allowed object is + * {@link UpdatabilityEnum } + * + */ + public void setUpdatability(UpdatabilityEnum value) { + this.updatability = value; + } + + /** + * Gets the value of the queryable property. + * + */ + public boolean isQueryable() { + return queryable; + } + + /** + * Sets the value of the queryable property. + * + */ + public void setQueryable(boolean value) { + this.queryable = value; + } + + /** + * Gets the value of the orderable property. + * + */ + public boolean isOrderable() { + return orderable; + } + + /** + * Sets the value of the orderable property. + * + */ + public void setOrderable(boolean value) { + this.orderable = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/Query.java b/source/generated/org/alfresco/repo/cmis/ws/Query.java new file mode 100644 index 0000000000..d45e157401 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/Query.java @@ -0,0 +1,151 @@ + +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for query element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="query">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="statement" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *           <element name="searchAllVersions" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}maxItems" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}skipCount" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "statement", + "searchAllVersions", + "maxItems", + "skipCount" +}) +@XmlRootElement(name = "query") +public class Query { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String statement; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean searchAllVersions; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger maxItems; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected BigInteger skipCount; + + /** + * Gets the value of the statement property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStatement() { + return statement; + } + + /** + * Sets the value of the statement property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStatement(String value) { + this.statement = value; + } + + /** + * Gets the value of the searchAllVersions property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isSearchAllVersions() { + return searchAllVersions; + } + + /** + * Sets the value of the searchAllVersions property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSearchAllVersions(Boolean value) { + this.searchAllVersions = value; + } + + /** + * Gets the value of the maxItems property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getMaxItems() { + return maxItems; + } + + /** + * Sets the value of the maxItems property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setMaxItems(BigInteger value) { + this.maxItems = value; + } + + /** + * Gets the value of the skipCount property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getSkipCount() { + return skipCount; + } + + /** + * Sets the value of the skipCount property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setSkipCount(BigInteger value) { + this.skipCount = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/QueryResponse.java b/source/generated/org/alfresco/repo/cmis/ws/QueryResponse.java new file mode 100644 index 0000000000..cc5badb51a --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/QueryResponse.java @@ -0,0 +1,86 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for queryResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="queryResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element ref="{http://www.cmis.org/ns/1.0}documentAndFolderCollection"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}hasMoreItems"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentAndFolderCollection", + "hasMoreItems" +}) +@XmlRootElement(name = "queryResponse") +public class QueryResponse { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected DocumentAndFolderCollection documentAndFolderCollection; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected boolean hasMoreItems; + + /** + * Gets the value of the documentAndFolderCollection property. + * + * @return + * possible object is + * {@link DocumentAndFolderCollection } + * + */ + public DocumentAndFolderCollection getDocumentAndFolderCollection() { + return documentAndFolderCollection; + } + + /** + * Sets the value of the documentAndFolderCollection property. + * + * @param value + * allowed object is + * {@link DocumentAndFolderCollection } + * + */ + public void setDocumentAndFolderCollection(DocumentAndFolderCollection value) { + this.documentAndFolderCollection = value; + } + + /** + * Gets the value of the hasMoreItems property. + * + */ + public boolean isHasMoreItems() { + return hasMoreItems; + } + + /** + * Sets the value of the hasMoreItems property. + * + */ + public void setHasMoreItems(boolean value) { + this.hasMoreItems = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/RelationshipCollection.java b/source/generated/org/alfresco/repo/cmis/ws/RelationshipCollection.java new file mode 100644 index 0000000000..50f3e09879 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/RelationshipCollection.java @@ -0,0 +1,73 @@ + +package org.alfresco.repo.cmis.ws; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for relationshipCollection element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="relationshipCollection">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="object" type="{http://www.cmis.org/ns/1.0}relationshipObjectType" maxOccurs="unbounded" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "object" +}) +@XmlRootElement(name = "relationshipCollection") +public class RelationshipCollection { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List object; + + /** + * Gets the value of the object property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the object property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getObject().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link RelationshipObjectType } + * + * + */ + public List getObject() { + if (object == null) { + object = new ArrayList(); + } + return this.object; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/RelationshipDirectionEnum.java b/source/generated/org/alfresco/repo/cmis/ws/RelationshipDirectionEnum.java new file mode 100644 index 0000000000..cc5588d979 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/RelationshipDirectionEnum.java @@ -0,0 +1,52 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + + +/** + *

Java class for relationshipDirectionEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="relationshipDirectionEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="source"/>
+ *     <enumeration value="target"/>
+ *     <enumeration value="sourceAndTarget"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlEnum +public enum RelationshipDirectionEnum { + + @XmlEnumValue("source") + SOURCE("source"), + @XmlEnumValue("sourceAndTarget") + SOURCE_AND_TARGET("sourceAndTarget"), + @XmlEnumValue("target") + TARGET("target"); + private final String value; + + RelationshipDirectionEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static RelationshipDirectionEnum fromValue(String v) { + for (RelationshipDirectionEnum c: RelationshipDirectionEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/RelationshipObjectType.java b/source/generated/org/alfresco/repo/cmis/ws/RelationshipObjectType.java new file mode 100644 index 0000000000..ec237cee1f --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/RelationshipObjectType.java @@ -0,0 +1,127 @@ + +package org.alfresco.repo.cmis.ws; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for relationshipObjectType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="relationshipObjectType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/ns/1.0}objectTypeBase">
+ *       <sequence>
+ *         <element ref="{http://www.cmis.org/ns/1.0}sourceOID" minOccurs="0"/>
+ *         <element ref="{http://www.cmis.org/ns/1.0}targetOID" minOccurs="0"/>
+ *         <element ref="{http://www.cmis.org/ns/1.0}property" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "relationshipObjectType", propOrder = { + "sourceOID", + "targetOID", + "property" +}) +public class RelationshipObjectType + extends ObjectTypeBase +{ + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String sourceOID; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String targetOID; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected List property; + + /** + * Gets the value of the sourceOID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSourceOID() { + return sourceOID; + } + + /** + * Sets the value of the sourceOID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSourceOID(String value) { + this.sourceOID = value; + } + + /** + * Gets the value of the targetOID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTargetOID() { + return targetOID; + } + + /** + * Sets the value of the targetOID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTargetOID(String value) { + this.targetOID = value; + } + + /** + * Gets the value of the property property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the property property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getProperty().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Property } + * + * + */ + public List getProperty() { + if (property == null) { + property = new ArrayList(); + } + return this.property; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/RemoveDocumentFromFolder.java b/source/generated/org/alfresco/repo/cmis/ws/RemoveDocumentFromFolder.java new file mode 100644 index 0000000000..1778e59aac --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/RemoveDocumentFromFolder.java @@ -0,0 +1,94 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for removeDocumentFromFolder element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="removeDocumentFromFolder">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="folderId" type="{http://www.cmis.org/ns/1.0}objectID" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId", + "folderId" +}) +@XmlRootElement(name = "removeDocumentFromFolder") +public class RemoveDocumentFromFolder { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String folderId; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + + /** + * Gets the value of the folderId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFolderId() { + return folderId; + } + + /** + * Sets the value of the folderId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFolderId(String value) { + this.folderId = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/RemoveDocumentFromFolderResponse.java b/source/generated/org/alfresco/repo/cmis/ws/RemoveDocumentFromFolderResponse.java new file mode 100644 index 0000000000..2e1f554d69 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/RemoveDocumentFromFolderResponse.java @@ -0,0 +1,36 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for removeDocumentFromFolderResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="removeDocumentFromFolderResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "removeDocumentFromFolderResponse") +public class RemoveDocumentFromFolderResponse { + + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/RepositoryInfoType.java b/source/generated/org/alfresco/repo/cmis/ws/RepositoryInfoType.java new file mode 100644 index 0000000000..673c805a9a --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/RepositoryInfoType.java @@ -0,0 +1,286 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for repositoryInfoType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="repositoryInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="repositoryName" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="repositoryDescription" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="rootFolderId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *         <element name="vendorName" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="productName" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="productVersion" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="repositorySpecificInformation" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="capabilities" type="{http://www.cmis.org/ns/1.0}capabilitiesType"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "repositoryInfoType", propOrder = { + "repositoryId", + "repositoryName", + "repositoryDescription", + "rootFolderId", + "vendorName", + "productName", + "productVersion", + "repositorySpecificInformation", + "capabilities" +}) +public class RepositoryInfoType { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String repositoryId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String repositoryName; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String repositoryDescription; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String rootFolderId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String vendorName; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String productName; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String productVersion; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String repositorySpecificInformation; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected CapabilitiesType capabilities; + + /** + * Gets the value of the repositoryId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRepositoryId() { + return repositoryId; + } + + /** + * Sets the value of the repositoryId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRepositoryId(String value) { + this.repositoryId = value; + } + + /** + * Gets the value of the repositoryName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRepositoryName() { + return repositoryName; + } + + /** + * Sets the value of the repositoryName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRepositoryName(String value) { + this.repositoryName = value; + } + + /** + * Gets the value of the repositoryDescription property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRepositoryDescription() { + return repositoryDescription; + } + + /** + * Sets the value of the repositoryDescription property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRepositoryDescription(String value) { + this.repositoryDescription = value; + } + + /** + * Gets the value of the rootFolderId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRootFolderId() { + return rootFolderId; + } + + /** + * Sets the value of the rootFolderId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRootFolderId(String value) { + this.rootFolderId = value; + } + + /** + * Gets the value of the vendorName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVendorName() { + return vendorName; + } + + /** + * Sets the value of the vendorName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVendorName(String value) { + this.vendorName = value; + } + + /** + * Gets the value of the productName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getProductName() { + return productName; + } + + /** + * Sets the value of the productName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setProductName(String value) { + this.productName = value; + } + + /** + * Gets the value of the productVersion property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getProductVersion() { + return productVersion; + } + + /** + * Sets the value of the productVersion property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setProductVersion(String value) { + this.productVersion = value; + } + + /** + * Gets the value of the repositorySpecificInformation property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRepositorySpecificInformation() { + return repositorySpecificInformation; + } + + /** + * Sets the value of the repositorySpecificInformation property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRepositorySpecificInformation(String value) { + this.repositorySpecificInformation = value; + } + + /** + * Gets the value of the capabilities property. + * + * @return + * possible object is + * {@link CapabilitiesType } + * + */ + public CapabilitiesType getCapabilities() { + return capabilities; + } + + /** + * Sets the value of the capabilities property. + * + * @param value + * allowed object is + * {@link CapabilitiesType } + * + */ + public void setCapabilities(CapabilitiesType value) { + this.capabilities = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/RepositoryService.java b/source/generated/org/alfresco/repo/cmis/ws/RepositoryService.java new file mode 100644 index 0000000000..2c79af5047 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/RepositoryService.java @@ -0,0 +1,58 @@ + +package org.alfresco.repo.cmis.ws; + +import java.net.MalformedURLException; +import java.net.URL; +import javax.xml.namespace.QName; +import javax.xml.ws.Service; +import javax.xml.ws.WebEndpoint; +import javax.xml.ws.WebServiceClient; +import org.alfresco.repo.cmis.ws.RepositoryServicePort; + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:20 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebServiceClient(name = "RepositoryService", targetNamespace = "http://www.cmis.org/ns/1.0", wsdlLocation = "file:/D:/work/AlfrescoCMIS-WS/WScmis/web/wsdl/cmis/RepositoryService.wsdl") +public class RepositoryService extends Service { + + public final static URL WSDL_LOCATION; + public final static QName SERVICE = new QName("http://www.cmis.org/ns/1.0", "RepositoryService"); + public final static QName RepositoryServicePort = new QName("http://www.cmis.org/ns/1.0", "RepositoryServicePort"); + static { + URL url = null; + try { + url = new URL("file:/D:/work/AlfrescoCMIS-WS/WScmis/web/wsdl/cmis/RepositoryService.wsdl"); + } catch (MalformedURLException e) { + System.err.println("Can not initialize the default wsdl from file:/D:/work/AlfrescoCMIS-WS/WScmis/web/wsdl/cmis/RepositoryService.wsdl"); + // e.printStackTrace(); + } + WSDL_LOCATION = url; + } + + public RepositoryService(URL wsdlLocation) { + super(wsdlLocation, SERVICE); + } + + public RepositoryService(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + public RepositoryService() { + super(WSDL_LOCATION, SERVICE); + } + + /** + * + * @return + * returns RepositoryServicePort + */ + @WebEndpoint(name = "RepositoryServicePort") + public RepositoryServicePort getRepositoryServicePort() { + return super.getPort(RepositoryServicePort, RepositoryServicePort.class); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/RepositoryServicePort.java b/source/generated/org/alfresco/repo/cmis/ws/RepositoryServicePort.java new file mode 100644 index 0000000000..94db8b7b8b --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/RepositoryServicePort.java @@ -0,0 +1,60 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebParam.Mode; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.jws.soap.SOAPBinding; +import javax.jws.soap.SOAPBinding.ParameterStyle; +import javax.xml.ws.RequestWrapper; +import javax.xml.ws.ResponseWrapper; + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:20 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebService(targetNamespace = "http://www.cmis.org/ns/1.0", name = "RepositoryServicePort") + +public interface RepositoryServicePort { + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "getRootFolderResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebMethod + public org.alfresco.repo.cmis.ws.GetRootFolderResponse getRootFolder( + @WebParam(partName = "parameters", name = "getRootFolder", targetNamespace = "http://www.cmis.org/ns/1.0") + GetRootFolder parameters + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, FilterNotValidException, OperationNotSupportedException, PermissionDeniedException; + + @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) + @WebResult(name = "getTypesResponse", targetNamespace = "http://www.cmis.org/ns/1.0", partName = "parameters") + @WebMethod + public org.alfresco.repo.cmis.ws.GetTypesResponse getTypes( + @WebParam(partName = "parameters", name = "getTypes", targetNamespace = "http://www.cmis.org/ns/1.0") + GetTypes parameters + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, OperationNotSupportedException, PermissionDeniedException; + + @ResponseWrapper(localName = "getTypeDefinitionResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetTypeDefinitionResponse") + @RequestWrapper(localName = "getTypeDefinition", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetTypeDefinition") + @WebMethod + public void getTypeDefinition( + @WebParam(name = "typeId", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.String typeId, + @WebParam(name = "includeInheritedProperties", targetNamespace = "http://www.cmis.org/ns/1.0") + java.lang.Boolean includeInheritedProperties, + @WebParam(mode = WebParam.Mode.OUT, name = "type", targetNamespace = "http://www.cmis.org/ns/1.0") + javax.xml.ws.Holder type, + @WebParam(mode = WebParam.Mode.OUT, name = "canCreateInstances", targetNamespace = "http://www.cmis.org/ns/1.0") + javax.xml.ws.Holder canCreateInstances + ) throws RuntimeException, ConcurrencyException, InvalidArgumentException, TypeNotFoundException, OperationNotSupportedException, PermissionDeniedException; + + @ResponseWrapper(localName = "getRepositoryInfoResponse", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetRepositoryInfoResponse") + @RequestWrapper(localName = "getRepositoryInfo", targetNamespace = "http://www.cmis.org/ns/1.0", className = "org.alfresco.repo.cmis.ws.GetRepositoryInfo") + @WebResult(name = "repositoryInfo", targetNamespace = "http://www.cmis.org/ns/1.0") + @WebMethod + public org.alfresco.repo.cmis.ws.RepositoryInfoType getRepositoryInfo() throws RuntimeException, ConcurrencyException, InvalidArgumentException, OperationNotSupportedException, PermissionDeniedException; +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/RuntimeException.java b/source/generated/org/alfresco/repo/cmis/ws/RuntimeException.java new file mode 100644 index 0000000000..0f7fd6ea9e --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/RuntimeException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:27 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "RuntimeFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class RuntimeException extends Exception { + public static final long serialVersionUID = 20080527141127L; + + private org.alfresco.repo.cmis.ws.BasicFault runtimeFault; + + public RuntimeException() { + super(); + } + + public RuntimeException(String message) { + super(message); + } + + public RuntimeException(String message, Throwable cause) { + super(message, cause); + } + + public RuntimeException(String message, org.alfresco.repo.cmis.ws.BasicFault runtimeFault) { + super(message); + this.runtimeFault = runtimeFault; + } + + public RuntimeException(String message, org.alfresco.repo.cmis.ws.BasicFault runtimeFault, Throwable cause) { + super(message, cause); + this.runtimeFault = runtimeFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.runtimeFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/SetContentStream.java b/source/generated/org/alfresco/repo/cmis/ws/SetContentStream.java new file mode 100644 index 0000000000..8db0ff529c --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/SetContentStream.java @@ -0,0 +1,122 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for setContentStream element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="setContentStream">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="documentId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="overwriteFlag" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *           <element ref="{http://www.cmis.org/ns/1.0}contentStream" minOccurs="0"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "documentId", + "overwriteFlag", + "contentStream" +}) +@XmlRootElement(name = "setContentStream") +public class SetContentStream { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String documentId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected Boolean overwriteFlag; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected ContentStream contentStream; + + /** + * Gets the value of the documentId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDocumentId() { + return documentId; + } + + /** + * Sets the value of the documentId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDocumentId(String value) { + this.documentId = value; + } + + /** + * Gets the value of the overwriteFlag property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isOverwriteFlag() { + return overwriteFlag; + } + + /** + * Sets the value of the overwriteFlag property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOverwriteFlag(Boolean value) { + this.overwriteFlag = value; + } + + /** + * Gets the value of the contentStream property. + * + * @return + * possible object is + * {@link ContentStream } + * + */ + public ContentStream getContentStream() { + return contentStream; + } + + /** + * Sets the value of the contentStream property. + * + * @param value + * allowed object is + * {@link ContentStream } + * + */ + public void setContentStream(ContentStream value) { + this.contentStream = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/SetContentStreamResponse.java b/source/generated/org/alfresco/repo/cmis/ws/SetContentStreamResponse.java new file mode 100644 index 0000000000..c61012bb62 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/SetContentStreamResponse.java @@ -0,0 +1,36 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for setContentStreamResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="setContentStreamResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "setContentStreamResponse") +public class SetContentStreamResponse { + + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/StorageException.java b/source/generated/org/alfresco/repo/cmis/ws/StorageException.java new file mode 100644 index 0000000000..d225a8d7fc --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/StorageException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:13 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "StorageFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class StorageException extends Exception { + public static final long serialVersionUID = 20080527141113L; + + private org.alfresco.repo.cmis.ws.BasicFault storageFault; + + public StorageException() { + super(); + } + + public StorageException(String message) { + super(message); + } + + public StorageException(String message, Throwable cause) { + super(message, cause); + } + + public StorageException(String message, org.alfresco.repo.cmis.ws.BasicFault storageFault) { + super(message); + this.storageFault = storageFault; + } + + public StorageException(String message, org.alfresco.repo.cmis.ws.BasicFault storageFault, Throwable cause) { + super(message, cause); + this.storageFault = storageFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.storageFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/StreamNotSupportedException.java b/source/generated/org/alfresco/repo/cmis/ws/StreamNotSupportedException.java new file mode 100644 index 0000000000..67e0343b00 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/StreamNotSupportedException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:13 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "StreamNotSupportedFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class StreamNotSupportedException extends Exception { + public static final long serialVersionUID = 20080527141113L; + + private org.alfresco.repo.cmis.ws.BasicFault streamNotSupportedFault; + + public StreamNotSupportedException() { + super(); + } + + public StreamNotSupportedException(String message) { + super(message); + } + + public StreamNotSupportedException(String message, Throwable cause) { + super(message, cause); + } + + public StreamNotSupportedException(String message, org.alfresco.repo.cmis.ws.BasicFault streamNotSupportedFault) { + super(message); + this.streamNotSupportedFault = streamNotSupportedFault; + } + + public StreamNotSupportedException(String message, org.alfresco.repo.cmis.ws.BasicFault streamNotSupportedFault, Throwable cause) { + super(message, cause); + this.streamNotSupportedFault = streamNotSupportedFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.streamNotSupportedFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/TypeNotFoundException.java b/source/generated/org/alfresco/repo/cmis/ws/TypeNotFoundException.java new file mode 100644 index 0000000000..3573cdc3a3 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/TypeNotFoundException.java @@ -0,0 +1,46 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by Apache CXF 2.0.6 + * Tue May 27 14:11:20 EEST 2008 + * Generated source version: 2.0.6 + * + */ + +@WebFault(name = "TypeNotFoundFault", targetNamespace = "http://www.cmis.org/ns/1.0") + +public class TypeNotFoundException extends Exception { + public static final long serialVersionUID = 20080527141120L; + + private org.alfresco.repo.cmis.ws.BasicFault typeNotFoundFault; + + public TypeNotFoundException() { + super(); + } + + public TypeNotFoundException(String message) { + super(message); + } + + public TypeNotFoundException(String message, Throwable cause) { + super(message, cause); + } + + public TypeNotFoundException(String message, org.alfresco.repo.cmis.ws.BasicFault typeNotFoundFault) { + super(message); + this.typeNotFoundFault = typeNotFoundFault; + } + + public TypeNotFoundException(String message, org.alfresco.repo.cmis.ws.BasicFault typeNotFoundFault, Throwable cause) { + super(message, cause); + this.typeNotFoundFault = typeNotFoundFault; + } + + public org.alfresco.repo.cmis.ws.BasicFault getFaultInfo() { + return this.typeNotFoundFault; + } +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/TypesOfObjectsEnum.java b/source/generated/org/alfresco/repo/cmis/ws/TypesOfObjectsEnum.java new file mode 100644 index 0000000000..a7a7ec447a --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/TypesOfObjectsEnum.java @@ -0,0 +1,52 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + + +/** + *

Java class for typesOfObjectsEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="typesOfObjectsEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Folders"/>
+ *     <enumeration value="FoldersAndDocumets"/>
+ *     <enumeration value="Documents"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlEnum +public enum TypesOfObjectsEnum { + + @XmlEnumValue("Documents") + DOCUMENTS("Documents"), + @XmlEnumValue("Folders") + FOLDERS("Folders"), + @XmlEnumValue("FoldersAndDocumets") + FOLDERS_AND_DOCUMETS("FoldersAndDocumets"); + private final String value; + + TypesOfObjectsEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static TypesOfObjectsEnum fromValue(String v) { + for (TypesOfObjectsEnum c: TypesOfObjectsEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/UpdatabilityEnum.java b/source/generated/org/alfresco/repo/cmis/ws/UpdatabilityEnum.java new file mode 100644 index 0000000000..d20171332a --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/UpdatabilityEnum.java @@ -0,0 +1,52 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + + +/** + *

Java class for updatabilityEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="updatabilityEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="readOnly"/>
+ *     <enumeration value="readWrite"/>
+ *     <enumeration value="readWriteWhenCheckedOut"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlEnum +public enum UpdatabilityEnum { + + @XmlEnumValue("readOnly") + READ_ONLY("readOnly"), + @XmlEnumValue("readWrite") + READ_WRITE("readWrite"), + @XmlEnumValue("readWriteWhenCheckedOut") + READ_WRITE_WHEN_CHECKED_OUT("readWriteWhenCheckedOut"); + private final String value; + + UpdatabilityEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static UpdatabilityEnum fromValue(String v) { + for (UpdatabilityEnum c: UpdatabilityEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/UpdateProperties.java b/source/generated/org/alfresco/repo/cmis/ws/UpdateProperties.java new file mode 100644 index 0000000000..a7261ad903 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/UpdateProperties.java @@ -0,0 +1,122 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for updateProperties element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="updateProperties">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *           <element name="objectId" type="{http://www.cmis.org/ns/1.0}objectID"/>
+ *           <element name="changeToken" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *           <element name="object" type="{http://www.cmis.org/ns/1.0}documentFolderOrRelationshipObjectType"/>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "objectId", + "changeToken", + "object" +}) +@XmlRootElement(name = "updateProperties") +public class UpdateProperties { + + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected String objectId; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0") + protected String changeToken; + @XmlElement(namespace = "http://www.cmis.org/ns/1.0", required = true) + protected DocumentFolderOrRelationshipObjectType object; + + /** + * Gets the value of the objectId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectId() { + return objectId; + } + + /** + * Sets the value of the objectId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectId(String value) { + this.objectId = value; + } + + /** + * Gets the value of the changeToken property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChangeToken() { + return changeToken; + } + + /** + * Sets the value of the changeToken property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChangeToken(String value) { + this.changeToken = value; + } + + /** + * Gets the value of the object property. + * + * @return + * possible object is + * {@link DocumentFolderOrRelationshipObjectType } + * + */ + public DocumentFolderOrRelationshipObjectType getObject() { + return object; + } + + /** + * Sets the value of the object property. + * + * @param value + * allowed object is + * {@link DocumentFolderOrRelationshipObjectType } + * + */ + public void setObject(DocumentFolderOrRelationshipObjectType value) { + this.object = value; + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/UpdatePropertiesResponse.java b/source/generated/org/alfresco/repo/cmis/ws/UpdatePropertiesResponse.java new file mode 100644 index 0000000000..ce047adc80 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/UpdatePropertiesResponse.java @@ -0,0 +1,36 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for updatePropertiesResponse element declaration. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <element name="updatePropertiesResponse">
+ *   <complexType>
+ *     <complexContent>
+ *       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *         <sequence>
+ *         </sequence>
+ *       </restriction>
+ *     </complexContent>
+ *   </complexType>
+ * </element>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "updatePropertiesResponse") +public class UpdatePropertiesResponse { + + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/VersionEnum.java b/source/generated/org/alfresco/repo/cmis/ws/VersionEnum.java new file mode 100644 index 0000000000..14ad786f84 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/VersionEnum.java @@ -0,0 +1,52 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + + +/** + *

Java class for versionEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="versionEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="this"/>
+ *     <enumeration value="latest"/>
+ *     <enumeration value="latestMajor"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlEnum +public enum VersionEnum { + + @XmlEnumValue("latest") + LATEST("latest"), + @XmlEnumValue("latestMajor") + LATEST_MAJOR("latestMajor"), + @XmlEnumValue("this") + THIS("this"); + private final String value; + + VersionEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static VersionEnum fromValue(String v) { + for (VersionEnum c: VersionEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/VersioningStateEnum.java b/source/generated/org/alfresco/repo/cmis/ws/VersioningStateEnum.java new file mode 100644 index 0000000000..25a531e600 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/VersioningStateEnum.java @@ -0,0 +1,52 @@ + +package org.alfresco.repo.cmis.ws; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + + +/** + *

Java class for versioningStateEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="versioningStateEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="checkedOut"/>
+ *     <enumeration value="checkedInMinor"/>
+ *     <enumeration value="checkedInMajor"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlEnum +public enum VersioningStateEnum { + + @XmlEnumValue("checkedInMajor") + CHECKED_IN_MAJOR("checkedInMajor"), + @XmlEnumValue("checkedInMinor") + CHECKED_IN_MINOR("checkedInMinor"), + @XmlEnumValue("checkedOut") + CHECKED_OUT("checkedOut"); + private final String value; + + VersioningStateEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static VersioningStateEnum fromValue(String v) { + for (VersioningStateEnum c: VersioningStateEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} diff --git a/source/generated/org/alfresco/repo/cmis/ws/package-info.java b/source/generated/org/alfresco/repo/cmis/ws/package-info.java new file mode 100644 index 0000000000..8dd809b191 --- /dev/null +++ b/source/generated/org/alfresco/repo/cmis/ws/package-info.java @@ -0,0 +1,2 @@ +@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.cmis.org/ns/1.0") +package org.alfresco.repo.cmis.ws; diff --git a/source/java/org/alfresco/repo/cmis/Index.java b/source/java/org/alfresco/repo/cmis/Index.java new file mode 100644 index 0000000000..57b3b42a04 --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/Index.java @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2005-2007 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.alfresco.web.scripts.DeclarativeWebScript; +import org.alfresco.web.scripts.Description; +import org.alfresco.web.scripts.Status; +import org.alfresco.web.scripts.WebScript; +import org.alfresco.web.scripts.WebScriptRequest; + + +/** + * Index of CMIS Scripts + * + * @author davidc + */ +public class Index extends DeclarativeWebScript +{ + + /* (non-Javadoc) + * @see org.alfresco.web.scripts.DeclarativeWebScript#executeImpl(org.alfresco.web.scripts.WebScriptRequest, org.alfresco.web.scripts.WebScriptResponse) + */ + @Override + protected Map executeImpl(WebScriptRequest req, Status status) + { + List cmisScripts = new ArrayList(); + + // scan through all web scripts looking for CMIS specific ones + Collection webscripts = getContainer().getRegistry().getWebScripts(); + for (WebScript webscript : webscripts) + { + Description desc = webscript.getDescription(); + Map extensions = desc.getExtensions(); + if (extensions != null && extensions.get("cmis_version") != null) + { + cmisScripts.add(webscript); + } + } + + Map model = new HashMap(7, 1.0f); + model.put("services", cmisScripts); + return model; + } + +} diff --git a/source/java/org/alfresco/repo/cmis/ws/AuthenticationInterceptor.java b/source/java/org/alfresco/repo/cmis/ws/AuthenticationInterceptor.java new file mode 100644 index 0000000000..d0b5810e97 --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/AuthenticationInterceptor.java @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +import java.util.List; + +import org.alfresco.repo.security.authentication.AuthenticationUtil; +import org.apache.cxf.binding.soap.SoapMessage; +import org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor; +import org.apache.cxf.interceptor.Fault; +import org.apache.cxf.phase.Phase; +import org.apache.ws.security.WSSecurityEngineResult; +import org.apache.ws.security.WSUsernameTokenPrincipal; +import org.apache.ws.security.handler.WSHandlerConstants; +import org.apache.ws.security.handler.WSHandlerResult; + +public class AuthenticationInterceptor extends AbstractSoapInterceptor +{ + + public AuthenticationInterceptor() + { + super(Phase.PRE_INVOKE); + } + + public void handleMessage(SoapMessage message) throws Fault + { + @SuppressWarnings("unchecked") + WSHandlerResult handlerResult = ((List) message.getContextualProperty(WSHandlerConstants.RECV_RESULTS)).get(0); + WSSecurityEngineResult secRes = (WSSecurityEngineResult) handlerResult.getResults().get(0); + WSUsernameTokenPrincipal principal = (WSUsernameTokenPrincipal) secRes.get(WSSecurityEngineResult.TAG_PRINCIPAL); + + // Authenticate + AuthenticationUtil.setCurrentUser(principal.getName()); + } + +} diff --git a/source/java/org/alfresco/repo/cmis/ws/AuthenticationTokenCallbackHandler.java b/source/java/org/alfresco/repo/cmis/ws/AuthenticationTokenCallbackHandler.java new file mode 100644 index 0000000000..6aa6cf12be --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/AuthenticationTokenCallbackHandler.java @@ -0,0 +1,84 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +import java.io.IOException; + +import javax.security.auth.callback.Callback; +import javax.security.auth.callback.CallbackHandler; +import javax.security.auth.callback.UnsupportedCallbackException; + +import org.alfresco.service.cmr.security.AuthenticationService; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.apache.ws.security.WSPasswordCallback; + +/** + * @author Michael Shavnev + */ +public class AuthenticationTokenCallbackHandler implements CallbackHandler +{ + + private final Log LOG = LogFactory.getLog(AuthenticationTokenCallbackHandler.class); + + private AuthenticationService authenticationService; + + public void setAuthenticationService(AuthenticationService authenticationService) + { + this.authenticationService = authenticationService; + } + + public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException + { + WSPasswordCallback wssPasswordCallback = (WSPasswordCallback) callbacks[0]; + String userName = wssPasswordCallback.getIdentifer(); + String password = getPassword(userName); + + // Check the UsernameToken element. + // Depending on the password type contained in the element the processing differs. + if (wssPasswordCallback.getUsage() == WSPasswordCallback.USERNAME_TOKEN) + { + // If the password type is password digest provide stored password perform + // hash algorithm and compare the result with the transmitted password + wssPasswordCallback.setPassword(password); + } + else + { + // If the password is of type password text or any other yet unknown password type + // the delegate the password validation to the callback class. + if (!password.equals(wssPasswordCallback.getPassword())) + { + throw new SecurityException("Incorrect password"); + } + } + } + + private String getPassword(String userName) + { + // TODO Auto-generated method stub + return userName; + } + +} diff --git a/source/java/org/alfresco/repo/cmis/ws/CmisProperty.java b/source/java/org/alfresco/repo/cmis/ws/CmisProperty.java new file mode 100644 index 0000000000..2bfb2b93a2 --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/CmisProperty.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +/** + * Cmis properties enumeration + * + * @author Dmitry Lazurkin + * + */ +public enum CmisProperty +{ + // Base properties + OBJECT_ID, + URI, + OBJECT_TYPE_ID, + CREATED_BY, + CREATION_DATE, + LAST_MODIFIED_BY, + LAST_MODIFICATION_DATE, + CHANGE_TOKEN, + + // Folder Object Type properties + PARENT, + ALLOWED_CHILD_OBJECT_TYPES, + + // Document Object Type properties + IS_IMMUTABLE, + IS_LATEST_VERSION, + IS_MAJOR_VERSION, + IS_LATEST_MAJOR_VERSION, + VERSION_SERIES_IS_CHECKED_OUT, + VERSION_SERIES_CHECKED_OUT_BY, + VERSION_SERIES_CHECKED_OUT_OID, + CHECKIN_COMMENT, + CONTENT_STREAM_ALLOWED, + CONTENT_STREAM_LENGTH, + CONTENT_STREAM_MIME_TYPE, + CONTENT_STREAM_FILENAME, + CONTENT_STREAM_URI, + + // Document Object Type and Folder Object Type properties + NAME; +} diff --git a/source/java/org/alfresco/repo/cmis/ws/DMAbstractServicePort.java b/source/java/org/alfresco/repo/cmis/ws/DMAbstractServicePort.java new file mode 100644 index 0000000000..f1d25014a4 --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/DMAbstractServicePort.java @@ -0,0 +1,509 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +import java.io.Serializable; +import java.math.BigInteger; +import java.util.Date; +import java.util.GregorianCalendar; +import java.util.Map; + +import javax.xml.datatype.DatatypeConfigurationException; +import javax.xml.datatype.DatatypeFactory; +import javax.xml.datatype.XMLGregorianCalendar; + +import org.alfresco.model.ContentModel; +import org.alfresco.repo.security.authentication.AuthenticationUtil; +import org.alfresco.service.cmr.coci.CheckOutCheckInService; +import org.alfresco.service.cmr.dictionary.DictionaryService; +import org.alfresco.service.cmr.model.FileFolderService; +import org.alfresco.service.cmr.repository.AssociationRef; +import org.alfresco.service.cmr.repository.ContentReader; +import org.alfresco.service.cmr.repository.NodeRef; +import org.alfresco.service.cmr.repository.NodeService; +import org.alfresco.service.cmr.repository.datatype.DefaultTypeConverter; +import org.alfresco.service.cmr.repository.datatype.TypeConverter; +import org.alfresco.service.cmr.search.SearchService; +import org.alfresco.service.cmr.security.AuthenticationService; +import org.alfresco.service.cmr.security.PersonService; +import org.alfresco.service.cmr.version.Version; +import org.alfresco.service.cmr.version.VersionHistory; +import org.alfresco.service.cmr.version.VersionService; +import org.alfresco.service.cmr.version.VersionType; +import org.alfresco.service.namespace.NamespaceService; +import org.alfresco.service.namespace.QName; + +/** + * @author Michael Shavnev + * @author Dmitry Lazurkin + */ +public class DMAbstractServicePort +{ + + private static final TypeConverter TYPE_CONVERTER = DefaultTypeConverter.INSTANCE; + + private DatatypeFactory _datatypeFactory; + + protected NodeService nodeService; + protected PersonService personService; + protected SearchService searchService; + protected NamespaceService namespaceService; + protected DictionaryService dictionaryService; + protected VersionService versionService; + protected CheckOutCheckInService checkOutCheckInService; + protected FileFolderService fileFolderService; + protected AuthenticationService authenticationService; + + private DatatypeFactory getDatatypeFactory() throws RuntimeException + { + if (_datatypeFactory == null) + { + try + { + _datatypeFactory = DatatypeFactory.newInstance(); + } + catch (DatatypeConfigurationException e) + { + // TODO: error code + throw new RuntimeException(e.getMessage()); + } + } + return _datatypeFactory; + } + + public void setNodeService(NodeService nodeService) + { + this.nodeService = nodeService; + } + + public void setPersonService(PersonService personService) + { + this.personService = personService; + } + + public void setSearchService(SearchService searchService) + { + this.searchService = searchService; + } + + public void setNamespaceService(NamespaceService namespaceService) + { + this.namespaceService = namespaceService; + } + + public void setDictionaryService(DictionaryService dictionaryService) + { + this.dictionaryService = dictionaryService; + } + + public void setVersionService(VersionService versionService) + { + this.versionService = versionService; + } + + public void setCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService) + { + this.checkOutCheckInService = checkOutCheckInService; + } + + public void setFileFolderService(FileFolderService fileFolderService) + { + this.fileFolderService = fileFolderService; + } + + public void setAuthenticationService(AuthenticationService authenticationService) + { + this.authenticationService = authenticationService; + } + + /** + * Sets properties for ObjectTypeBase object + * + * @param nodeRef Node reference + * @param target ObjectTypeBase object for setting + * @param propertyFilter filter for properties + * @return ObjectTypeBase object + */ + public ObjectTypeBase setObjectTypeBaseProperties(NodeRef nodeRef, ObjectTypeBase target, PropertyFilter propertyFilter) throws RuntimeException + { + Map properties = nodeService.getProperties(nodeRef); + + target.setObjectID(OIDUtils.toOID(nodeRef)); + + QName typeQName = nodeService.getType(nodeRef); + target.setObjectTypeID(typeQName.toString()); + + if (dictionaryService.isSubClass(typeQName, ContentModel.TYPE_FOLDER)) + { + target.setBaseObjectType(ContentModel.TYPE_FOLDER.toString()); + } + else + { + target.setBaseObjectType(ContentModel.TYPE_CONTENT.toString()); + } + + if (propertyFilter.allow(CmisProperty.CREATED_BY)) + { + target.setCreatedBy(TYPE_CONVERTER.convert(String.class, properties.get(ContentModel.PROP_AUTHOR))); + } + + if (propertyFilter.allow(CmisProperty.CREATION_DATE)) + { + target.setCreationDate(convert(TYPE_CONVERTER.convert(Date.class, properties.get(ContentModel.PROP_CREATED)))); + } + + if (propertyFilter.allow(CmisProperty.LAST_MODIFIED_BY)) + { + target.setLastModifiedBy(TYPE_CONVERTER.convert(String.class, properties.get(ContentModel.PROP_MODIFIER))); + } + + Date modificationDate = TYPE_CONVERTER.convert(Date.class, properties.get(ContentModel.PROP_MODIFIED)); + + if (propertyFilter.allow(CmisProperty.LAST_MODIFICATION_DATE)) + { + target.setLastModificationDate(convert(modificationDate)); + } + + if (propertyFilter.allow(CmisProperty.CHANGE_TOKEN)) + { + target.setChangeToken(String.valueOf(modificationDate.getTime())); + } + + return target; + } + + /** + * Sets properties for FolderObjectType object + * + * @param nodeRef Node reference + * @param target FolderObjectType object for setting + * @param propertyFilter filter for properties + * @return FolderObjectType object + */ + public FolderObjectType setFolderObjectTypeProperties(NodeRef folderNodeRef, FolderObjectType target, PropertyFilter propertyFilter) throws RuntimeException + { + setObjectTypeBaseProperties(folderNodeRef, target, propertyFilter); + + if (propertyFilter.allow(CmisProperty.NAME)) + { + target.setName((String) nodeService.getProperty(folderNodeRef, ContentModel.PROP_NAME)); + } + + if (propertyFilter.allow(CmisProperty.PARENT)) + { + target.setParent(OIDUtils.toOID(nodeService.getPrimaryParent(folderNodeRef).getParentRef())); + } + + if (propertyFilter.allow(CmisProperty.ALLOWED_CHILD_OBJECT_TYPES)) + { + // TODO: not set this property + } + + return target; + } + + /** + * Sets properties for DocumentOrFolderObjectType object + * + * @param nodeRef Node reference + * @param target DocumentOrFolderObjectType object for setting + * @param propertyFilter filter for properties + * @return DocumentOrFolderObjectType object + */ + public DocumentOrFolderObjectType setFolderObjectTypeProperties(NodeRef folderNodeRef, DocumentOrFolderObjectType target, PropertyFilter propertyFilter) throws RuntimeException + { + setObjectTypeBaseProperties(folderNodeRef, target, propertyFilter); + + if (propertyFilter.allow(CmisProperty.NAME)) + { + target.setName((String) nodeService.getProperty(folderNodeRef, ContentModel.PROP_NAME)); + } + + if (propertyFilter.allow(CmisProperty.PARENT)) + { + target.setParent(OIDUtils.toOID(nodeService.getPrimaryParent(folderNodeRef).getParentRef())); + } + + if (propertyFilter.allow(CmisProperty.ALLOWED_CHILD_OBJECT_TYPES)) + { + // TODO: not set this property + } + + return target; + } + + /** + * Sets properties for DocumentObjectType object + * + * @param nodeRef Node reference + * @param target DocumentObjectType object for setting + * @param propertyFilter filter for properties + * @return DocumentObjectType object + */ + public DocumentObjectType setDocumentObjectTypeProperties(NodeRef documentNodeRef, DocumentObjectType target, PropertyFilter propertyFilter) throws RuntimeException + { + setObjectTypeBaseProperties(documentNodeRef, target, propertyFilter); + + NodeRef workingCopy = null; + + if (nodeService.hasAspect(documentNodeRef, ContentModel.ASPECT_WORKING_COPY)) + { + workingCopy = documentNodeRef; + + if (propertyFilter.allow(CmisProperty.IS_LATEST_VERSION)) + { + target.setIsLatestVersion(false); + } + + if (propertyFilter.allow(CmisProperty.IS_MAJOR_VERSION)) + { + target.setIsMajorVersion(false); + } + + if (propertyFilter.allow(CmisProperty.IS_LATEST_MAJOR_VERSION)) + { + target.setIsLatestMajorVersion(false); + } + } + else + { + target.setName((String) nodeService.getProperty(documentNodeRef, ContentModel.PROP_NAME)); + + workingCopy = checkOutCheckInService.getWorkingCopy(documentNodeRef); + + Version version = versionService.getCurrentVersion(documentNodeRef); + + if (nodeService.hasAspect(documentNodeRef, ContentModel.ASPECT_VERSIONABLE) && version != null) + { + if (propertyFilter.allow(CmisProperty.IS_LATEST_VERSION)) + { + target.setIsLatestVersion(version.getVersionedNodeRef().equals(documentNodeRef)); + } + + if (propertyFilter.allow(CmisProperty.IS_MAJOR_VERSION)) + { + target.setIsMajorVersion(version.getVersionType().equals(VersionType.MAJOR)); + } + + if (propertyFilter.allow(CmisProperty.IS_LATEST_MAJOR_VERSION)) + { + NodeRef latestMajorNodeRef = getLatestVersionNodeRef(documentNodeRef, true); + target.setIsLatestMajorVersion(latestMajorNodeRef.equals(documentNodeRef)); + } + + if (propertyFilter.allow(CmisProperty.CHECKIN_COMMENT) && workingCopy == null) + { + target.setCheckinComment(version.getDescription()); + } + } + else + { + if (propertyFilter.allow(CmisProperty.IS_LATEST_VERSION)) + { + target.setIsLatestVersion(true); + } + if (propertyFilter.allow(CmisProperty.IS_MAJOR_VERSION)) + { + target.setIsMajorVersion(true); + } + if (propertyFilter.allow(CmisProperty.IS_LATEST_MAJOR_VERSION)) + { + target.setIsLatestMajorVersion(true); + } + } + } + + if (propertyFilter.allow(CmisProperty.VERSION_SERIES_IS_CHECKED_OUT)) + { + target.setVersionSeriesIsCheckedOut(workingCopy != null); + } + + if (propertyFilter.allow(CmisProperty.VERSION_SERIES_CHECKED_OUT_BY) && workingCopy != null) + { + target.setVersionSeriesCheckedOutBy((String) nodeService.getProperty(workingCopy, ContentModel.PROP_WORKING_COPY_OWNER)); + } + + if (propertyFilter.allow(CmisProperty.VERSION_SERIES_CHECKED_OUT_OID) && workingCopy != null) + { + if (AuthenticationUtil.getCurrentUserName().equals((String) nodeService.getProperty(workingCopy, ContentModel.PROP_WORKING_COPY_OWNER))) + { + target.setVersionSeriesCheckedOutOID(OIDUtils.toOID(workingCopy)); + } + } + + ContentReader contentReader = null; + + if (nodeService.getType(documentNodeRef).equals(ContentModel.TYPE_LINK)) + { + NodeRef destRef = (NodeRef) nodeService.getProperty(documentNodeRef, ContentModel.PROP_LINK_DESTINATION); + if (nodeService.exists(destRef)) + { + contentReader = fileFolderService.getReader(destRef); + } + } + else + { + contentReader = fileFolderService.getReader(documentNodeRef); + } + + if (contentReader != null) + { + if (propertyFilter.allow(CmisProperty.CONTENT_STREAM_LENGTH)) + { + target.setContentStreamLength(BigInteger.valueOf(contentReader.getSize())); + } + if (propertyFilter.allow(CmisProperty.CONTENT_STREAM_MIME_TYPE)) + { + target.setContentStreamMimeType(contentReader.getMimetype()); + } + if (propertyFilter.allow(CmisProperty.CONTENT_STREAM_FILENAME)) + { + target.setContentStreamFilename(target.getName()); // TODO: right on not? + } + } + + return target; + } + + /** + * Sets properties for RelationshipObjectType object + * + * @param associationRef Association reference + * @param target RelationshipObjectType object for setting + * @param propertyFilter filter for properties + * @return RelationshipObjectType object + */ + public RelationshipObjectType setRelationshipObjectTypeProperties(AssociationRef associationRef, RelationshipObjectType target, PropertyFilter propertyFilter) + { + target.setSourceOID(OIDUtils.toOID(associationRef.getSourceRef())); + target.setTargetOID(OIDUtils.toOID(associationRef.getTargetRef())); + // TODO: other properties + return target; + } + + /** + * Sets properties for DocumentFolderOrRelationshipObjectType object + * + * @param associationRef Association reference + * @param target DocumentFolderOrRelationshipObjectType object for setting + * @param propertyFilter filter for properties + * @return DocumentFolderOrRelationshipObjectType object + */ + public DocumentFolderOrRelationshipObjectType setRelationshipObjectTypeProperties(AssociationRef associationRef, DocumentFolderOrRelationshipObjectType target, PropertyFilter propertyFilter) + { + target.setSourceOID(OIDUtils.toOID(associationRef.getSourceRef())); + target.setTargetOID(OIDUtils.toOID(associationRef.getTargetRef())); + // TODO: other properties + return target; + } + + /** + * @param associationRef a reference to the association to look for + * @return Returns true if the association exists, otherwise false + */ + public boolean exists(AssociationRef associationRef) + { + if (nodeService.exists(associationRef.getSourceRef())) + { + return nodeService.getTargetAssocs(associationRef.getSourceRef(), associationRef.getTypeQName()).contains(associationRef); + } + + return false; + } + + /** + * @param nodeRef + * @return + */ + public boolean isFolderType(NodeRef nodeRef) + { + QName typeQName = nodeService.getType(nodeRef); + + return dictionaryService.isSubClass(typeQName, ContentModel.TYPE_FOLDER); + } + + /** + * @param nodeRef + * @return + */ + public boolean isDocumentType(NodeRef nodeRef) + { + QName typeQName = nodeService.getType(nodeRef); + + return dictionaryService.isSubClass(typeQName, ContentModel.TYPE_CONTENT); + } + + /** + * Returns latest minor or major version of document + * + * @param documentNodeRef document node reference + * @param major need latest major version + * @return latest version node reference + */ + public NodeRef getLatestVersionNodeRef(NodeRef documentNodeRef, boolean major) + { + Version currentVersion = versionService.getCurrentVersion(documentNodeRef); + NodeRef latestVersionNodeRef = documentNodeRef; + + if (currentVersion != null) + { + latestVersionNodeRef = currentVersion.getVersionedNodeRef(); + + if (major) + { + Version latestVersion = versionService.getCurrentVersion(latestVersionNodeRef); + + if (latestVersion.getVersionType().equals(VersionType.MAJOR) == false) + { + VersionHistory versionHistory = versionService.getVersionHistory(currentVersion.getVersionedNodeRef()); + + do + { + latestVersion = versionHistory.getPredecessor(latestVersion); + } while (latestVersion.getVersionType().equals(VersionType.MAJOR) == false); + + latestVersionNodeRef = latestVersion.getFrozenStateNodeRef(); + } + } + } + + return latestVersionNodeRef; + } + + /** + * Converts Date object to XMLGregorianCalendar object + * + * @param date Date object + * @return XMLGregorianCalendar object + * @throws RuntimeException + */ + private XMLGregorianCalendar convert(Date date) throws RuntimeException + { + GregorianCalendar calendar = new GregorianCalendar(); + calendar.setTime(date); + return getDatatypeFactory().newXMLGregorianCalendar(calendar); + } + +} diff --git a/source/java/org/alfresco/repo/cmis/ws/DMNavigationServicePort.java b/source/java/org/alfresco/repo/cmis/ws/DMNavigationServicePort.java new file mode 100644 index 0000000000..41f571acbc --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/DMNavigationServicePort.java @@ -0,0 +1,245 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; +import java.util.List; + +import org.alfresco.service.cmr.model.FileInfo; +import org.alfresco.service.cmr.repository.NodeRef; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +/** + * @author Dmitry Lazurkin + */ + +@javax.jws.WebService(name = "NavigationServicePort", serviceName = "NavigationService", portName = "NavigationServicePort", targetNamespace = "http://www.cmis.org/ns/1.0", endpointInterface = "org.alfresco.repo.cmis.ws.NavigationServicePort") +public class DMNavigationServicePort extends DMAbstractServicePort implements NavigationServicePort +{ + private static final Log log = LogFactory.getLog("org.alfresco.repo.cmis.ws"); + + public org.alfresco.repo.cmis.ws.GetDescendantsResponse getDescendants(GetDescendants parameters) throws RuntimeException, ConcurrencyException, InvalidArgumentException, + FilterNotValidException, OperationNotSupportedException, FolderNotValidException, PermissionDeniedException + { + System.out.println(parameters); + try + { + org.alfresco.repo.cmis.ws.GetDescendantsResponse _return = null; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new FilterNotValidException("FilterNotValidException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new FolderNotValidException("FolderNotValidException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public org.alfresco.repo.cmis.ws.GetCheckedoutDocsResponse getCheckedoutDocs(GetCheckedoutDocs parameters) throws RuntimeException, ConcurrencyException, InvalidArgumentException, + FilterNotValidException, OperationNotSupportedException, FolderNotValidException, PermissionDeniedException + { + System.out.println(parameters); + try + { + org.alfresco.repo.cmis.ws.GetCheckedoutDocsResponse _return = null; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new FilterNotValidException("FilterNotValidException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new FolderNotValidException("FolderNotValidException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public org.alfresco.repo.cmis.ws.GetDocumentParentsResponse getDocumentParents(GetDocumentParents parameters) throws RuntimeException, ConcurrencyException, + InvalidArgumentException, ObjectNotFoundException, FilterNotValidException, OperationNotSupportedException, PermissionDeniedException + { + System.out.println(parameters); + try + { + org.alfresco.repo.cmis.ws.GetDocumentParentsResponse _return = null; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new ObjectNotFoundException("ObjectNotFoundException..."); + // throw new FilterNotValidException("FilterNotValidException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public org.alfresco.repo.cmis.ws.GetChildrenResponse getChildren(GetChildren parameters) throws RuntimeException, ConcurrencyException, InvalidArgumentException, + FilterNotValidException, OperationNotSupportedException, FolderNotValidException, PermissionDeniedException + { + PropertyFilter propertyFilter = new PropertyFilter(parameters.getFilter()); + + NodeRef folderNodeRef = OIDUtils.OIDtoNodeRef(parameters.getFolderId()); + + assertExistFolder(folderNodeRef); + + List listing; + if (parameters.getType().equals(TypesOfObjectsEnum.DOCUMENTS)) + { + listing = fileFolderService.listFiles(folderNodeRef); + } + else if (parameters.getType().equals(TypesOfObjectsEnum.FOLDERS)) + { + listing = fileFolderService.listFolders(folderNodeRef); + } + else + { + listing = fileFolderService.list(folderNodeRef); + } + + int maxItems = listing.size(); + int skipCount = 0; + + GetChildrenResponse response = new GetChildrenResponse(); + + // TODO: getChildren, support for BigIntegers, support for ResultSet + if (parameters.getSkipCount() != null) + { + BigInteger skipCountParam = parameters.getSkipCount(); + skipCount = skipCountParam.max(BigInteger.valueOf(skipCount)).intValue(); + } + + if (parameters.getMaxItems() != null) + { + BigInteger maxItemsParam = parameters.getMaxItems(); + maxItems = maxItemsParam.min(BigInteger.valueOf(maxItems)).intValue(); + + if (maxItems == 0) + { + maxItems = listing.size(); + } + + response.setHasMoreItems(maxItems < listing.size()); + } + + response.setDocumentAndFolderCollection(new DocumentAndFolderCollection()); + List resultListing = response.getDocumentAndFolderCollection().getObject(); + + for (int index = skipCount; index < listing.size() && maxItems > 0; ++index, --maxItems) + { + FileInfo currentFileInfo = listing.get(index); + DocumentOrFolderObjectType documentOrFolderObjectType = new DocumentOrFolderObjectType(); + + if (currentFileInfo.isFolder()) + { + setFolderObjectTypeProperties(currentFileInfo.getNodeRef(), documentOrFolderObjectType, propertyFilter); + } + else + { + setDocumentObjectTypeProperties(currentFileInfo.getNodeRef(), documentOrFolderObjectType, propertyFilter); + } + + resultListing.add(documentOrFolderObjectType); + } + + return response; + } + + /** + * Asserts "Folder with folderNodeRef exists" + * + * @param folderNodeRef node reference + * @throws FolderNotValidException folderNodeRef doesn't exist or folderNodeRef isn't for folder object + */ + private void assertExistFolder(NodeRef folderNodeRef) throws FolderNotValidException + { + if (folderNodeRef == null || nodeService.exists(folderNodeRef) == false || isFolderType(folderNodeRef) == false) + { + // TODO: error code + BasicFault basicFault = ExceptionUtils.createBasicFault(null, "OID for non-existent object or not folder object"); + throw new FolderNotValidException("OID for non-existent object or not folder object", basicFault); + } + } + + public org.alfresco.repo.cmis.ws.GetFolderParentResponse getFolderParent(GetFolderParent parameters) throws RuntimeException, ConcurrencyException, InvalidArgumentException, + FilterNotValidException, OperationNotSupportedException, FolderNotValidException, PermissionDeniedException + { + System.out.println(parameters); + try + { + org.alfresco.repo.cmis.ws.GetFolderParentResponse _return = null; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new FilterNotValidException("FilterNotValidException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new FolderNotValidException("FolderNotValidException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public org.alfresco.repo.cmis.ws.GetUnfiledDocsResponse getUnfiledDocs(GetUnfiledDocs parameters) throws RuntimeException, ConcurrencyException, InvalidArgumentException, + FilterNotValidException, OperationNotSupportedException, PermissionDeniedException + { + System.out.println(parameters); + try + { + org.alfresco.repo.cmis.ws.GetUnfiledDocsResponse _return = null; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new FilterNotValidException("FilterNotValidException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + +} diff --git a/source/java/org/alfresco/repo/cmis/ws/DMObjectServicePort.java b/source/java/org/alfresco/repo/cmis/ws/DMObjectServicePort.java new file mode 100644 index 0000000000..d2f22e511e --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/DMObjectServicePort.java @@ -0,0 +1,459 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +import java.io.IOException; +import java.io.InputStream; +import java.math.BigInteger; + +import org.alfresco.model.ContentModel; +import org.alfresco.service.cmr.repository.AssociationRef; +import org.alfresco.service.cmr.repository.ContentReader; +import org.alfresco.service.cmr.repository.NodeRef; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +/** + * @author Dmitry Lazurkin + */ + +@javax.jws.WebService(name = "ObjectServicePort", serviceName = "ObjectService", portName = "ObjectServicePort", targetNamespace = "http://www.cmis.org/ns/1.0", endpointInterface = "org.alfresco.repo.cmis.ws.ObjectServicePort") +public class DMObjectServicePort extends DMAbstractServicePort implements ObjectServicePort +{ + private static final Log log = LogFactory.getLog("org.alfresco.repo.cmis.ws"); + + public org.alfresco.repo.cmis.ws.DeleteTreeResponse.FailedToDelete deleteTree(java.lang.String folderId, org.alfresco.repo.cmis.ws.DeleteWithMultiFilingEnum unfileMultiFiledDocuments, + java.lang.Boolean continueOnFailure) throws RuntimeException, ConcurrencyException, InvalidArgumentException, OperationNotSupportedException, FolderNotValidException, + PermissionDeniedException + { + System.out.println(folderId); + System.out.println(unfileMultiFiledDocuments); + System.out.println(continueOnFailure); + try + { + org.alfresco.repo.cmis.ws.DeleteTreeResponse.FailedToDelete _return = null; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new FolderNotValidException("FolderNotValidException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public org.alfresco.repo.cmis.ws.GetAllowableActionsResponse.AllowableActionCollection getAllowableActions(java.lang.String objectId, java.lang.String asUser) + throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, OperationNotSupportedException, PermissionDeniedException + { + System.out.println(objectId); + System.out.println(asUser); + try + { + org.alfresco.repo.cmis.ws.GetAllowableActionsResponse.AllowableActionCollection _return = null; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new ObjectNotFoundException("ObjectNotFoundException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public void moveObject(java.lang.String objectId, java.lang.String folderId, java.lang.String sourceFolderId) throws RuntimeException, ConcurrencyException, + InvalidArgumentException, ObjectNotFoundException, NotInFolderException, ConstraintViolationException, OperationNotSupportedException, FolderNotValidException, + PermissionDeniedException + { + System.out.println(objectId); + System.out.println(folderId); + System.out.println(sourceFolderId); + try + { + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new ObjectNotFoundException("ObjectNotFoundException..."); + // throw new NotInFolderException("NotInFolderException..."); + // throw new ConstraintViolationException("ConstraintViolationException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new FolderNotValidException("FolderNotValidException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public void deleteContentStream(java.lang.String documentId) throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, + StorageException, ConstraintViolationException, OperationNotSupportedException, StreamNotSupportedException, PermissionDeniedException + { + System.out.println(documentId); + try + { + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new ObjectNotFoundException("ObjectNotFoundException..."); + // throw new StorageException("StorageException..."); + // throw new ConstraintViolationException("ConstraintViolationException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new StreamNotSupportedException("StreamNotSupportedException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public java.lang.String createFolder(java.lang.String typeId, org.alfresco.repo.cmis.ws.FolderObjectType propertyCollection, java.lang.String folderId) throws RuntimeException, + ConcurrencyException, InvalidArgumentException, TypeNotFoundException, ConstraintViolationException, OperationNotSupportedException, FolderNotValidException, + PermissionDeniedException + { + System.out.println(typeId); + System.out.println(propertyCollection); + System.out.println(folderId); + try + { + java.lang.String _return = ""; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new TypeNotFoundException("TypeNotFoundException..."); + // throw new ConstraintViolationException("ConstraintViolationException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new FolderNotValidException("FolderNotValidException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public void updateProperties(java.lang.String objectId, java.lang.String changeToken, org.alfresco.repo.cmis.ws.DocumentFolderOrRelationshipObjectType object) + throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, OperationNotSupportedException, PermissionDeniedException + { + System.out.println(objectId); + System.out.println(changeToken); + System.out.println(object); + try + { + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new ObjectNotFoundException("ObjectNotFoundException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public org.alfresco.repo.cmis.ws.CreateDocumentResponse createDocument(CreateDocument parameters) throws RuntimeException, ConcurrencyException, InvalidArgumentException, + TypeNotFoundException, StorageException, ConstraintViolationException, OperationNotSupportedException, StreamNotSupportedException, FolderNotValidException, + PermissionDeniedException + { + System.out.println(parameters); + try + { + org.alfresco.repo.cmis.ws.CreateDocumentResponse _return = null; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new TypeNotFoundException("TypeNotFoundException..."); + // throw new StorageException("StorageException..."); + // throw new ConstraintViolationException("ConstraintViolationException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new StreamNotSupportedException("StreamNotSupportedException..."); + // throw new FolderNotValidException("FolderNotValidException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public byte[] getContentStream(java.lang.String documentId, java.math.BigInteger offset, java.math.BigInteger length) throws RuntimeException, ConcurrencyException, + InvalidArgumentException, ObjectNotFoundException, StorageException, OperationNotSupportedException, StreamNotSupportedException, OffsetException, + PermissionDeniedException + { + if (offset == null) + { + offset = new BigInteger("0"); + } + if (length == null) + { + length = new BigInteger("-1"); + } + + + NodeRef nodeRef = OIDUtils.OIDtoNodeRef(documentId); + + if (nodeRef == null) + { + // TODO: error code + BasicFault basicFault = ExceptionUtils.createBasicFault(null, "Invalid object ID"); + throw new InvalidArgumentException("Invalid object ID", basicFault); + } + + if (!nodeService.exists(nodeRef)) + { + // TODO: error code + BasicFault basicFault = ExceptionUtils.createBasicFault(null, "Invalid document OID"); + throw new ObjectNotFoundException("Invalid document OID", basicFault); + } + + if (isFolderType(nodeRef)) + { + // TODO: error code + BasicFault basicFault = ExceptionUtils.createBasicFault(null, "Stream not supported for this type of node"); + throw new StreamNotSupportedException("Stream not supported for this type of node", basicFault); + } + + ContentReader contentReader = null; + + if (nodeService.getType(nodeRef).equals(ContentModel.TYPE_LINK)) + { + NodeRef destRef = (NodeRef) nodeService.getProperty(nodeRef, ContentModel.PROP_LINK_DESTINATION); + if (nodeService.exists(destRef)) + { + contentReader = fileFolderService.getReader(destRef); + } + else + { + throw new ObjectNotFoundException("Missing link destination"); + } + } + else + { + contentReader = fileFolderService.getReader(nodeRef); + } + + if (length.intValue() == -1) + { + length = new BigInteger(String.valueOf(contentReader.getSize())); + } + + byte[] buffer = new byte[length.intValue()]; + + try + { + InputStream inputStream = contentReader.getContentInputStream(); + inputStream.skip(offset.intValue()); + int resultLength = inputStream.read(buffer, 0, length.intValue()); + + if (resultLength == -1) + { + return new byte[0]; + } + + byte[] result = new byte[resultLength]; + for (int i = 0; i < resultLength; i++) + { + result[i] = buffer[i]; + } + return result; + } + catch (IndexOutOfBoundsException e) + { + // TODO: error code + BasicFault basicFault = ExceptionUtils.createBasicFault(null, e.getMessage()); + throw new OffsetException(e.getMessage(), basicFault, e); + } + catch (IOException e) + { + // TODO: error code + BasicFault basicFault = ExceptionUtils.createBasicFault(null, e.getMessage()); + throw new RuntimeException(e.getMessage(), basicFault, e); + } + } + + public java.lang.String createRelationship(java.lang.String typeId, org.alfresco.repo.cmis.ws.RelationshipObjectType propertyCollection, java.lang.String sourceObjectId, + java.lang.String targetObjectId) throws RuntimeException, ConcurrencyException, InvalidArgumentException, TypeNotFoundException, ObjectNotFoundException, + ConstraintViolationException, OperationNotSupportedException, PermissionDeniedException + { + System.out.println(typeId); + System.out.println(propertyCollection); + System.out.println(sourceObjectId); + System.out.println(targetObjectId); + try + { + java.lang.String _return = ""; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new TypeNotFoundException("TypeNotFoundException..."); + // throw new ObjectNotFoundException("ObjectNotFoundException..."); + // throw new ConstraintViolationException("ConstraintViolationException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public org.alfresco.repo.cmis.ws.SetContentStreamResponse setContentStream(SetContentStream parameters) throws RuntimeException, ConcurrencyException, InvalidArgumentException, + AlreadyExistsException, ObjectNotFoundException, StorageException, ConstraintViolationException, OperationNotSupportedException, StreamNotSupportedException, + PermissionDeniedException + { + System.out.println(parameters); + try + { + org.alfresco.repo.cmis.ws.SetContentStreamResponse _return = null; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new AlreadyExistsException("AlreadyExistsException..."); + // throw new ObjectNotFoundException("ObjectNotFoundException..."); + // throw new StorageException("StorageException..."); + // throw new ConstraintViolationException("ConstraintViolationException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new StreamNotSupportedException("StreamNotSupportedException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public void deleteObject(java.lang.String objectId) throws RuntimeException, ConcurrencyException, InvalidArgumentException, ObjectNotFoundException, + ConstraintViolationException, OperationNotSupportedException, PermissionDeniedException + { + System.out.println(objectId); + try + { + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new ObjectNotFoundException("ObjectNotFoundException..."); + // throw new ConstraintViolationException("ConstraintViolationException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public org.alfresco.repo.cmis.ws.GetPropertiesResponse getProperties(GetProperties parameters) throws RuntimeException, ConcurrencyException, InvalidArgumentException, + ObjectNotFoundException, FilterNotValidException, OperationNotSupportedException, PermissionDeniedException + { + GetPropertiesResponse response = new GetPropertiesResponse(); + response.setObject(new DocumentFolderOrRelationshipObjectType()); + + PropertyFilter propertyFilter = new PropertyFilter(parameters.getFilter()); + + NodeRef nodeRef = OIDUtils.OIDtoNodeRef(parameters.getObjectId()); + + if (nodeRef != null) + { + if (nodeService.exists(nodeRef) == false) + { + // TODO: error code + BasicFault basicFault = ExceptionUtils.createBasicFault(null, "Object not found"); + throw new ObjectNotFoundException("Object not found", basicFault); + } + + if (isFolderType(nodeRef)) + { + setFolderObjectTypeProperties(nodeRef, response.getObject(), propertyFilter); + } + else + { + VersionEnum neededVersion = parameters.getReturnVersion(); + + if (neededVersion != null) + { + if (neededVersion.equals(VersionEnum.LATEST)) + { + nodeRef = getLatestVersionNodeRef(nodeRef, false); + } + else if (neededVersion.equals(VersionEnum.LATEST_MAJOR)) + { + nodeRef = getLatestVersionNodeRef(nodeRef, true); + } + } + + setDocumentObjectTypeProperties(nodeRef, response.getObject(), propertyFilter); + } + } + else + { + AssociationRef associationRef = OIDUtils.OIDtoAssocRef(parameters.getObjectId()); + + if (associationRef != null) + { + if (exists(associationRef) == false) + { + // TODO: error code + BasicFault basicFault = ExceptionUtils.createBasicFault(null, "Object not found"); + throw new ObjectNotFoundException("Object not found", basicFault); + } + + setRelationshipObjectTypeProperties(associationRef, response.getObject(), propertyFilter); + } + else + { + // TODO: error code + BasicFault basicFault = ExceptionUtils.createBasicFault(null, "Invalid object ID"); + throw new InvalidArgumentException("Invalid object ID", basicFault); + } + } + + return response; + } + +} diff --git a/source/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePort.java b/source/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePort.java new file mode 100644 index 0000000000..0d9e17615c --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePort.java @@ -0,0 +1,203 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +import java.util.List; + +import org.alfresco.service.cmr.repository.NodeRef; +import org.alfresco.service.cmr.repository.StoreRef; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +/** + * @author Michael Shavnev + * @author Dmitry Lazurkin + */ + +@javax.jws.WebService(name = "RepositoryServicePort", serviceName = "RepositoryService", portName = "RepositoryServicePort", targetNamespace = "http://www.cmis.org/ns/1.0", endpointInterface = "org.alfresco.repo.cmis.ws.RepositoryServicePort") +public class DMRepositoryServicePort extends DMAbstractServicePort implements RepositoryServicePort +{ + private static final Log log = LogFactory.getLog("org.alfresco.repo.cmis.ws"); + + private String rootPath; + private NodeRef rootNodeRef; + + public GetRootFolderResponse getRootFolder(GetRootFolder parameters) throws RuntimeException, ConcurrencyException, InvalidArgumentException, FilterNotValidException, + OperationNotSupportedException, PermissionDeniedException + { + PropertyFilter propertyFilter = new PropertyFilter(parameters.getFilter()); + FolderObjectType folderObject = new FolderObjectType(); + + propertyFilter.disableProperty(CmisProperty.NAME); + propertyFilter.disableProperty(CmisProperty.PARENT); + setFolderObjectTypeProperties(getRootNodeRef(), folderObject, propertyFilter); + propertyFilter.enableProperty(CmisProperty.NAME); + propertyFilter.enableProperty(CmisProperty.PARENT); + + if (propertyFilter.allow(CmisProperty.NAME)) + { + folderObject.setName("CMIS_Root_Folder"); + } + + if (propertyFilter.allow(CmisProperty.PARENT)) + { + folderObject.setParent(OIDUtils.toOID(rootNodeRef)); + } + + GetRootFolderResponse response = new GetRootFolderResponse(); + response.setRootFolder(folderObject); + return response; + } + + private NodeRef getRootNodeRef() + { + if (rootNodeRef == null) + { + int indexOfStoreDelim = rootPath.indexOf(StoreRef.URI_FILLER); + + if (indexOfStoreDelim == -1) + { + throw new java.lang.RuntimeException("Bad path format, " + StoreRef.URI_FILLER + " not found"); + } + + indexOfStoreDelim += StoreRef.URI_FILLER.length(); + + int indexOfPathDelim = rootPath.indexOf("/", indexOfStoreDelim); + + if (indexOfPathDelim == -1) + { + throw new java.lang.RuntimeException("Bad path format, / not found"); + } + + String storePath = rootPath.substring(0, indexOfPathDelim); + String rootPathInStore = rootPath.substring(indexOfPathDelim); + + StoreRef storeRef = new StoreRef(storePath); + if (nodeService.exists(storeRef) == false) + { + throw new java.lang.RuntimeException("No store for path: " + storeRef); + } + + NodeRef storeRootNodeRef = nodeService.getRootNode(storeRef); + + if (rootPath.equals("/")) + { + rootNodeRef = storeRootNodeRef; + } + else + { + List nodeRefs = searchService.selectNodes(storeRootNodeRef, rootPathInStore, null, namespaceService, false); + + if (nodeRefs.size() > 1) + { + throw new java.lang.RuntimeException("Multiple possible roots for : \n" + " root path: " + rootPath + "\n" + " results: " + nodeRefs); + } + else if (nodeRefs.size() == 0) + { + throw new java.lang.RuntimeException("No root found for : \n" + " root path: " + rootPath); + } + else + { + rootNodeRef = nodeRefs.get(0); + } + } + } + + return rootNodeRef; + } + + public GetTypesResponse getTypes(GetTypes parameters) throws RuntimeException, ConcurrencyException, InvalidArgumentException, OperationNotSupportedException, + PermissionDeniedException + { + System.out.println(parameters); + try + { + org.alfresco.repo.cmis.ws.GetTypesResponse _return = null; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public void getTypeDefinition(java.lang.String typeId, java.lang.Boolean includeInheritedProperties, javax.xml.ws.Holder type, + javax.xml.ws.Holder canCreateInstances) throws RuntimeException, ConcurrencyException, InvalidArgumentException, TypeNotFoundException, + OperationNotSupportedException, PermissionDeniedException + { + System.out.println(typeId); + System.out.println(includeInheritedProperties); + try + { + org.alfresco.repo.cmis.ws.ObjectTypeDefinitionType typeValue = null; + type.value = typeValue; + java.lang.Boolean canCreateInstancesValue = null; + canCreateInstances.value = canCreateInstancesValue; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new TypeNotFoundException("TypeNotFoundException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public RepositoryInfoType getRepositoryInfo() throws RuntimeException, ConcurrencyException, InvalidArgumentException, OperationNotSupportedException, + PermissionDeniedException + { + try + { + org.alfresco.repo.cmis.ws.RepositoryInfoType _return = null; + return _return; + } + catch (Exception ex) + { + ex.printStackTrace(); + throw new java.lang.RuntimeException(ex); + } + // throw new RuntimeException("RuntimeException..."); + // throw new ConcurrencyException("ConcurrencyException..."); + // throw new InvalidArgumentException("InvalidArgumentException..."); + // throw new OperationNotSupportedException("OperationNotSupportedException..."); + // throw new PermissionDeniedException("PermissionDeniedException..."); + } + + public void setRootPath(String rootPath) + { + this.rootPath = rootPath; + } + +} diff --git a/source/java/org/alfresco/repo/cmis/ws/DMServicePortThrowsAdvice.java b/source/java/org/alfresco/repo/cmis/ws/DMServicePortThrowsAdvice.java new file mode 100644 index 0000000000..7ef9725758 --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/DMServicePortThrowsAdvice.java @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +import org.alfresco.repo.security.permissions.AccessDeniedException; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.springframework.aop.ThrowsAdvice; + +/** + * @author Dmitry Lazurkin + * + */ +public class DMServicePortThrowsAdvice implements ThrowsAdvice +{ + private static final Log log = LogFactory.getLog("org.alfresco.cmis.ws"); + + public void afterThrowing(AccessDeniedException e) throws PermissionDeniedException + { + if (log.isInfoEnabled()) + { + log.info(e); + } + + // TODO: error code + BasicFault basicFault = ExceptionUtils.createBasicFault(null, "Access denied"); + throw new PermissionDeniedException("Access denied", basicFault, e); + } + + public void afterThrowing(java.lang.RuntimeException e) throws RuntimeException + { + if (log.isErrorEnabled()) + { + log.error(e); + } + + // TODO: error code + BasicFault basicFault = ExceptionUtils.createBasicFault(null, "Runtime error"); + throw new RuntimeException("Runtime error", basicFault, e); + } + +} diff --git a/source/java/org/alfresco/repo/cmis/ws/ExceptionUtils.java b/source/java/org/alfresco/repo/cmis/ws/ExceptionUtils.java new file mode 100644 index 0000000000..654ecb4db9 --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/ExceptionUtils.java @@ -0,0 +1,55 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +import java.math.BigInteger; + +/** + * Utils for working with cmis exceptions + * + * @author Dmitry Lazurkin + * + */ +public class ExceptionUtils +{ + + /** + * Creates basic fault instance + * + * @param errorCode error code + * @param errorMessage error message + * @return basic fault instance + */ + public static BasicFault createBasicFault(BigInteger errorCode, String errorMessage) + { + BasicFault basicFault = new BasicFault(); + + basicFault.setErrorCode(errorCode); + basicFault.setErrorMessage(errorMessage); + + return basicFault; + } + +} diff --git a/source/java/org/alfresco/repo/cmis/ws/OIDType.java b/source/java/org/alfresco/repo/cmis/ws/OIDType.java new file mode 100644 index 0000000000..174354148e --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/OIDType.java @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +/** + * OID types enumeration + * + * @author Dmitry Lazurkin + * + */ +public enum OIDType +{ + DOCUMENT_FOLDER, + RELATIONSHIP; + + public static OIDType getOIDType(String oid) + { + try + { + return OIDType.values()[Integer.parseInt(oid.substring(0, 1))]; + } + catch (Exception e) + { + // expected if OID string is bad + } + + return null; + } + +} diff --git a/source/java/org/alfresco/repo/cmis/ws/OIDUtils.java b/source/java/org/alfresco/repo/cmis/ws/OIDUtils.java new file mode 100644 index 0000000000..b3d397ab7d --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/OIDUtils.java @@ -0,0 +1,111 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +import org.alfresco.service.cmr.repository.AssociationRef; +import org.alfresco.service.cmr.repository.NodeRef; + +/** + * @author Dmitry Lazurkin + * + */ +public class OIDUtils +{ + + /** + * Returns OID for node reference + * + * @param nodeRef node reference + * @return OID + */ + public static String toOID(NodeRef nodeRef) + { + return OIDType.DOCUMENT_FOLDER.ordinal() + nodeRef.toString(); + } + + /** + * Returns OID for association reference + * + * @param assocRef association reference + * @return OID + */ + public static String toOID(AssociationRef assocRef) + { + return OIDType.RELATIONSHIP.ordinal() + assocRef.toString(); + } + + /** + * Returns node reference for OID + * + * @param oid OID + * @return node reference + */ + public static NodeRef OIDtoNodeRef(String oid) + { + NodeRef nodeRef = null; + + OIDType oidType = OIDType.getOIDType(oid); + if (oidType != null && oidType.equals(OIDType.DOCUMENT_FOLDER)) + { + try + { + nodeRef = new NodeRef(oid.substring(1)); + } + catch (Exception e) + { + // expected if OID string is bad + } + } + + return nodeRef; + } + + /** + * Returns association reference for OID + * + * @param oid OID + * @return association reference + */ + public static AssociationRef OIDtoAssocRef(String oid) + { + AssociationRef assocRef = null; + + OIDType oidType = OIDType.getOIDType(oid); + if (oidType != null && oidType.equals(OIDType.RELATIONSHIP)) + { + try + { + assocRef = new AssociationRef(oid.substring(1)); + } + catch (Exception e) + { + // expected if oid string is bad + } + } + + return assocRef; + } + +} diff --git a/source/java/org/alfresco/repo/cmis/ws/PropertyFilter.java b/source/java/org/alfresco/repo/cmis/ws/PropertyFilter.java new file mode 100644 index 0000000000..f389b4a6e2 --- /dev/null +++ b/source/java/org/alfresco/repo/cmis/ws/PropertyFilter.java @@ -0,0 +1,97 @@ +/* + * Copyright (C) 2005-2008 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing" + */ +package org.alfresco.repo.cmis.ws; + +import java.util.Arrays; +import java.util.EnumSet; +import java.util.HashSet; +import java.util.Set; +import java.util.regex.Pattern; + +/** + * Property filter class + * + * @author Dmitry Lazurkin + * + */ +public class PropertyFilter +{ + private static final Pattern PROPERTY_FILTER_REGEX = Pattern.compile("^(\\*)|([\\p{Upper}\\p{Digit}_]+(,[\\p{Upper}\\p{Digit}_]+)*)$"); + + private Set properties; + private EnumSet disabledProperties = EnumSet.noneOf(CmisProperty.class); + + /** + * Constructor + * + * @param filter filter string + * @throws FilterNotValidException if filter string isn't valid + */ + public PropertyFilter(String filter) throws FilterNotValidException + { + if (filter != null && filter.equals("") == false) + { + if (PROPERTY_FILTER_REGEX.matcher(filter).matches() == false) + { + throw new FilterNotValidException(filter, ExceptionUtils.createBasicFault(null, "Filter isn't valid")); + } + + if (filter.equals("*") == false) + { + properties = new HashSet(Arrays.asList(filter.split(","))); + } + } + } + + /** + * @param property property + * @return if property is allow by filter then returns true else false + */ + public boolean allow(CmisProperty property) + { + return disabledProperties.contains(property) == false && (properties == null || properties.contains(property.name())); + } + + /** + * Disables property + * + * @param property property + */ + public void disableProperty(CmisProperty property) + { + disabledProperties.add(property); + } + + /** + * Enables property + * + * @param property property + */ + public void enableProperty(CmisProperty property) + { + disabledProperties.remove(property); + } + +} diff --git a/source/java/org/alfresco/repo/web/scripts/content/ContentGet.java b/source/java/org/alfresco/repo/web/scripts/content/ContentGet.java index 50a27b6039..5330c8ad6c 100644 --- a/source/java/org/alfresco/repo/web/scripts/content/ContentGet.java +++ b/source/java/org/alfresco/repo/web/scripts/content/ContentGet.java @@ -27,6 +27,7 @@ package org.alfresco.repo.web.scripts.content; import java.io.IOException; import java.text.MessageFormat; import java.util.Arrays; +import java.util.Map; import javax.servlet.http.HttpServletResponse; @@ -87,10 +88,12 @@ public class ContentGet extends StreamContent // convert web script URL to node reference in Repository String match = req.getServiceMatch().getPath(); String[] matchParts = match.split("/"); - String extensionPath = req.getExtensionPath(); - String[] extParts = extensionPath == null ? new String[1] : extensionPath.split("/"); - String[] path = new String[extParts.length -1]; - System.arraycopy(extParts, 1, path, 0, extParts.length -1); + Map templateVars = req.getServiceMatch().getTemplateVars(); + String[] id = templateVars.get("id").split("/"); + String[] path = new String[id.length + 2]; + path[0] = templateVars.get("store_type"); + path[1] = templateVars.get("store_id"); + System.arraycopy(id, 0, path, 2, id.length); NodeRef nodeRef = repository.findNodeRef(matchParts[2], path); if (nodeRef == null) { @@ -99,7 +102,7 @@ public class ContentGet extends StreamContent // determine content property QName propertyQName = ContentModel.PROP_CONTENT; - String contentPart = extParts[0]; + String contentPart = templateVars.get("property"); if (contentPart.length() > 0 && contentPart.charAt(0) == ';') { if (contentPart.length() < 2) diff --git a/source/java/org/alfresco/repo/web/scripts/content/StreamContent.java b/source/java/org/alfresco/repo/web/scripts/content/StreamContent.java index e58c2623d7..22b2b53295 100644 --- a/source/java/org/alfresco/repo/web/scripts/content/StreamContent.java +++ b/source/java/org/alfresco/repo/web/scripts/content/StreamContent.java @@ -423,7 +423,6 @@ public class StreamContent extends AbstractWebScript reader.setEncoding("UTF-8"); streamContentImpl(req, res, reader, attach, this.resouceFileModifiedDate); - } /** @@ -439,7 +438,6 @@ public class StreamContent extends AbstractWebScript protected void streamContentImpl(WebScriptRequest req, WebScriptResponse res, ContentReader reader, boolean attach, Date modified) throws IOException { - HttpServletRequest httpReq = ((WebScriptServletRequest)req).getHttpServletRequest(); HttpServletResponse httpRes = ((WebScriptServletResponse)res).getHttpServletResponse(); diff --git a/source/test-resources/import-for-cmis-ws-test.acp b/source/test-resources/import-for-cmis-ws-test.acp new file mode 100644 index 0000000000000000000000000000000000000000..fef83b5125891bb3b76ee02d630a920cada1fe08 GIT binary patch literal 2751 zcmbuB2{e@JAID!NSwa(I$!-W`$uK6wlm<0p9Xp{kCRAfGO{KXa%eBR*Ny^ehvQ42B zT}x8gMTVryaK$jT$eye8N9X)6{-^Ul=k|Nf`=0kb=Y2ls`+J`EoabX}0onoq_*MqO zEkhqzS28QleuT3`5?S*kk)%n+pCj+Z5&g+{f3mg~IgmU9dw0I+4Z1@Q0BkLI`GWN6 zR@+vl@UL99{{{-%0Nt_%9py_l{3WQ)DpdEK?vIRmM8pEmNXFj>36S@(QN{+K6vRF;| zdKW%UEM1KoqSl5=I;~*g5SfQKG8>qETmIOoCwU$h*fBXDYjE~N#k>W%7n82^@@ENN zk0=NIA_siSBcU#Zw(MFtYNdbYU1X)`o4KP)%{?IVD68e7d(&8_ik^Z=el&tc)|W9= z{cN9D`dBjOSk_lY;yvXS?U;7e-TO|zaLvc)Dnh9ou&R7sT`Nu`hrOWMJ#|Q?2i^RV z+9xk;QX+U|H(&*PR*I1JJ>%dAhkTa4whw??Li%Nu)V{eFbSIgqz3SN8Y8OlxzN2i| z7_wBtR&J<`e_b6zuVmFJ(pYCvw&oFEv%I1)oTgibV=prI1j_`fJrBgGn-N{q|akekH|us@d+G#lC}fkkgG~+yL=_v;oMFqpIep_ z0%BfzU(q}VtQUmDF4|;9F>Z#`92(X4n?3)*v-p6+R-gOHz3=LWN$MST8aVi~u{lPr z(}b~b#e(&b_*S<$32?92AVy7{;sLp%VWQR0m{Ii5;J59fJ`xH`)~A9V;-{xe>naDJ zj6hXAV_Gm;Up2iNnM1hu=UGRUUEt!**djZ&4cW~2QUxhTaD^}zaz^IW@q z?A*Pb2AG-_0W^slB;#>le|K~*!s|sHoj{2c$d`qr`{!{-&{c0EKkyfDQ1>ZiL_fFE zlpEG{v}c)_j6ChI8nCWj82Wj`;L)L!R48TsQip4vfI$6QOgeMG?w$7or20;@d9pdr zJPb32N|qgs71GCw)iz+C8rR%DZLphgb1+^UQN#P;l z*#z1IcI4_#nS8bQtHtHKsvk0^lRl1rL-Li3v8KzYq5YJm34@#b!z!c<>U86MO}pei zZ#;vWS+E?83D*>!K_neCIL%}+QpFD{C$J5w6`?l#T_Uqb?klJF%^SS_elLG6XndD= zelx6xgrqtN0SsWOVKD?nBF1WPkuBoRzBS43U9$)q~i_B2Yu5j6yn1>vjcR8J9(b+ z?~zWwT17h+ix?CZV$$Z0W?L09w%7WJ=2)d60=i~r+EkL;vv+r~72bAUE7?M5OUky| z1I|El9~959DisB>Lz9X5UsDtYwYz?u($F>(M!f~4`{*_&pFIcm^}J$olH}mrvzW~#zL+0{e1+wp(D)I0 z@b>5m@`3%cWkQo$daT%5ul@oeT%j?E;@I!0kL`;GFDxHsct)2bn7~z9^vwq(<8g2* z(^J+wHRwwW?x{SLX#{vUpO;vad+D+zGfyTn{x}>5(!erbI>OvWs$2beGrv7jZTs)c ztD3n4@9l z)(h{=^U}Ed_&aD-D})SKh3B>cfTqpr5zfU80sgU-^~$koD;sOm8MeV)Hj~zS#zvCk z3iKzWHDTFITCW%zNsOP9)+}W+X}wo$BrX1&v?eH + + + + + + + org.alfresco.repo.cmis.ws.RepositoryServicePort + + + + + + + + + + + + + + + + + org.alfresco.repo.cmis.ws.NavigationServicePort + + + + + + + + + + + + + + + + + org.alfresco.repo.cmis.ws.ObjectServicePort + + + + + + + + + + + + + + + + + + + + ${server.transaction.mode.readOnly} + ${server.transaction.mode.default} + + + + + + + workspace://CmisTestWorkspace/alf:root_folder + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/test/apptest/results.html b/source/test/apptest/results.html index d8ed6e260e..6958f775ad 100644 --- a/source/test/apptest/results.html +++ b/source/test/apptest/results.html @@ -13,7 +13,7 @@

Test Report

Date
-
Mon May 12 15:38:50 2008
+
Thu May 22 13:30:14 2008

Legend

@@ -48,27 +48,34 @@ transfer-encoding: chunked server: Apache-Coyote/1.1 pragma: no-cache cache-control: no-cache -date: Mon, 12 May 2008 14:38:47 GMT +date: Thu, 22 May 2008 12:30:05 GMT content-type: application/atom+xml;charset=UTF-8 -
<?xml version="1.0" ?><service xmlns="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cmis="http://www.cmis.org/CMIS/1.0">
-  <workspace cmis:id="63dbba8b-1224-11dd-bee8-852083ea779d"> 
+
<?xml version="1.0" ?><service xmlns="http://www.w3.org/2007/app" xmlns:alf="http://www.alfresco.org" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cmis="http://www.cmis.org/CMIS/1.0">
+  <workspace cmis:id="62dad05d-27f9-11dd-a94d-bf697311154a"> 
     <atom:title>Main Repository</atom:title>
-     
-    <cmis:repository_info> 
+
+
+    <cmis:repositoryInfo> 
+      <cmis:repositoryId>62dad05d-27f9-11dd-a94d-bf697311154a</cmis:repositoryId>
+      <cmis:repositoryName>Main Repository</cmis:repositoryName>
+      <cmis:repositoryDescription/>         
       <cmis:vendorName>Alfresco</cmis:vendorName> 
       <cmis:productName>Alfresco Repository (Community Network)</cmis:productName>
       <cmis:productVersion>3.0.0 (dev @build-number@)</cmis:productVersion> 
       <cmis:capabilities>
         <cmis:capabilityMultifiling>true</cmis:capabilityMultifiling>
+        <cmis:capabilityUnfiling>false</cmis:capabilityUnfiling>
+        <cmis:capabilityVersionSpecificFiling>false</cmis:capabilityVersionSpecificFiling>        
         <cmis:capabilityAllVersionsSearchable>false</cmis:capabilityAllVersionsSearchable>
         <cmis:capabilityPWCUpdatable>true</cmis:capabilityPWCUpdatable>
+        <cmis:capabilityInnerJoin>true</cmis:capabilityInnerJoin>
+        <cmis:capabilityOuterJoin>true</cmis:capabilityOuterJoin>
       </cmis:capabilities> 
-      <cmis:description/>
-      <cmis:repositoryInfo/>
-    </cmis:repository_info>
+      <cmis:repositorySpecificInfo/>
+    </cmis:repositoryInfo>
 
      
     <collection cmis:collectionType="root" href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children"> 
@@ -86,7 +93,8 @@ content-type: application/atom+xml;charset=UTF-8
 </service>
  • [RFC2616] Section 13.3.4 No ETag: header was sent with the response.
  • [RFC2616] Section 13.3.4 No Last-Modified: header was sent with the response.
  • -
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0
  • +
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0 +line 2, column 0: Use of unknown namespace: http://www.alfresco.org
  • line 4, column 4: atom_title should contain a xml:lang element (4 occurrences)
  • Basic Entry Manipulation

    Add and remove three entries to the collection

    @@ -107,110 +115,196 @@ transfer-encoding: chunked server: Apache-Coyote/1.1 pragma: no-cache cache-control: no-cache -date: Mon, 12 May 2008 14:38:50 GMT +date: Thu, 22 May 2008 12:30:09 GMT content-type: application/atom+xml;type=feed;charset=UTF-8
    -
    <?xml version="1.0" ?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.cmis.org/CMIS/1.0">
    -  <generator version="3.0.0 (dev @build-number@)">Alfresco (Community Network)</generator>
    -  <title>Company Home</title> 
    -  <updated>2008-04-24T18:33:35.511+01:00</updated>
    -  <icon>http://localhost:8080/alfresco/images/logo/AlfrescoLogo16.ico</icon>
    -  <author> 
    -    <name>System</name>
    -  </author> 
    -  <id>urn:uuid:6413e19d-1224-11dd-bee8-852083ea779d</id>
    -  <link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self" type="application/atom+xml;type=feed"/>
    -
    -  <link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children?skipCount=0&amp;guest=" rel="first" type="application/atom+xml;type=feed"/>
    -  
    -  <entry>
    -    <title>Data Dictionary</title>
    -    <link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/642ce7e4-1224-11dd-bee8-852083ea779d" rel="alternate"/>
    -    <icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</icon>       
    -    <id>urn:uuid:642ce7e4-1224-11dd-bee8-852083ea779d</id>
    -    <updated>2008-04-24T18:33:35.708+01:00</updated>
    -    <published>2008-04-24T18:32:20.013+01:00</published>
    -    <summary>User managed definitions</summary>
    -    <author> 
    -      <name>System</name>
    -    </author> 
    -    <alf:noderef>workspace://SpacesStore/642ce7e4-1224-11dd-bee8-852083ea779d</alf:noderef>
    -  </entry>
    -  <entry>
    -    <title>Guest Home</title>
    -    <link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/648715e5-1224-11dd-bee8-852083ea779d" rel="alternate"/>
    -    <icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</icon>       
    -    <id>urn:uuid:648715e5-1224-11dd-bee8-852083ea779d</id>
    -    <updated>2008-04-24T18:33:36.941+01:00</updated>
    -    <published>2008-04-24T18:32:20.608+01:00</published>
    -    <summary>The guest root space</summary>
    -    <author> 
    -      <name>System</name>
    -    </author> 
    -    <alf:noderef>workspace://SpacesStore/648715e5-1224-11dd-bee8-852083ea779d</alf:noderef>
    -  </entry>
    -  <entry>
    -    <title>User Homes</title>
    -    <link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/64963118-1224-11dd-bee8-852083ea779d" rel="alternate"/>
    -    <icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</icon>       
    -    <id>urn:uuid:64963118-1224-11dd-bee8-852083ea779d</id>
    -    <updated>2008-04-24T18:33:37.110+01:00</updated>
    -    <published>2008-04-24T18:32:20.699+01:00</published>
    -    <summary>User Homes</summary>
    -    <author> 
    -      <name>System</name>
    -    </author> 
    -    <alf:noderef>workspace://SpacesStore/64963118-1224-11dd-bee8-852083ea779d</alf:noderef>
    -  </entry>
    -  <entry>
    -    <title>Projects</title>
    -    <link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/90df9f8b-1224-11dd-bee8-852083ea779d" rel="alternate"/>
    -    <icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</icon>       
    -    <id>urn:uuid:90df9f8b-1224-11dd-bee8-852083ea779d</id>
    -    <updated>2008-04-24T18:33:47.401+01:00</updated>
    -    <published>2008-04-24T18:33:35.091+01:00</published>
    -    <summary>Project Collaboration Spaces</summary>
    -    <author> 
    -      <name>System</name>
    -    </author> 
    -    <alf:noderef>workspace://SpacesStore/90df9f8b-1224-11dd-bee8-852083ea779d</alf:noderef>
    -  </entry>
    -  <entry>
    -    <title>Web Projects</title>
    -    <link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/a3beb60b-1224-11dd-bee8-852083ea779d" rel="alternate"/>
    -    <icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</icon>       
    -    <id>urn:uuid:a3beb60b-1224-11dd-bee8-852083ea779d</id>
    -    <updated>2008-04-24T18:34:06.711+01:00</updated>
    -    <published>2008-04-24T18:34:06.649+01:00</published>
    -    <summary>Web Content Management Spaces</summary>
    -    <author> 
    -      <name>System</name>
    -    </author> 
    -    <alf:noderef>workspace://SpacesStore/a3beb60b-1224-11dd-bee8-852083ea779d</alf:noderef>
    -  </entry>
    -
    +
    <?xml version="1.0" ?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.cmis.org/CMIS/1.0" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
    +<generator version="3.0.0 (dev @build-number@)">Alfresco (Community Network)</generator>
    +<title>Company Home</title> 
    +<updated>2008-05-22T13:25:10.795+01:00</updated>
    +<icon>http://localhost:8080/alfresco/images/logo/AlfrescoLogo16.ico</icon>
    +<author> 
    +  <name>System</name>
    +</author> 
    +<id>urn:uuid:f04d71b0-27f9-11dd-838c-77c853e41f74</id>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self" type="application/atom+xml;type=feed"/>
    +<opensearch:totalResults>5</opensearch:totalResults>
    +<opensearch:startIndex>0</opensearch:startIndex>
    +<opensearch:itemsPerPage>0</opensearch:itemsPerPage>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children?pageNo=1&amp;guest=&amp;format=atomfeed" rel="first" type="application/atom+xml;type=feed"/>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children?pageNo=1&amp;guest=&amp;format=atomfeed" rel="last" type="application/atom+xml;type=feed"/>
    +<entry>
    +<title>Data Dictionary</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f080ddc7-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f080ddc7-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:10.989+01:00</updated>
    +<published>2008-05-22T13:23:52.689+01:00</published>
    +<summary>User managed definitions</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f080ddc7-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f080ddc7-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Guest Home</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f0e8a058-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f0e8a058-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:12.602+01:00</updated>
    +<published>2008-05-22T13:23:53.344+01:00</published>
    +<summary>The guest root space</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f0e8a058-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f0e8a058-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>User Homes</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f0f8f40b-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f0f8f40b-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:12.773+01:00</updated>
    +<published>2008-05-22T13:23:53.457+01:00</published>
    +<summary>User Homes</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f0f8f40b-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f0f8f40b-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Projects</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/1c33155e-27fa-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:1c33155e-27fa-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:23.035+01:00</updated>
    +<published>2008-05-22T13:25:06.073+01:00</published>
    +<summary>Project Collaboration Spaces</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/1c33155e-27fa-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>1c33155e-27fa-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Web Projects</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/b339589e-27fa-11dd-aace-855fa603cfb1" rel="alternate"/>
    +<id>urn:uuid:b339589e-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:29:19.568+01:00</updated>
    +<published>2008-05-22T13:29:19.393+01:00</published>
    +<summary>Web Content Management Spaces</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/b339589e-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>b339589e-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
     </feed>
  • [RFC2616] Section 13.3.4 No ETag: header was sent with the response.
  • [RFC2616] Section 13.3.4 No Last-Modified: header was sent with the response.
  • -
  • [RFC4287] line 18, column 4: Undefined entry element: icon (5 occurrences)
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0 line 2, column 0: Use of unknown namespace: http://www.alfresco.org -line 11, column 145: "self" link references a non-Atom representation
  • -
  • line 4, column 2: title should contain a xml:lang element (6 occurrences) -line 22, column 4: summary should contain a xml:lang element (5 occurrences)
  • +line 11, column 143: "self" link references a non-Atom representation +line 40, column 84: Unregistered link relationship (30 occurrences) +
  • line 4, column 0: title should contain a xml:lang element (6 occurrences) +line 23, column 0: summary should contain a xml:lang element (5 occurrences)
  • Create new entry #1
  • Request
    
     POST http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children
     content-type: application/atom+xml
    -slug: ddabfdegge
    +slug: bihjefehka
     
     
     
    <?xml version="1.0" ?><entry xmlns="http://www.w3.org/2005/Atom">
     <title>Iñtërnâtiônàlizætiøn - 1</title>
    -<id>tag:bitworking.org,2008-02-26:1210603130.5665419</id>
    +<id>tag:bitworking.org,2008-02-26:1211459409.3166161</id>
     <updated>2005-07-10T12:29:29Z</updated>
     <author>
     <name>Joe Gregorio</name>
    @@ -223,12 +317,720 @@ slug: ddabfdegge
     </entry>
  • Response
    
     
    +status: 201
    +transfer-encoding: chunked
    +server: Apache-Coyote/1.1
    +location: http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1/properties
    +pragma: no-cache
    +cache-control: no-cache
    +date: Thu, 22 May 2008 12:30:09 GMT
    +content-type: application/atom+xml;type=entry;charset=UTF-8
    +
    +
    +
    +
    <?xml version="1.0" ?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.cmis.org/CMIS/1.0">
    +<title>bihjefehka</title>
    +<id>urn:uuid:d134f96a-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:09.705+01:00</updated>
    +<published>2008-05-22T13:30:09.705+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d134f96a-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1/bihjefehka" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
  • +
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0 +line 2, column 0: Use of unknown namespace: http://www.alfresco.org +line 7, column 9: summary should not be blank +line 30, column 222: Unregistered link relationship (6 occurrences)
  • +
  • line 3, column 0: title should contain a xml:lang element +line 7, column 0: summary should contain a xml:lang element
  • +
  • [RFC5023] Section 9.2 Content-Location: not returned in response headers.
  • +
  • Request
    
    +GET http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1/properties
    +
    +
    +
    +
    +
  • +
  • Response
    
    +
    +status: 200
    +content-location: http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1/properties
    +transfer-encoding: chunked
    +server: Apache-Coyote/1.1
    +pragma: no-cache
    +cache-control: no-cache
    +date: Thu, 22 May 2008 12:30:09 GMT
    +content-type: application/atom+xml;type=entry;charset=UTF-8
    +
    +
    +
    +
    <?xml version="1.0" ?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.cmis.org/CMIS/1.0">
    +<title>bihjefehka</title>
    +<id>urn:uuid:d134f96a-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:09.798+01:00</updated>
    +<published>2008-05-22T13:30:09.705+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d134f96a-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1/properties" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1/bihjefehka" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
  • +
  • [RFC2616] Section 13.3.4 No ETag: header was sent with the response.
  • +
  • [RFC2616] Section 13.3.4 No Last-Modified: header was sent with the response.
  • +
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0 +line 2, column 0: Use of unknown namespace: http://www.alfresco.org +line 7, column 9: summary should not be blank +line 30, column 222: Unregistered link relationship (6 occurrences)
  • +
  • line 3, column 0: title should contain a xml:lang element +line 7, column 0: summary should contain a xml:lang element
  • +
  • Create new entry #2
  • +
  • Request
    
    +POST http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children
    +content-type: application/atom+xml
    +slug: ljlbjjhija
    +
    +
    +
    +
    <?xml version="1.0" ?><entry xmlns="http://www.w3.org/2005/Atom">
    +<title>Iñtërnâtiônàlizætiøn - 2</title>
    +<id>tag:bitworking.org,2008-02-26:1211459411.1896939</id>
    +<updated>2005-07-10T12:29:29Z</updated>
    +<author>
    +<name>Joe Gregorio</name>
    +</author>
    +<content type="xhtml">
    +<div xmlns="http://www.w3.org/1999/xhtml">
    +<p><i>A test of utf-8</i></p>
    +</div>
    +</content>
    +</entry>
  • +
  • Response
    
    +
    +status: 201
    +transfer-encoding: chunked
    +server: Apache-Coyote/1.1
    +location: http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/properties
    +pragma: no-cache
    +cache-control: no-cache
    +date: Thu, 22 May 2008 12:30:11 GMT
    +content-type: application/atom+xml;type=entry;charset=UTF-8
    +
    +
    +
    +
    <?xml version="1.0" ?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.cmis.org/CMIS/1.0">
    +<title>ljlbjjhija</title>
    +<id>urn:uuid:d22dd868-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:11.278+01:00</updated>
    +<published>2008-05-22T13:30:11.278+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d22dd868-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/ljlbjjhija" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
  • +
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0 +line 2, column 0: Use of unknown namespace: http://www.alfresco.org +line 7, column 9: summary should not be blank +line 30, column 222: Unregistered link relationship (6 occurrences)
  • +
  • line 3, column 0: title should contain a xml:lang element +line 7, column 0: summary should contain a xml:lang element
  • +
  • [RFC5023] Section 9.2 Content-Location: not returned in response headers.
  • +
  • Request
    
    +GET http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/properties
    +
    +
    +
    +
    +
  • +
  • Response
    
    +
    +status: 200
    +content-location: http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/properties
    +transfer-encoding: chunked
    +server: Apache-Coyote/1.1
    +pragma: no-cache
    +cache-control: no-cache
    +date: Thu, 22 May 2008 12:30:11 GMT
    +content-type: application/atom+xml;type=entry;charset=UTF-8
    +
    +
    +
    +
    <?xml version="1.0" ?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.cmis.org/CMIS/1.0">
    +<title>ljlbjjhija</title>
    +<id>urn:uuid:d22dd868-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:11.342+01:00</updated>
    +<published>2008-05-22T13:30:11.278+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d22dd868-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/properties" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/ljlbjjhija" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
  • +
  • [RFC2616] Section 13.3.4 No ETag: header was sent with the response.
  • +
  • [RFC2616] Section 13.3.4 No Last-Modified: header was sent with the response.
  • +
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0 +line 2, column 0: Use of unknown namespace: http://www.alfresco.org +line 7, column 9: summary should not be blank +line 30, column 222: Unregistered link relationship (6 occurrences)
  • +
  • line 3, column 0: title should contain a xml:lang element +line 7, column 0: summary should contain a xml:lang element
  • +
  • Create new entry #3
  • +
  • Request
    
    +POST http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children
    +content-type: application/atom+xml
    +slug: kkaejcfjdk
    +
    +
    +
    +
    <?xml version="1.0" ?><entry xmlns="http://www.w3.org/2005/Atom">
    +<title>Iñtërnâtiônàlizætiøn - 3</title>
    +<id>tag:bitworking.org,2008-02-26:1211459412.675024</id>
    +<updated>2005-07-10T12:29:29Z</updated>
    +<author>
    +<name>Joe Gregorio</name>
    +</author>
    +<content type="xhtml">
    +<div xmlns="http://www.w3.org/1999/xhtml">
    +<p><i>A test of utf-8</i></p>
    +</div>
    +</content>
    +</entry>
  • +
  • Response
    
    +
    +status: 201
    +transfer-encoding: chunked
    +server: Apache-Coyote/1.1
    +location: http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1/properties
    +pragma: no-cache
    +cache-control: no-cache
    +date: Thu, 22 May 2008 12:30:12 GMT
    +content-type: application/atom+xml;type=entry;charset=UTF-8
    +
    +
    +
    +
    <?xml version="1.0" ?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.cmis.org/CMIS/1.0">
    +<title>kkaejcfjdk</title>
    +<id>urn:uuid:d3109752-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:12.757+01:00</updated>
    +<published>2008-05-22T13:30:12.757+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d3109752-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1/kkaejcfjdk" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
  • +
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0 +line 2, column 0: Use of unknown namespace: http://www.alfresco.org +line 7, column 9: summary should not be blank +line 30, column 222: Unregistered link relationship (6 occurrences)
  • +
  • line 3, column 0: title should contain a xml:lang element +line 7, column 0: summary should contain a xml:lang element
  • +
  • [RFC5023] Section 9.2 Content-Location: not returned in response headers.
  • +
  • Request
    
    +GET http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1/properties
    +
    +
    +
    +
    +
  • +
  • Response
    
    +
    +status: 200
    +content-location: http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1/properties
    +transfer-encoding: chunked
    +server: Apache-Coyote/1.1
    +pragma: no-cache
    +cache-control: no-cache
    +date: Thu, 22 May 2008 12:30:12 GMT
    +content-type: application/atom+xml;type=entry;charset=UTF-8
    +
    +
    +
    +
    <?xml version="1.0" ?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.cmis.org/CMIS/1.0">
    +<title>kkaejcfjdk</title>
    +<id>urn:uuid:d3109752-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:12.807+01:00</updated>
    +<published>2008-05-22T13:30:12.757+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d3109752-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1/properties" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1/kkaejcfjdk" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
  • +
  • [RFC2616] Section 13.3.4 No ETag: header was sent with the response.
  • +
  • [RFC2616] Section 13.3.4 No Last-Modified: header was sent with the response.
  • +
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0 +line 2, column 0: Use of unknown namespace: http://www.alfresco.org +line 7, column 9: summary should not be blank +line 30, column 222: Unregistered link relationship (6 occurrences)
  • +
  • line 3, column 0: title should contain a xml:lang element +line 7, column 0: summary should contain a xml:lang element
  • +
  • Request
    
    +GET http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children
    +
    +
    +
    +
    +
  • +
  • Response
    
    +
    +status: 200
    +content-location: http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children
    +transfer-encoding: chunked
    +server: Apache-Coyote/1.1
    +pragma: no-cache
    +cache-control: no-cache
    +date: Thu, 22 May 2008 12:30:12 GMT
    +content-type: application/atom+xml;type=feed;charset=UTF-8
    +
    +
    +
    +
    <?xml version="1.0" ?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.cmis.org/CMIS/1.0" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
    +<generator version="3.0.0 (dev @build-number@)">Alfresco (Community Network)</generator>
    +<title>Company Home</title> 
    +<updated>2008-05-22T13:25:10.795+01:00</updated>
    +<icon>http://localhost:8080/alfresco/images/logo/AlfrescoLogo16.ico</icon>
    +<author> 
    +  <name>System</name>
    +</author> 
    +<id>urn:uuid:f04d71b0-27f9-11dd-838c-77c853e41f74</id>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self" type="application/atom+xml;type=feed"/>
    +<opensearch:totalResults>8</opensearch:totalResults>
    +<opensearch:startIndex>0</opensearch:startIndex>
    +<opensearch:itemsPerPage>0</opensearch:itemsPerPage>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children?pageNo=1&amp;guest=&amp;format=atomfeed" rel="first" type="application/atom+xml;type=feed"/>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children?pageNo=1&amp;guest=&amp;format=atomfeed" rel="last" type="application/atom+xml;type=feed"/>
    +<entry>
    +<title>Data Dictionary</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f080ddc7-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f080ddc7-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:10.989+01:00</updated>
    +<published>2008-05-22T13:23:52.689+01:00</published>
    +<summary>User managed definitions</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f080ddc7-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f080ddc7-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Guest Home</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f0e8a058-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f0e8a058-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:12.602+01:00</updated>
    +<published>2008-05-22T13:23:53.344+01:00</published>
    +<summary>The guest root space</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f0e8a058-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f0e8a058-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>User Homes</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f0f8f40b-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f0f8f40b-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:12.773+01:00</updated>
    +<published>2008-05-22T13:23:53.457+01:00</published>
    +<summary>User Homes</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f0f8f40b-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f0f8f40b-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Projects</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/1c33155e-27fa-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:1c33155e-27fa-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:23.035+01:00</updated>
    +<published>2008-05-22T13:25:06.073+01:00</published>
    +<summary>Project Collaboration Spaces</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/1c33155e-27fa-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>1c33155e-27fa-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Web Projects</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/b339589e-27fa-11dd-aace-855fa603cfb1" rel="alternate"/>
    +<id>urn:uuid:b339589e-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:29:19.568+01:00</updated>
    +<published>2008-05-22T13:29:19.393+01:00</published>
    +<summary>Web Content Management Spaces</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/b339589e-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>b339589e-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>bihjefehka</title>
    +<id>urn:uuid:d134f96a-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:09.798+01:00</updated>
    +<published>2008-05-22T13:30:09.705+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d134f96a-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1/bihjefehka" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
    +<entry>
    +<title>ljlbjjhija</title>
    +<id>urn:uuid:d22dd868-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:11.342+01:00</updated>
    +<published>2008-05-22T13:30:11.278+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d22dd868-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/ljlbjjhija" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
    +<entry>
    +<title>kkaejcfjdk</title>
    +<id>urn:uuid:d3109752-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:12.807+01:00</updated>
    +<published>2008-05-22T13:30:12.757+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d3109752-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1/kkaejcfjdk" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
    +</feed>
  • +
  • [RFC2616] Section 13.3.4 No ETag: header was sent with the response.
  • +
  • [RFC2616] Section 13.3.4 No Last-Modified: header was sent with the response.
  • +
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0 +line 2, column 0: Use of unknown namespace: http://www.alfresco.org +line 11, column 143: "self" link references a non-Atom representation +line 40, column 84: Unregistered link relationship (48 occurrences) +line 172, column 9: summary should not be blank (3 occurrences)
  • +
  • line 4, column 0: title should contain a xml:lang element (9 occurrences) +line 23, column 0: summary should contain a xml:lang element (8 occurrences)
  • +
  • Check order of entries in the collection document
  • +
  • [RFC5023] Section 10 Failed to preserve order of entries, was expecting urn:uuid:d3109752-27fa-11dd-aace-855fa603cfb1, but found urn:uuid:d134f96a-27fa-11dd-aace-855fa603cfb1
  • +
  • Slug was honored
  • +
  • [RFC5023] Section 9.1 Member Entry did not contain an atom:link element with a relation of 'edit'
  • +
  • Update entry #2 and write back to the collection
  • +
  • Request
    
    +PUT http://localhost:8080/alfresco/service/api/node/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/properties
    +
    +
    +
    +
    +
  • +
  • Response
    
    +
     status: 405
     transfer-encoding: chunked
     server: Apache-Coyote/1.1
     pragma: no-cache
     cache-control: no-cache
    -date: Mon, 12 May 2008 14:38:50 GMT
    +date: Thu, 22 May 2008 12:30:12 GMT
     content-type: text/html;charset=UTF-8
     
     
    @@ -248,15 +1050,15 @@ content-type: text/html;charset=UTF-8
           </table>
           <br/>
           <table>
    -         <tr><td>The Web Script <a href="/alfresco/service/api/path/workspace/SpacesStore//children">/alfresco/service/api/path/workspace/SpacesStore//children</a> has responded with a status of 405 - Method Not Allowed.</td></tr>
    +         <tr><td>The Web Script <a href="/alfresco/service/api/node/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/properties">/alfresco/service/api/node/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/properties</a> has responded with a status of 405 - Method Not Allowed.</td></tr>
           </table>
           <br/>
           <table>
              <tr><td><b>405 Description:</b></td><td> The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.</td></tr>
              <tr><td>&nbsp;</td></tr>
    -         <tr><td><b>Message:</b></td><td>Script url /api/path/workspace/SpacesStore//children does not support the method POST</td></tr>
    +         <tr><td><b>Message:</b></td><td>Script url /api/node/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/properties does not support the method PUT</td></tr>
              <tr><td></td><td>&nbsp;</td></tr>
    -   <tr><td><b>Exception:</b></td><td>org.alfresco.web.scripts.WebScriptException - Script url /api/path/workspace/SpacesStore//children does not support the method POST</td></tr>
    +   <tr><td><b>Exception:</b></td><td>org.alfresco.web.scripts.WebScriptException - Script url /api/node/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/properties does not support the method PUT</td></tr>
        <tr><td></td><td>&nbsp;</td></tr>
              <tr><td></td><td>org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:113)</td></tr>
              <tr><td></td><td>org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:116)</td></tr>
    @@ -280,14 +1082,633 @@ content-type: text/html;charset=UTF-8
              <tr><td></td><td>java.lang.Thread.run(Thread.java:613)</td></tr>
        <tr><td></td><td>&nbsp;</td></tr>
              <tr><td><b>Server</b>:</td><td>Alfresco Community Network v3.0.0 (dev @build-number@) schema 124</td></tr>
    -         <tr><td><b>Time</b>:</td><td>May 12, 2008 3:38:50 PM</td></tr>
    +         <tr><td><b>Time</b>:</td><td>May 22, 2008 1:30:13 PM</td></tr>
              <tr><td></td><td>&nbsp;</td></tr>
           </table>
        </body>
     </html>
     
     
  • -
  • [RFC5023] Section 9.2 Entry creation failed with status: 405 Method Not Allowed
  • +
  • [RFC2616] Section 9.6 Failed to accept updated Entry #2
  • +
  • Check order of entries in the collection document
  • +
  • Request
    
    +GET http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children
    +
    +
    +
    +
    +
  • +
  • Response
    
    +
    +status: 200
    +content-location: http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children
    +transfer-encoding: chunked
    +server: Apache-Coyote/1.1
    +pragma: no-cache
    +cache-control: no-cache
    +date: Thu, 22 May 2008 12:30:12 GMT
    +content-type: application/atom+xml;type=feed;charset=UTF-8
    +
    +
    +
    +
    <?xml version="1.0" ?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.cmis.org/CMIS/1.0" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
    +<generator version="3.0.0 (dev @build-number@)">Alfresco (Community Network)</generator>
    +<title>Company Home</title> 
    +<updated>2008-05-22T13:25:10.795+01:00</updated>
    +<icon>http://localhost:8080/alfresco/images/logo/AlfrescoLogo16.ico</icon>
    +<author> 
    +  <name>System</name>
    +</author> 
    +<id>urn:uuid:f04d71b0-27f9-11dd-838c-77c853e41f74</id>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self" type="application/atom+xml;type=feed"/>
    +<opensearch:totalResults>8</opensearch:totalResults>
    +<opensearch:startIndex>0</opensearch:startIndex>
    +<opensearch:itemsPerPage>0</opensearch:itemsPerPage>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children?pageNo=1&amp;guest=&amp;format=atomfeed" rel="first" type="application/atom+xml;type=feed"/>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children?pageNo=1&amp;guest=&amp;format=atomfeed" rel="last" type="application/atom+xml;type=feed"/>
    +<entry>
    +<title>Data Dictionary</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f080ddc7-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f080ddc7-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:10.989+01:00</updated>
    +<published>2008-05-22T13:23:52.689+01:00</published>
    +<summary>User managed definitions</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f080ddc7-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f080ddc7-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Guest Home</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f0e8a058-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f0e8a058-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:12.602+01:00</updated>
    +<published>2008-05-22T13:23:53.344+01:00</published>
    +<summary>The guest root space</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f0e8a058-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f0e8a058-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>User Homes</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f0f8f40b-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f0f8f40b-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:12.773+01:00</updated>
    +<published>2008-05-22T13:23:53.457+01:00</published>
    +<summary>User Homes</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f0f8f40b-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f0f8f40b-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Projects</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/1c33155e-27fa-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:1c33155e-27fa-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:23.035+01:00</updated>
    +<published>2008-05-22T13:25:06.073+01:00</published>
    +<summary>Project Collaboration Spaces</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/1c33155e-27fa-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>1c33155e-27fa-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Web Projects</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/b339589e-27fa-11dd-aace-855fa603cfb1" rel="alternate"/>
    +<id>urn:uuid:b339589e-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:29:19.568+01:00</updated>
    +<published>2008-05-22T13:29:19.393+01:00</published>
    +<summary>Web Content Management Spaces</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/b339589e-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>b339589e-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>bihjefehka</title>
    +<id>urn:uuid:d134f96a-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:09.798+01:00</updated>
    +<published>2008-05-22T13:30:09.705+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d134f96a-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1/bihjefehka" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
    +<entry>
    +<title>ljlbjjhija</title>
    +<id>urn:uuid:d22dd868-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:11.342+01:00</updated>
    +<published>2008-05-22T13:30:11.278+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d22dd868-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/ljlbjjhija" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
    +<entry>
    +<title>kkaejcfjdk</title>
    +<id>urn:uuid:d3109752-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:12.807+01:00</updated>
    +<published>2008-05-22T13:30:12.757+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d3109752-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1/kkaejcfjdk" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
    +</feed>
  • +
  • [RFC2616] Section 13.3.4 No ETag: header was sent with the response.
  • +
  • [RFC2616] Section 13.3.4 No Last-Modified: header was sent with the response.
  • +
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0 +line 2, column 0: Use of unknown namespace: http://www.alfresco.org +line 11, column 143: "self" link references a non-Atom representation +line 40, column 84: Unregistered link relationship (48 occurrences) +line 172, column 9: summary should not be blank (3 occurrences)
  • +
  • line 4, column 0: title should contain a xml:lang element (9 occurrences) +line 23, column 0: summary should contain a xml:lang element (8 occurrences)
  • +
  • [RFC5023] Section 10 Failed to preserve order of entries, was expecting urn:uuid:d22dd868-27fa-11dd-aace-855fa603cfb1, but found urn:uuid:d134f96a-27fa-11dd-aace-855fa603cfb1
  • +
  • Request
    
    +GET http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children
    +
    +
    +
    +
    +
  • +
  • Response
    
    +
    +status: 200
    +content-location: http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children
    +transfer-encoding: chunked
    +server: Apache-Coyote/1.1
    +pragma: no-cache
    +cache-control: no-cache
    +date: Thu, 22 May 2008 12:30:13 GMT
    +content-type: application/atom+xml;type=feed;charset=UTF-8
    +
    +
    +
    +
    <?xml version="1.0" ?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:alf="http://www.alfresco.org" xmlns:cmis="http://www.cmis.org/CMIS/1.0" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
    +<generator version="3.0.0 (dev @build-number@)">Alfresco (Community Network)</generator>
    +<title>Company Home</title> 
    +<updated>2008-05-22T13:25:10.795+01:00</updated>
    +<icon>http://localhost:8080/alfresco/images/logo/AlfrescoLogo16.ico</icon>
    +<author> 
    +  <name>System</name>
    +</author> 
    +<id>urn:uuid:f04d71b0-27f9-11dd-838c-77c853e41f74</id>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self" type="application/atom+xml;type=feed"/>
    +<opensearch:totalResults>8</opensearch:totalResults>
    +<opensearch:startIndex>0</opensearch:startIndex>
    +<opensearch:itemsPerPage>0</opensearch:itemsPerPage>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children?pageNo=1&amp;guest=&amp;format=atomfeed" rel="first" type="application/atom+xml;type=feed"/>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children?pageNo=1&amp;guest=&amp;format=atomfeed" rel="last" type="application/atom+xml;type=feed"/>
    +<entry>
    +<title>Data Dictionary</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f080ddc7-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f080ddc7-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:10.989+01:00</updated>
    +<published>2008-05-22T13:23:52.689+01:00</published>
    +<summary>User managed definitions</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f080ddc7-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f080ddc7-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Guest Home</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f0e8a058-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f0e8a058-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:12.602+01:00</updated>
    +<published>2008-05-22T13:23:53.344+01:00</published>
    +<summary>The guest root space</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f0e8a058-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f0e8a058-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>User Homes</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/f0f8f40b-27f9-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:f0f8f40b-27f9-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:12.773+01:00</updated>
    +<published>2008-05-22T13:23:53.457+01:00</published>
    +<summary>User Homes</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/f0f8f40b-27f9-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>f0f8f40b-27f9-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Projects</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/1c33155e-27fa-11dd-838c-77c853e41f74" rel="alternate"/>
    +<id>urn:uuid:1c33155e-27fa-11dd-838c-77c853e41f74</id>
    +<updated>2008-05-22T13:25:23.035+01:00</updated>
    +<published>2008-05-22T13:25:06.073+01:00</published>
    +<summary>Project Collaboration Spaces</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/1c33155e-27fa-11dd-838c-77c853e41f74</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>1c33155e-27fa-11dd-838c-77c853e41f74</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>Web Projects</title>
    +<link href="http://localhost:8080/alfresco/service/n/browse/workspace/SpacesStore/b339589e-27fa-11dd-aace-855fa603cfb1" rel="alternate"/>
    +<id>urn:uuid:b339589e-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:29:19.568+01:00</updated>
    +<published>2008-05-22T13:29:19.393+01:00</published>
    +<summary>Web Content Management Spaces</summary>
    +<author><name>System</name></author> 
    +<alf:noderef>workspace://SpacesStore/b339589e-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/icons/space-icon-default-16.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>b339589e-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>folder</cmis:baseType>
    +  <cmis:uri>http://example.org/folders/myfolder</cmis:uri>  
    +  <cmis:objectType>folder</cmis:objectType>  
    +  <cmis:baseType>folder</cmis:baseType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate> 2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:name>Atom-powered folders</cmis:name>  
    +  <cmis:parent>folderIdp1</cmis:parent>   </cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://example.org/folders/myfolder?getfolderparent" rel="cmis-parent"/>  
    +<link href="http://example.org/folders/myfolder?getactions" rel="cmis-allowableactions"/>  
    +<link href="http://example.org/folders/myfolder?getrelationships" rel="cmis-relationships"/>  
    +<link href="http://example.org/folders/myfolder?getchildren" rel="cmis-children"/>  
    +<link href="http://example.org/folders/myfolder?getdescendants" rel="cmis-descendants"/>  
    +<link href="http://example.org/type1" rel="cmis-type"/>  
    +</entry>
    +<entry>
    +<title>bihjefehka</title>
    +<id>urn:uuid:d134f96a-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:09.798+01:00</updated>
    +<published>2008-05-22T13:30:09.705+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d134f96a-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d134f96a-27fa-11dd-aace-855fa603cfb1/bihjefehka" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
    +<entry>
    +<title>ljlbjjhija</title>
    +<id>urn:uuid:d22dd868-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:11.342+01:00</updated>
    +<published>2008-05-22T13:30:11.278+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d22dd868-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d22dd868-27fa-11dd-aace-855fa603cfb1/ljlbjjhija" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
    +<entry>
    +<title>kkaejcfjdk</title>
    +<id>urn:uuid:d3109752-27fa-11dd-aace-855fa603cfb1</id>
    +<updated>2008-05-22T13:30:12.807+01:00</updated>
    +<published>2008-05-22T13:30:12.757+01:00</published>
    +<summary/>
    +<author><name>admin</name></author> 
    +<alf:noderef>workspace://SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1</alf:noderef>
    +<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
    +<cmis:object>
    +  <cmis:object_id>d3109752-27fa-11dd-aace-855fa603cfb1</cmis:object_id>
    +  <cmis:baseType>document</cmis:baseType>
    +  <cmis:uri>http://example.org/atom03</cmis:uri>  
    +  <cmis:objectType>document</cmis:objectType>  
    +  <cmis:createdBy>Al Brown</cmis:createdBy>  
    +  <cmis:creationDate>2003-12-13T18:30:02Z</cmis:creationDate>  
    +  <cmis:lastModifiedBy>Al Brown</cmis:lastModifiedBy>  
    +  <cmis:lastModificationDate>2003-12-13T18:30:02Z</cmis:lastModificationDate>  
    +  <cmis:isCurrentVersion>true</cmis:isCurrentVersion>  
    +  <cmis:isCheckedOut>false</cmis:isCheckedOut>  
    +  <cmis:contentStreamLength>534</cmis:contentStreamLength>  
    +  <cmis:contentStreamMimetype>application/msword</cmis:contentStreamMimetype>  
    +  <cmis:contentStreamName>myDocument.doc</cmis:contentStreamName>  
    +  <cmis:contentStreamUri>http://example.org/media/atom03</cmis:contentStreamUri>  
    +  <cmis:keyword cmis:index="0">XML</cmis:keyword>  
    +  <cmis:keyword cmis:index="1">standards</cmis:keyword>  
    +</cmis:object>
    +<link href="http://localhost:8080/alfresco/service/api/path/workspace/SpacesStore//children" rel="self"/>
    +<link href="http://localhost:8080/alfresco/service/d/d/workspace/SpacesStore/d3109752-27fa-11dd-aace-855fa603cfb1/kkaejcfjdk" rel="alternate"/> <link href="http://example.org/atom03?getdocumentparents" rel="cmis-parents"/> 
    +<link href="http://example.org/atom03?getactions" rel="cmis-allowableactions"/> 
    +<link href="http://example.org/atom03?deleteallversion" rel="cmis-allversions"/> 
    +<link href="http://example.org/atom03?getrelationships" rel="cmis-relationships"/> 
    +<link href="http://example.org/type1" rel="cmis-type"/> 
    +<link href="http://example.org/media/atom03" rel="cmis-stream"/> 
    +</entry>
    +</feed>
  • +
  • [RFC2616] Section 13.3.4 No ETag: header was sent with the response.
  • +
  • [RFC2616] Section 13.3.4 No Last-Modified: header was sent with the response.
  • +
  • [RFC4287] line 2, column 0: Use of unknown namespace: http://www.cmis.org/CMIS/1.0 +line 2, column 0: Use of unknown namespace: http://www.alfresco.org +line 11, column 143: "self" link references a non-Atom representation +line 40, column 84: Unregistered link relationship (48 occurrences) +line 172, column 9: summary should not be blank (3 occurrences)
  • +
  • line 4, column 0: title should contain a xml:lang element (9 occurrences) +line 23, column 0: summary should contain a xml:lang element (8 occurrences)
  • +
  • Internal error occured while running tests: coercing to Unicode: need string or buffer, NoneType foundTraceback (most recent call last): + File "validator/appclienttest.py", line 420, in run + test_member_function() + File "validator/appclienttest.py", line 590, in testBasic_Entry_Manipulation + remove_entries_by_id(self.collection.iter(), ids) + File "validator/appclienttest.py", line 516, in remove_entries_by_id + idelement = e.etree().find("{%s}id" % atompubbase.model.ATOM) + File "/Users/dcaruana/Dev/projects/seamist/code/root/projects/remote-api/source/test/apptest/validator/atompubbase/model.py", line 453, in etree + self.get() + File "/Users/dcaruana/Dev/projects/seamist/code/root/projects/remote-api/source/test/apptest/validator/atompubbase/events.py", line 131, in wrapped + events.trigger("PRE", methodname, self, headers, body) + File "/Users/dcaruana/Dev/projects/seamist/code/root/projects/remote-api/source/test/apptest/validator/atompubbase/events.py", line 113, in trigger + cb(headers, body, method_filter) + File "validator/appclienttest.py", line 346, in log_request_response + request_line = method + u" " + uri +TypeError: coercing to Unicode: need string or buffer, NoneType found +
  • Didn't find any Media Collections that would accept GIF images
  • diff --git a/source/test/java/org/alfresco/repo/cmis/ws/AbstractServiceTest.java b/source/test/java/org/alfresco/repo/cmis/ws/AbstractServiceTest.java new file mode 100644 index 0000000000..f73bdc97d2 --- /dev/null +++ b/source/test/java/org/alfresco/repo/cmis/ws/AbstractServiceTest.java @@ -0,0 +1,105 @@ +package org.alfresco.repo.cmis.ws; + + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +import javax.security.auth.callback.Callback; +import javax.security.auth.callback.CallbackHandler; +import javax.security.auth.callback.UnsupportedCallbackException; + +import junit.framework.TestCase; + +import org.alfresco.repo.security.authentication.AuthenticationComponent; +import org.alfresco.service.ServiceRegistry; +import org.alfresco.service.cmr.repository.NodeRef; +import org.alfresco.service.cmr.repository.StoreRef; +import org.alfresco.service.cmr.search.ResultSet; +import org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor; +import org.apache.cxf.endpoint.Client; +import org.apache.cxf.frontend.ClientProxy; +import org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor; +import org.apache.ws.security.WSConstants; +import org.apache.ws.security.WSPasswordCallback; +import org.apache.ws.security.handler.WSHandlerConstants; +import org.springframework.context.support.FileSystemXmlApplicationContext; + +/** + * @author Michael Shavnev + */ +public abstract class AbstractServiceTest extends TestCase +{ + protected ServiceRegistry serviceRegistry; + protected static NodeRef ALFRESCO_TUTORIAL_NODE_REF = null; + protected static NodeRef COMPANY_HOME_NODE_REF = null; + + protected static FileSystemXmlApplicationContext fContext = null; + + protected Object servicePort = null; + + @Override + protected void setUp() throws Exception + { + super.setUp(); + if (fContext == null) + { + fContext = new FileSystemXmlApplicationContext("classpath:alfresco/application-context.xml"); + + AuthenticationComponent authenticationComponent = (AuthenticationComponent) fContext.getBean("authenticationComponent"); + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + serviceRegistry = (ServiceRegistry) fContext.getBean(ServiceRegistry.SERVICE_REGISTRY); + ResultSet resultSet = serviceRegistry.getSearchService().query(new StoreRef("workspace://SpacesStore"), "lucene", "@cm\\:name:Alfresco-Tutorial.pdf"); + ALFRESCO_TUTORIAL_NODE_REF = resultSet.getNodeRef(0); + + resultSet = serviceRegistry.getSearchService().query(new StoreRef("workspace://SpacesStore"), "lucene", "@cm\\:name:Company Home"); + COMPANY_HOME_NODE_REF = resultSet.getNodeRef(0); + + authenticationComponent.clearCurrentSecurityContext(); + } + } + + + public AbstractServiceTest() + { + + servicePort = getServicePort(); + + Map wss4jOutInterceptorProp = new HashMap(); + wss4jOutInterceptorProp.put(WSHandlerConstants.ACTION, WSHandlerConstants.USERNAME_TOKEN + " " + WSHandlerConstants.TIMESTAMP); + + wss4jOutInterceptorProp.put(WSHandlerConstants.USER, getUserName()); + // outProps.setProperty(WSHandlerConstants.PASSWORD_TYPE, WSConstants.PW_TEXT); + wss4jOutInterceptorProp.put(WSHandlerConstants.PASSWORD_TYPE, WSConstants.PW_DIGEST); + + wss4jOutInterceptorProp.put(WSHandlerConstants.PW_CALLBACK_REF, new CallbackHandler() + { + public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException + { + WSPasswordCallback pc = (WSPasswordCallback) callbacks[0]; + pc.setPassword(getPassword()); + } + }); + + WSS4JOutInterceptor wss4jOutInterceptor = new WSS4JOutInterceptor(wss4jOutInterceptorProp); + + Client client = ClientProxy.getClient(servicePort); + client.getEndpoint().getOutInterceptors().add(new SAAJOutInterceptor()); + client.getEndpoint().getOutInterceptors().add(wss4jOutInterceptor); + } + + protected abstract Object getServicePort(); + + protected String getUserName() + { + return "admin"; + } + + protected String getPassword() + { + return "admin"; + } + + +} diff --git a/source/test/java/org/alfresco/repo/cmis/ws/BaseServicePortContentTest.java b/source/test/java/org/alfresco/repo/cmis/ws/BaseServicePortContentTest.java new file mode 100644 index 0000000000..9718534588 --- /dev/null +++ b/source/test/java/org/alfresco/repo/cmis/ws/BaseServicePortContentTest.java @@ -0,0 +1,144 @@ +package org.alfresco.repo.cmis.ws; + + +import java.io.InputStream; +import java.io.Serializable; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; + +import org.alfresco.model.ContentModel; +import org.alfresco.repo.action.executer.ImporterActionExecuter; +import org.alfresco.repo.content.MimetypeMap; +import org.alfresco.repo.version.VersionModel; +import org.alfresco.service.cmr.action.Action; +import org.alfresco.service.cmr.action.ActionService; +import org.alfresco.service.cmr.coci.CheckOutCheckInService; +import org.alfresco.service.cmr.model.FileFolderService; +import org.alfresco.service.cmr.repository.AssociationRef; +import org.alfresco.service.cmr.repository.ContentService; +import org.alfresco.service.cmr.repository.ContentWriter; +import org.alfresco.service.cmr.repository.NodeRef; +import org.alfresco.service.cmr.version.Version; +import org.alfresco.service.cmr.version.VersionService; +import org.alfresco.service.cmr.version.VersionType; +import org.alfresco.service.namespace.NamespaceService; +import org.alfresco.service.namespace.QName; + +/** + * Base class for all CMIS content tests + * + * @author Dmitry Lazurkin + * + */ +public class BaseServicePortContentTest extends BaseServicePortTest +{ + protected CheckOutCheckInService checkOutCheckInService; + + private static final String IMPORT = "import-for-cmis-ws-test.acp"; + + protected static final String L0_FILE_0 = "L0-File-0"; + protected static final String L0_FILE_1 = "L0-File-1"; + protected static final String L0_FILE_2 = "L0-File-2"; + protected static final String L1_FILE_0 = "L1-File-0"; + protected static final String L1_FILE_1 = "L1-File-1"; + protected static final String L1_FILE_VERSIONABLE = "L1-File-Versionable"; + protected static final String L0_FOLDER_0 = "L0-Folder-0"; + protected static final String L0_FOLDER_1 = "L0-Folder-1"; + protected static final String L0_FOLDER_2 = "L0-Folder-2"; + protected static final String L1_FOLDER_0 = "L1-Folder-0"; + protected static final String L1_FOLDER_1 = "L1-Folder-1"; + + protected NodeRef L0_FILE_0_NODEREF; + protected NodeRef L0_FILE_1_NODEREF; + protected NodeRef L0_FILE_2_NODEREF; + protected NodeRef L1_FILE_0_NODEREF; + protected NodeRef L1_FILE_1_NODEREF; + protected NodeRef L0_FOLDER_0_NODEREF; + protected NodeRef L0_FOLDER_1_NODEREF; + protected NodeRef L0_FOLDER_2_NODEREF; + protected NodeRef L1_FOLDER_0_NODEREF; + protected NodeRef L1_FOLDER_1_NODEREF; + protected NodeRef L0_NONEXISTENT_NODEREF; + + protected NodeRef L1_FILE_VERSION_2_1_NODEREF; + protected NodeRef L1_FILE_VERSION_2_0_NODEREF; + protected NodeRef L1_FILE_VERSION_1_0_NODEREF; + + protected AssociationRef L0_FILE_1_TO_L0_FILE_0_ASSOCREF; + protected AssociationRef NONEXISTENT_ASSOCREF; + + @Override + protected void onSetUp() throws Exception + { + super.onSetUp(); + + checkOutCheckInService = serviceRegistry.getCheckOutCheckInService(); + + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + InputStream is = getClass().getClassLoader().getResourceAsStream(IMPORT); + if (is == null) + { + throw new NullPointerException("Test resource not found: " + IMPORT); + } + + NodeRef importForTest = nodeService.createNode(rootNodeRef, ContentModel.ASSOC_CONTAINS, QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "import-for-test.acp"), ContentModel.TYPE_CONTENT).getChildRef(); + ContentService contentService = serviceRegistry.getContentService(); + ContentWriter writer = contentService.getWriter(importForTest, ContentModel.PROP_CONTENT, true); + writer.setMimetype(MimetypeMap.MIMETYPE_ACP); + writer.setEncoding("UTF-8"); + writer.putContent(is); + + Map params = new HashMap(2, 1.0f); + params.put(ImporterActionExecuter.PARAM_DESTINATION_FOLDER, rootNodeRef); + params.put(ImporterActionExecuter.PARAM_ENCODING, "UTF-8"); + + ActionService actionService = serviceRegistry.getActionService(); + Action action = actionService.createAction(ImporterActionExecuter.NAME, params); + action.setExecuteAsynchronously(false); + + actionService.executeAction(action, importForTest); + + nodeService.deleteNode(importForTest); + + FileFolderService fileFolderService = serviceRegistry.getFileFolderService(); + VersionService versionService = serviceRegistry.getVersionService(); + + L0_FILE_0_NODEREF = fileFolderService.resolveNamePath(rootNodeRef, Collections.singletonList(L0_FILE_0)).getNodeRef(); + L0_FILE_1_NODEREF = fileFolderService.resolveNamePath(rootNodeRef, Collections.singletonList(L0_FILE_1)).getNodeRef(); + L0_FILE_2_NODEREF = fileFolderService.resolveNamePath(rootNodeRef, Collections.singletonList(L0_FILE_2)).getNodeRef(); + L0_FOLDER_0_NODEREF = fileFolderService.resolveNamePath(rootNodeRef, Collections.singletonList(L0_FOLDER_0)).getNodeRef(); + L0_FOLDER_1_NODEREF = fileFolderService.resolveNamePath(rootNodeRef, Collections.singletonList(L0_FOLDER_1)).getNodeRef(); + L0_FOLDER_2_NODEREF = fileFolderService.resolveNamePath(rootNodeRef, Collections.singletonList(L0_FOLDER_2)).getNodeRef(); + L1_FILE_0_NODEREF = fileFolderService.resolveNamePath(L0_FOLDER_0_NODEREF, Collections.singletonList(L1_FILE_0)).getNodeRef(); + L1_FILE_1_NODEREF = fileFolderService.resolveNamePath(L0_FOLDER_1_NODEREF, Collections.singletonList(L1_FILE_1)).getNodeRef(); + + L1_FILE_VERSION_2_1_NODEREF = fileFolderService.resolveNamePath(L0_FOLDER_2_NODEREF, Collections.singletonList(L1_FILE_VERSIONABLE)).getNodeRef(); + nodeService.addAspect(L1_FILE_VERSION_2_1_NODEREF, ContentModel.ASPECT_VERSIONABLE, Collections.singletonMap(ContentModel.PROP_AUTO_VERSION, (Serializable) Boolean.FALSE)); + contentService.getWriter(L1_FILE_VERSION_2_1_NODEREF, ContentModel.PROP_CONTENT, true).putContent("1.0"); + L1_FILE_VERSION_1_0_NODEREF = versionService.createVersion(L1_FILE_VERSION_2_1_NODEREF, createVersionProps("1.0", VersionType.MAJOR)).getFrozenStateNodeRef(); + contentService.getWriter(L1_FILE_VERSION_2_1_NODEREF, ContentModel.PROP_CONTENT, true).putContent("2.0"); + L1_FILE_VERSION_2_0_NODEREF = versionService.createVersion(L1_FILE_VERSION_2_1_NODEREF, createVersionProps("2.0", VersionType.MAJOR)).getFrozenStateNodeRef(); + contentService.getWriter(L1_FILE_VERSION_2_1_NODEREF, ContentModel.PROP_CONTENT, true).putContent("2.1"); + versionService.createVersion(L1_FILE_VERSION_2_1_NODEREF, createVersionProps("2.1", VersionType.MINOR)); + + L1_FOLDER_0_NODEREF = fileFolderService.resolveNamePath(L0_FOLDER_0_NODEREF, Collections.singletonList(L1_FOLDER_0)).getNodeRef(); + L1_FOLDER_1_NODEREF = fileFolderService.resolveNamePath(L0_FOLDER_0_NODEREF, Collections.singletonList(L1_FOLDER_1)).getNodeRef(); + L0_NONEXISTENT_NODEREF = importForTest; + + L0_FILE_1_TO_L0_FILE_0_ASSOCREF = nodeService.createAssociation(L0_FILE_1_NODEREF, L0_FILE_0_NODEREF, ContentModel.ASSOC_REFERENCES); + NONEXISTENT_ASSOCREF = new AssociationRef(L1_FILE_0_NODEREF, ContentModel.ASSOC_REFERENCES, L1_FILE_1_NODEREF); + + authenticationComponent.clearCurrentSecurityContext(); + } + + private Map createVersionProps(String comment, VersionType versionType) + { + Map props = new HashMap(1, 1.0f); + props.put(Version.PROP_DESCRIPTION, comment); + props.put(VersionModel.PROP_VERSION_TYPE, versionType); + return props; + } + +} diff --git a/source/test/java/org/alfresco/repo/cmis/ws/BaseServicePortTest.java b/source/test/java/org/alfresco/repo/cmis/ws/BaseServicePortTest.java new file mode 100644 index 0000000000..916e40f884 --- /dev/null +++ b/source/test/java/org/alfresco/repo/cmis/ws/BaseServicePortTest.java @@ -0,0 +1,102 @@ +package org.alfresco.repo.cmis.ws; + + +import javax.transaction.UserTransaction; + +import org.alfresco.model.ContentModel; +import org.alfresco.repo.node.integrity.IntegrityChecker; +import org.alfresco.repo.security.authentication.AuthenticationComponent; +import org.alfresco.service.ServiceRegistry; +import org.alfresco.service.cmr.dictionary.DictionaryService; +import org.alfresco.service.cmr.repository.NodeRef; +import org.alfresco.service.cmr.repository.NodeService; +import org.alfresco.service.cmr.repository.StoreRef; +import org.alfresco.service.cmr.security.AuthenticationService; +import org.alfresco.service.namespace.NamespaceService; +import org.alfresco.service.namespace.QName; +import org.alfresco.service.transaction.TransactionService; +import org.springframework.test.AbstractDependencyInjectionSpringContextTests; + +/** + * Base class for all CMIS tests + * + * @author Dmitry Lazurkin + * + */ +public class BaseServicePortTest extends AbstractDependencyInjectionSpringContextTests +{ + protected AuthenticationService authenticationService; + protected TransactionService transactionService; + protected NodeService nodeService; + protected ServiceRegistry serviceRegistry; + protected DictionaryService dictionaryService; + + protected AuthenticationComponent authenticationComponent; + + private UserTransaction txn; + + protected NodeRef rootNodeRef; + + @Override + protected void onSetUp() throws Exception + { + super.onSetUp(); + + serviceRegistry = (ServiceRegistry) applicationContext.getBean(ServiceRegistry.SERVICE_REGISTRY); + + authenticationService = serviceRegistry.getAuthenticationService(); + transactionService = serviceRegistry.getTransactionService(); + nodeService = serviceRegistry.getNodeService(); + dictionaryService = serviceRegistry.getDictionaryService(); + + authenticationComponent = (AuthenticationComponent) applicationContext.getBean("authenticationComponent"); + + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + // start the transaction + txn = transactionService.getUserTransaction(); + txn.begin(); + + IntegrityChecker.setWarnInTransaction(); + + // authenticate + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + // create a test store if need + StoreRef storeRef = new StoreRef("workspace://CmisTestWorkspace"); + if (nodeService.exists(storeRef) == false) + { + storeRef = nodeService.createStore(StoreRef.PROTOCOL_WORKSPACE, "CmisTestWorkspace"); + } + NodeRef storeRootNodeRef = nodeService.getRootNode(storeRef); + + rootNodeRef = new NodeRef(storeRef, "alf:root_folder"); + if (nodeService.exists(rootNodeRef) == false) + { + rootNodeRef = nodeService.createNode(storeRootNodeRef, ContentModel.ASSOC_CHILDREN, QName.createQName(NamespaceService.ALFRESCO_URI, "root_folder"), + ContentModel.TYPE_FOLDER).getChildRef(); + } + + authenticationComponent.clearCurrentSecurityContext(); + } + + @Override + protected void onTearDown() throws Exception + { + try + { + txn.rollback(); + } + catch (Throwable e) + { + e.printStackTrace(); + } + } + + @Override + protected String[] getConfigLocations() + { + return new String[] { "classpath:alfresco/application-context.xml", "classpath:test-cmis-context.xml" }; + } + +} diff --git a/source/test/java/org/alfresco/repo/cmis/ws/DMNavigationServicePortTest.java b/source/test/java/org/alfresco/repo/cmis/ws/DMNavigationServicePortTest.java new file mode 100644 index 0000000000..e696f4dedd --- /dev/null +++ b/source/test/java/org/alfresco/repo/cmis/ws/DMNavigationServicePortTest.java @@ -0,0 +1,251 @@ +package org.alfresco.repo.cmis.ws; + + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; + +import org.alfresco.model.ContentModel; +import org.alfresco.repo.cmis.ws.OIDUtils; +import org.alfresco.service.cmr.repository.NodeRef; + +/** + * @see org.alfresco.cmis.ws.NavigationServicePortDM + * + * @author Dmitry Lazurkin + * + */ +public class DMNavigationServicePortTest extends BaseServicePortContentTest +{ + private NavigationServicePort navigationServicePort; + + @Override + protected void onSetUp() throws Exception + { + super.onSetUp(); + + navigationServicePort = (NavigationServicePort) applicationContext.getBean("dmNavigationService"); + } + + public void testGetChildrenFolders() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetChildren request = new GetChildren(); + request.setFolderId(OIDUtils.toOID(rootNodeRef)); + request.setType(TypesOfObjectsEnum.FOLDERS); + + GetChildrenResponse response = navigationServicePort.getChildren(request); + List listing = response.getDocumentAndFolderCollection().getObject(); + NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FOLDER_0_NODEREF, L0_FOLDER_1_NODEREF, L0_FOLDER_2_NODEREF }; + checkListExact(listing, 0, 3, expectedNodeRefs); + } + + public void testGetChildrenDocuments() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetChildren request = new GetChildren(); + request.setFolderId(OIDUtils.toOID(rootNodeRef)); + request.setType(TypesOfObjectsEnum.DOCUMENTS); + + GetChildrenResponse response = navigationServicePort.getChildren(request); + List listing = response.getDocumentAndFolderCollection().getObject(); + NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FILE_0_NODEREF, L0_FILE_1_NODEREF, L0_FILE_2_NODEREF }; + checkListExact(listing, 3, 0, expectedNodeRefs); + } + + public void testGetChildrenSkipCount() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetChildren request = new GetChildren(); + request.setSkipCount(BigInteger.valueOf(1)); + request.setFolderId(OIDUtils.toOID(rootNodeRef)); + request.setType(TypesOfObjectsEnum.FOLDERS_AND_DOCUMETS); + + GetChildrenResponse response = navigationServicePort.getChildren(request); + List listing = response.getDocumentAndFolderCollection().getObject(); + NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FOLDER_0_NODEREF, L0_FOLDER_1_NODEREF, L0_FOLDER_2_NODEREF, L0_FILE_0_NODEREF, L0_FILE_1_NODEREF, L0_FILE_2_NODEREF }; + checkList(listing, 5, 3, 3, expectedNodeRefs); + } + + public void testGetChildrenMaxItems() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetChildren request = new GetChildren(); + request.setMaxItems(BigInteger.valueOf(3)); + request.setFolderId(OIDUtils.toOID(rootNodeRef)); + request.setType(TypesOfObjectsEnum.FOLDERS_AND_DOCUMETS); + + GetChildrenResponse response = navigationServicePort.getChildren(request); + List listing = response.getDocumentAndFolderCollection().getObject(); + NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FOLDER_0_NODEREF, L0_FOLDER_1_NODEREF, L0_FOLDER_2_NODEREF, L0_FILE_0_NODEREF, L0_FILE_1_NODEREF, L0_FILE_2_NODEREF }; + checkList(listing, 3, 3, 3, expectedNodeRefs); + } + + public void testGetChildrenMaxItemsMore() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetChildren request = new GetChildren(); + request.setMaxItems(BigInteger.valueOf(10)); + request.setFolderId(OIDUtils.toOID(rootNodeRef)); + request.setType(TypesOfObjectsEnum.FOLDERS_AND_DOCUMETS); + + GetChildrenResponse response = navigationServicePort.getChildren(request); + List listing = response.getDocumentAndFolderCollection().getObject(); + NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FOLDER_0_NODEREF, L0_FOLDER_1_NODEREF, L0_FOLDER_2_NODEREF, L0_FILE_0_NODEREF, L0_FILE_1_NODEREF, L0_FILE_2_NODEREF }; + checkList(listing, 6, 3, 3, expectedNodeRefs); + } + + public void testGetChildrenSkipCountMore() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetChildren request = new GetChildren(); + request.setSkipCount(BigInteger.valueOf(10)); + request.setFolderId(OIDUtils.toOID(rootNodeRef)); + request.setType(TypesOfObjectsEnum.FOLDERS_AND_DOCUMETS); + + GetChildrenResponse response = navigationServicePort.getChildren(request); + List listing = response.getDocumentAndFolderCollection().getObject(); + NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FOLDER_0_NODEREF, L0_FOLDER_1_NODEREF, L0_FOLDER_2_NODEREF, L0_FILE_0_NODEREF, L0_FILE_1_NODEREF, L0_FILE_2_NODEREF }; + checkList(listing, 0, 3, 3, expectedNodeRefs); + } + + public void testGetChildrenMaxItemsSkipCount() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetChildren request = new GetChildren(); + request.setSkipCount(BigInteger.valueOf(5)); + request.setMaxItems(BigInteger.valueOf(4)); + request.setFolderId(OIDUtils.toOID(rootNodeRef)); + request.setType(TypesOfObjectsEnum.FOLDERS_AND_DOCUMETS); + + GetChildrenResponse response = navigationServicePort.getChildren(request); + List listing = response.getDocumentAndFolderCollection().getObject(); + NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FOLDER_0_NODEREF, L0_FOLDER_1_NODEREF, L0_FOLDER_2_NODEREF, L0_FILE_0_NODEREF, L0_FILE_1_NODEREF, L0_FILE_2_NODEREF }; + checkList(listing, 1, 3, 3, expectedNodeRefs); + } + + public void testGetChildrenMaxItemsZero() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetChildren request = new GetChildren(); + request.setMaxItems(BigInteger.valueOf(0)); + request.setFolderId(OIDUtils.toOID(rootNodeRef)); + request.setType(TypesOfObjectsEnum.FOLDERS_AND_DOCUMETS); + + GetChildrenResponse response = navigationServicePort.getChildren(request); + List listing = response.getDocumentAndFolderCollection().getObject(); + NodeRef[] expectedNodeRefs = new NodeRef[] { L0_FOLDER_0_NODEREF, L0_FOLDER_1_NODEREF, L0_FOLDER_2_NODEREF, L0_FILE_0_NODEREF, L0_FILE_1_NODEREF, L0_FILE_2_NODEREF }; + checkListExact(listing, 3, 3, expectedNodeRefs); + } + + public void testGetChildrenForDocument() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetChildren request = new GetChildren(); + request.setFolderId(OIDUtils.toOID(L0_FILE_0_NODEREF)); + request.setType(TypesOfObjectsEnum.FOLDERS); + + try + { + navigationServicePort.getChildren(request); + } + catch (FolderNotValidException e) + { + return; + } + + fail("Expects exception"); + } + + public void testGetChildrenForRelationship() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetChildren request = new GetChildren(); + request.setFolderId(OIDUtils.toOID(L0_FILE_1_TO_L0_FILE_0_ASSOCREF)); + request.setType(TypesOfObjectsEnum.FOLDERS); + + try + { + navigationServicePort.getChildren(request); + } + catch (FolderNotValidException e) + { + return; + } + + fail("Expects exception"); + } + + private void checkListExact(List objects, int expectedFileCount, int expectedFolderCount, NodeRef[] expectedNodeRefs) + { + int fileCount = 0; + int folderCount = 0; + List check = new ArrayList(8); + + for (NodeRef nodeRef : expectedNodeRefs) + { + check.add(nodeRef); + } + + for (DocumentOrFolderObjectType object : objects) + { + NodeRef nodeRef = OIDUtils.OIDtoNodeRef(object.getObjectID()); + if (dictionaryService.isSubClass(nodeService.getType(nodeRef), ContentModel.TYPE_FOLDER)) + { + folderCount++; + } + else + { + fileCount++; + } + + assertTrue(check.remove(nodeRef)); + } + + assertTrue("Name list was not exact - remaining: " + check, check.size() == 0); + assertEquals("Incorrect number of files", expectedFileCount, fileCount); + assertEquals("Incorrect number of folders", expectedFolderCount, folderCount); + } + + private void checkList(List objects, int expectedCount, int expectedMaxFileCount, int expectedMaxFolderCount, NodeRef[] expectedNodeRefs) + { + int fileCount = 0; + int folderCount = 0; + List check = new ArrayList(8); + + for (NodeRef nodeRef : expectedNodeRefs) + { + check.add(nodeRef); + } + + for (DocumentOrFolderObjectType object : objects) + { + NodeRef nodeRef = OIDUtils.OIDtoNodeRef(object.getObjectID()); + if (dictionaryService.isSubClass(nodeService.getType(nodeRef), ContentModel.TYPE_FOLDER)) + { + folderCount++; + } + else + { + fileCount++; + } + + assertTrue(check.remove(nodeRef)); + } + + assertTrue((fileCount + folderCount) == expectedCount); + assertTrue(fileCount <= expectedMaxFileCount); + assertTrue(folderCount <= expectedMaxFolderCount); + } + +} diff --git a/source/test/java/org/alfresco/repo/cmis/ws/DMObjectServicePortTest.java b/source/test/java/org/alfresco/repo/cmis/ws/DMObjectServicePortTest.java new file mode 100644 index 0000000000..3fd0669a4c --- /dev/null +++ b/source/test/java/org/alfresco/repo/cmis/ws/DMObjectServicePortTest.java @@ -0,0 +1,231 @@ +package org.alfresco.repo.cmis.ws; + + +import java.math.BigInteger; + +import org.alfresco.repo.cmis.ws.OIDUtils; +import org.alfresco.service.cmr.repository.NodeRef; + +/** + * @see org.alfresco.cmis.ws.ObjectServicePortDM + * + * @author Dmitry Lazurkin + * + */ +public class DMObjectServicePortTest extends BaseServicePortContentTest +{ + private ObjectServicePort objectServicePort; + + @Override + protected void onSetUp() throws Exception + { + super.onSetUp(); + + objectServicePort = (ObjectServicePort) applicationContext.getBean("dmObjectService"); + } + + public void testGetExistentFolderProperties() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetProperties request = new GetProperties(); + request.setObjectId(OIDUtils.toOID(L0_FOLDER_0_NODEREF)); + + GetPropertiesResponse response = objectServicePort.getProperties(request); + assertNotNull(response); + assertEquals(OIDUtils.toOID(rootNodeRef), response.getObject().getParent()); + assertEquals(L0_FOLDER_0, response.getObject().getName()); + } + + public void testGetExistentDocumentPropertiesThis() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetProperties request = new GetProperties(); + request.setObjectId(OIDUtils.toOID(L1_FILE_VERSION_1_0_NODEREF)); + + GetPropertiesResponse response = objectServicePort.getProperties(request); + assertNotNull(response); + assertEquals(response.getObject().getCheckinComment(), "1.0"); + assertEquals(response.getObject().isIsMajorVersion(), Boolean.TRUE); + assertEquals(response.getObject().isIsLatestMajorVersion(), Boolean.FALSE); + assertEquals(response.getObject().isIsLatestVersion(), Boolean.FALSE); + } + + public void testGetExistentDocumentPropertiesLatestMajor() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetProperties request = new GetProperties(); + request.setReturnVersion(VersionEnum.LATEST_MAJOR); + request.setObjectId(OIDUtils.toOID(L1_FILE_VERSION_1_0_NODEREF)); + + GetPropertiesResponse response = objectServicePort.getProperties(request); + assertNotNull(response); + assertEquals(response.getObject().getCheckinComment(), "2.0"); + assertEquals(response.getObject().isIsMajorVersion(), Boolean.TRUE); + assertEquals(response.getObject().isIsLatestMajorVersion(), Boolean.TRUE); + assertEquals(response.getObject().isIsLatestVersion(), Boolean.FALSE); + } + + public void testGetExistentDocumentPropertiesLatest() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetProperties request = new GetProperties(); + request.setReturnVersion(VersionEnum.LATEST); + request.setObjectId(OIDUtils.toOID(L1_FILE_VERSION_2_0_NODEREF)); + + GetPropertiesResponse response = objectServicePort.getProperties(request); + assertNotNull(response); + assertEquals(response.getObject().getCheckinComment(), "2.1"); + assertEquals(response.getObject().isIsMajorVersion(), Boolean.FALSE); + assertEquals(response.getObject().isIsLatestMajorVersion(), Boolean.FALSE); + assertEquals(response.getObject().isIsLatestVersion(), Boolean.TRUE); + } + + public void testGetExistentRelationshipProperties() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetProperties request = new GetProperties(); + request.setObjectId(OIDUtils.toOID(L0_FILE_1_TO_L0_FILE_0_ASSOCREF)); + + GetPropertiesResponse response = objectServicePort.getProperties(request); + assertNotNull(response); + assertEquals(OIDUtils.toOID(L0_FILE_1_TO_L0_FILE_0_ASSOCREF.getSourceRef()), response.getObject().getSourceOID()); + assertEquals(OIDUtils.toOID(L0_FILE_1_TO_L0_FILE_0_ASSOCREF.getTargetRef()), response.getObject().getTargetOID()); + fail("Not implement"); + } + + public void testGetNonExistentObjectProperties() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetProperties request = new GetProperties(); + request.setObjectId(OIDUtils.toOID(L0_NONEXISTENT_NODEREF)); + try + { + objectServicePort.getProperties(request); + } + catch (ObjectNotFoundException e) + { + return; + } + + fail("Expects exception"); + } + + public void testGetNonExistentRelationshipProperties() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetProperties request = new GetProperties(); + request.setObjectId(OIDUtils.toOID(NONEXISTENT_ASSOCREF)); + + try + { + objectServicePort.getProperties(request); + } + catch (ObjectNotFoundException e) + { + return; + } + + fail("Expects exception"); + } + + public void testGetPropertiesForInvalidOID() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetProperties request = new GetProperties(); + request.setObjectId("invalid OID"); + + try + { + objectServicePort.getProperties(request); + } + catch (InvalidArgumentException e) + { + return; + } + + fail("Expects exception"); + } + + public void testGetPropertiesCheckedout() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + NodeRef workingCopyNodeRef = checkOutCheckInService.checkout(L0_FILE_0_NODEREF); + + GetProperties request = new GetProperties(); + request.setObjectId(OIDUtils.toOID(L0_FILE_0_NODEREF)); + + GetPropertiesResponse response = objectServicePort.getProperties(request); + assertNotNull(response); + assertNull(response.getObject().getCheckinComment()); + assertTrue(response.getObject().isIsMajorVersion()); + assertTrue(response.getObject().isIsLatestMajorVersion()); + assertTrue(response.getObject().isIsLatestVersion()); + assertTrue(response.getObject().isVersionSeriesIsCheckedOut()); + assertEquals(response.getObject().getVersionSeriesCheckedOutBy(), authenticationComponent.getSystemUserName()); + assertEquals(response.getObject().getVersionSeriesCheckedOutOID(), OIDUtils.toOID(workingCopyNodeRef)); + + request = new GetProperties(); + request.setObjectId(OIDUtils.toOID(workingCopyNodeRef)); + + response = objectServicePort.getProperties(request); + assertNotNull(response); + assertNull(response.getObject().getCheckinComment()); + assertFalse(response.getObject().isIsMajorVersion()); + assertFalse(response.getObject().isIsLatestMajorVersion()); + assertFalse(response.getObject().isIsLatestVersion()); + assertTrue(response.getObject().isVersionSeriesIsCheckedOut()); + assertEquals(response.getObject().getVersionSeriesCheckedOutBy(), authenticationComponent.getSystemUserName()); + assertEquals(response.getObject().getVersionSeriesCheckedOutOID(), OIDUtils.toOID(workingCopyNodeRef)); + } + + public void testGetContentStream() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + String documentId = OIDUtils.toOID(L0_FILE_0_NODEREF); + for (int offset = 0; offset < 10; offset++) + { + for (int length = 0; length < 10; length++) + { + BigInteger offsetBig = new BigInteger(String.valueOf(offset)); + BigInteger lengthBig = new BigInteger(String.valueOf(length)); + + byte[] result = objectServicePort.getContentStream(documentId, offsetBig, lengthBig); + + assertNotNull(result); + if (result.length > length) + { + fail(); + } + } + + } + + byte[] result = objectServicePort.getContentStream(documentId, null, null); + assertNotNull(result); + + try + {result = objectServicePort.getContentStream("Invalid", null, null);} + catch (InvalidArgumentException e) {} + catch (Throwable e){fail();} + + try + {result = objectServicePort.getContentStream(documentId + "s", null, null);} + catch (ObjectNotFoundException e) {} + catch (Throwable e){fail();} + + try + {result = objectServicePort.getContentStream(OIDUtils.toOID(L0_FOLDER_0_NODEREF), null, null);} + catch (StreamNotSupportedException e) {} + catch (Throwable e){fail();} + + } +} diff --git a/source/test/java/org/alfresco/repo/cmis/ws/DMObjectServiceTest.java b/source/test/java/org/alfresco/repo/cmis/ws/DMObjectServiceTest.java new file mode 100644 index 0000000000..53e32e2349 --- /dev/null +++ b/source/test/java/org/alfresco/repo/cmis/ws/DMObjectServiceTest.java @@ -0,0 +1,104 @@ +package org.alfresco.repo.cmis.ws; + + +import java.math.BigInteger; +import java.net.MalformedURLException; +import java.net.URL; + +import javax.xml.namespace.QName; +import javax.xml.ws.Service; + +import org.alfresco.repo.cmis.ws.OIDUtils; + +public class DMObjectServiceTest extends AbstractServiceTest +{ + + public final static String SERVICE_WSDL_LOCATION = "http://localhost:8080/alfresco/cmis/ObjectService?wsdl"; + public final static QName SERVICE_NAME = new QName("http://www.cmis.org/ns/1.0", "ObjectService"); + + protected Object getServicePort() + { + URL serviceWsdlURL; + try + { + serviceWsdlURL = new URL(SERVICE_WSDL_LOCATION); + } + catch (MalformedURLException e) + { + throw new java.lang.RuntimeException("Cannot get service Wsdl URL", e); + } + Service service = Service.create(serviceWsdlURL, SERVICE_NAME); + return service.getPort(ObjectServicePort.class); + } + + public void testGetDocumentProperties() throws Exception + { + GetProperties request = new GetProperties(); + request.setObjectId(OIDUtils.toOID(ALFRESCO_TUTORIAL_NODE_REF)); + + GetPropertiesResponse response = ((ObjectServicePort) servicePort).getProperties(request); + assertNotNull(response); + } + + public void testGetPropertiesForInvalidOID() throws Exception + { + + GetProperties request = new GetProperties(); + request.setObjectId("invalid OID"); + + try + { + ((ObjectServicePort) servicePort).getProperties(request); + } + catch (InvalidArgumentException e) + { + return; + } + + fail("Expects exception"); + } + + + + public void testGetContentStream() throws Exception + { + String documentId = OIDUtils.toOID(ALFRESCO_TUTORIAL_NODE_REF); + + for (int offset = 0; offset < 10; offset++) + { + for (int length = 0; length < 10; length++) + { + BigInteger offsetBig = new BigInteger(String.valueOf(offset)); + BigInteger lengthBig = new BigInteger(String.valueOf(length)); + + byte[] result = ((ObjectServicePort) servicePort).getContentStream(documentId, offsetBig, lengthBig); + + assertNotNull(result); + if (result.length > length) + { + fail(); + } + } + + } + + byte[] result = ((ObjectServicePort) servicePort).getContentStream(documentId, null, BigInteger.valueOf(20)); + assertNotNull(result); + + try + {result = ((ObjectServicePort) servicePort).getContentStream("Invalid", null, null);} + catch (InvalidArgumentException e) {} + catch (Throwable e){fail();} + + try + {result = ((ObjectServicePort) servicePort).getContentStream(documentId + "s", null, null);} + catch (ObjectNotFoundException e) {} + catch (Throwable e){fail();} + + try + {result = ((ObjectServicePort) servicePort).getContentStream(OIDUtils.toOID(COMPANY_HOME_NODE_REF), null, null);} + catch (StreamNotSupportedException e) {} + catch (Throwable e){fail();} + + } +} diff --git a/source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePortTest.java b/source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePortTest.java new file mode 100644 index 0000000000..8b1a3b25a9 --- /dev/null +++ b/source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServicePortTest.java @@ -0,0 +1,36 @@ +package org.alfresco.repo.cmis.ws; + + +import org.alfresco.repo.cmis.ws.OIDUtils; + +/** + * @see org.alfresco.cmis.ws.RepositoryServicePortDM + * + * @author Dmitry Lazurkin + * + */ +public class DMRepositoryServicePortTest extends BaseServicePortTest +{ + private RepositoryServicePort repositoryServicePort; + + @Override + protected void onSetUp() throws Exception + { + super.onSetUp(); + + repositoryServicePort = (RepositoryServicePort) applicationContext.getBean("dmRepositoryService"); + } + + public void testGetRootFolder() throws Exception + { + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + + GetRootFolder request = new GetRootFolder(); + request.setFilter("*"); + + GetRootFolderResponse response = repositoryServicePort.getRootFolder(request); + FolderObjectType rootFolder = response.getRootFolder(); + assertEquals(rootNodeRef, OIDUtils.OIDtoNodeRef(rootFolder.getObjectID())); + } + +} diff --git a/source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServiceTest.java b/source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServiceTest.java new file mode 100644 index 0000000000..ff0f030b23 --- /dev/null +++ b/source/test/java/org/alfresco/repo/cmis/ws/DMRepositoryServiceTest.java @@ -0,0 +1,65 @@ +package org.alfresco.repo.cmis.ws; + + +import java.net.MalformedURLException; +import java.net.URL; + +import javax.xml.namespace.QName; +import javax.xml.ws.Service; + +/** + * @author Michael Shavnev + */ +public class DMRepositoryServiceTest extends AbstractServiceTest +{ + + public final static String SERVICE_WSDL_LOCATION = "http://localhost:8080/alfresco/cmis/RepositoryService?wsdl"; + public final static QName SERVICE_NAME = new QName("http://www.cmis.org/ns/1.0", "RepositoryService"); + + protected Object getServicePort() + { + URL serviceWsdlURL; + try + { + serviceWsdlURL = new URL(SERVICE_WSDL_LOCATION); + } + catch (MalformedURLException e) + { + throw new java.lang.RuntimeException("Cannot get service Wsdl URL", e); + } + Service service = Service.create(serviceWsdlURL, SERVICE_NAME); + return service.getPort(RepositoryServicePort.class); + } + + public void testGetRootFolder() + { + GetRootFolder getRootFolder = new GetRootFolder(); + try + { + getRootFolder.setFilter("*"); + ((RepositoryServicePort) servicePort).getRootFolder(getRootFolder); + } + catch (Throwable e) + { + e.printStackTrace(); + fail(); + } + + try + { + getRootFolder.setFilter("name"); + ((RepositoryServicePort) servicePort).getRootFolder(getRootFolder); + fail(); + } + catch (FilterNotValidException e) + { + // expected + } + catch (Throwable e) + { + e.printStackTrace(); + fail(); + } + } + +} diff --git a/source/test/resources/create.atomentry.xml b/source/test/resources/create.atomentry.xml new file mode 100644 index 0000000000..be818f0dc4 --- /dev/null +++ b/source/test/resources/create.atomentry.xml @@ -0,0 +1,18 @@ + + + Iñtërnâtiônàlizætiøn - 2 + urn:uuid:12345678-1234-1234-1234-123412341234 + Create test 1 summary + 2007-02-123T17:09:02Z + Doolittle + content 1 + + http://example.org/atom04 + document + XML + standards + + + + +post /api/path/workspace/SpacesStore//children application/atom+xml Iñtërnâtiônàlizætiøn - 6urn:uuid:12345678-1234-1234-1234-123412341234Create test 1 summary2007-02-123T17:09:02ZDoolittlecontent 1document \ No newline at end of file diff --git a/source/test/wcftest/CmisTest.exe b/source/test/wcftest/CmisTest.exe new file mode 100644 index 0000000000000000000000000000000000000000..c3a7cdfae70e0bdaa84ba0459c6decf88841245d GIT binary patch literal 42496 zcmeIb34D~*)jxjjGi$aXGl8%qz=W_1VHa721dxryT7E!fJ6!v+pSG+hjgM8Fy9OAxI zYLO0Yv#D)8?n)*@jB>8s2S)+iUo?1@JM_GMZ`|p_LtYl?|7fX;JZx z)=AXggwH{S-jRcll`sR0a|T*~FaV+!APj&C3lPSN$NF@F9|}7JKa4+o+lF&0%gBji zgoX!k!4b#sN@j){9`A5;bIlF0Irz*Ud9pDa-ts*ubXWgKqLQ%&;e&f`I8y{H-)~l( z->f>nS#^eA5)=f^ks7nTptb!Y*$1-brVnSr+6Px5d~g*aG20=r)Z9!Rg4dVwaB|xj z<^umnmliFUBcmz(BNyALL*9@tg?4p$KyWCORVH{3XV5lMCazJ$!!?RBag8D@wntb} zk@H-RQ+e#j6-qwKcAy2FwCMbPZXZ-+{>c2^T%ToQ19TcnjWUJLtHS5#aLz1bUVP)2Fcub{Gzngi1?#oHQvM3ir6aBrlwo z+7GLAh7C@E!6=3}wvwRMndy4;KBJ^ZxJNkjjpX=4;oy{q(I)AgoC_#k&d-T89PAutLC=!H^iSG?Jyz5dNX*N$i2EVkDwPA?R5Oy-LLx3m9R4qJDl=TrI=* zY8Cx~$)hKt*XP?a#?|(`hW6)a1^5?;$CaM5U#hjJG;_j6t?6kR z6{R`UmF7@AGGU{BFkvH+p4%|$amB>kh8mK&jhhv78#gQFHf~nGZdS~3oDOrGv?gXS z(-|^0=WQ^2X%A;mf#Qps7rwZ8;ftG>eR1=`7bhzS`2y!~gDwl4!_CXnqUjV8Us7cL zt;A=5{i1HgFSj-Pa$Ca@n<6L_z?B|O?eu6@UV?=)s9#CX&5rck?1+n-o#WzW_lL}8 zhg-#`vQ9CIj8d{uO5T}u*?F40kGTxgaLqj z%p}49SZM*m09a)K!T?xp0m1;lmBaKQ41h0MfH2P7an6~RLKs+n$pVA{u*L#}aV0&= zQV0XfFI#{x0M=T7FaXwBfG_}J79b3O^%fuufVc$+0{|BgvuwfuNLYX{05({FFaYW; zKp0mMHd+c{V41W4VE}x^0)#=*o48{@vB^>h1E9eIgaOcK0m8U)ZL$=?z%pe4!T@Nt z0AT=}Z2`i#!bn>RVPKiD0AT=REkGCmEfydQfXx;l41g^bAPj)579b3ORtpdYz*j9m z7y##3fG_~gwE$rNY_kAi0Gww5!T>nm0)zq3W&y$g*lq#B0Jy*cgaNR_0)zo@p#=!z zs>+Kjg)p$Z*aC!sKD!18MrAPg*zXv>|JLKs+HY5~Fk___rMgQNraf&j&3 zmO>Z+ms@}^0KQ=X!T`9!0)zo@r3DBB;3^9c2Ef%8APj(OEI=3l*IIxu0IstDVE}y7 z0)zqZEejCFRi>LQg)p$(WdXtf*lhvA0Jy~hgaNR}0)zo@s|5%Hpxpw50q`FdAPj)p zEI=3lw_AWP0QOpdFaZA30)%nOWVV;Ha@q$wtOD-h58t*Q@CPnocXMhhk+WpD$28ur zwez^?`5x~yX5=1kzRlIz+!vS|Zwz06&s36o8ZKKbcv4?sNv_S)h^TG;t;nC^vHyQ6T@Qd*tiT4I1EWl?m z-W&0L9`Ag-{djZqKD-%Wp3%5>jn_{bLGx*cHwAjN&_}$tfPYf>*FgRBj@W!C{19Kh zFGRJzQNDcY7vxkUgSWuu!O$9Sh{^{t{>Oow>S*-QD3FR#K0nn~Os??LI-%Qy-Y9gx z&}W4n6Y3qrmi-4k8uimSp{ELRhS0AKY8iAs-H00V(^G@KH^@(a1dUKdWnN`Iol?p1 zoG!Eh)K5DqxpZF>q+O6lfRxhvl}9T5ls~v-P(BSC%&BI9meQ97AE}JcC4}WNdG84*Nwqh31I#ghjV&Jf-8kRl@O270g7C5h|$X-RiFHH!2bkx2A`OIeEj7^{B8?R(P5VWvfpjZfM6ZhUWk|Qf<57_=f|N%)=?#&t z6zMYhv()@;kbLxQ@+(zA^h1$uU(NTs&)v@sLC;9eRny5ER&fT|TlI_jCJeDoMC5Z!z)TONkw_y57SlUB9; z#djI#`$Bv8FT;#c>PK`mQ1~hSTfmP|cadd(y8i*#f8EFQEa5i_Z54W+&{su!h49x4 zy-n!7LLU>_L+H~6^ z$M#}ykIla=$ooP)d8{qWyC2$td0dBPJZ7p#+k6GuJ2>%_S z-xvDh(78zU%Mhpfiy;0Uj6{1dQqzOeUKnP2jnG@dS3+yHV`+r(ipX7{CbCA5jgdWQ zaku5Y5%%_k(4#{CCbVY>nkTqE=*P_(Ah@cwf4Z037d_}7G*F_@m;D(4&n{h9U=I=(;G^DW_G zkLCZt0i!&t+I}qbX`wHH`svXi)7J)YzjgP?zYmxOocpAru>-&8`80j(ETl5icJ66T zR2NB9OrIXW^d(R$Rm;Fj!CyEKcU$s$+*d=R5sxKprit==mgUENYkku&6I;5k_^PeP zqtKn_I}J0qrTe;XDX#sNbffQ!n2#;#N!q~6OL;x+`<}0n`qmYzcnQCoV| zcRp3nQUNaRv%ud@L+A`!+6$@0mfC4JZL_8QkS?>Ob{av~+LBL=p#QX`b~=fEU`xg7 zBsyqH!IgnBHHr>vX?>uYM$yl-l!9(Fy{x6J(2b@JEp3OcivFmjozPX$yIQ&`Fi?%5 ze`@K*z+gze3c|}Q-&iWjk$TzEG#X3eZK)kAk*T&c7|ZusTWUuOo^DIkkj}IvpPEE< zwlqymrY2jeR#RxJNJrK9;AomgUo&-B+kHVzr-!v}NpK>aN>6LuW?HUh(FY>Ep}4

    ($wGl`XYX3w_6y_No@T-Im&EGwrjbyVPd-xh=KRSLroddPIGd{%T9@bS`~hOFnfj zg@#@f;^6l&C#+UY_{*wPVoA)RAO?Q}8iu%%<_V%lX( z?O65QZcERqo%BOnYNt!-5nGxD=~Y{5r_1SeTY5xYPXDl_cDjO$VOEK%Ar;t?PhCm9 zY-yUhng-fZwYru@h;&q~&P%Fq(kZ5nu265QZ_#G0J2$Uc-9Q&=-G22?bt65cb+_hi z!3y(Ltvjmnj9aJxcjs6;s%P@fQ@2vNNEc(hA2Hf#lh(bJcai!YovU?Yj0)op`hnK< z%D+tANe8rUwQ-Vxtr~ef?wguF+2A`Pem(A6m_Nh7293NP_pQvIXJDU2OZE9njR)ws z=_NS6piDhP0lsaci-R=<)$|Y*YiR{^4^tm4)kF6%RcPs}&^FgziyVqot3adz2Dd3Kf>AL)56Hio$9-M4PoV z5xU3dJT0w)?lHPVOIr)q7(b>fw6wEuJ*01&l3Y6;r(IgNqbOxOPPc36rlJg_yR`H} z=$@eawe%cxPtc=U`W{sv4pWDgVm+#H&+sQL@%7;+ z^sbip`tTF_P)kin_Z0a?nr(DG(mh2XEnNxS(^RUZJ@nU;nZm#OFJOf5~r)8^+XuBFArZN^V& zla}g>FM^cSQd@D#_!*t6rCZ?hXLOO49)r&p=yEN+2%j&|H$}QoYVbw+uGZ}fm#G)& zKeY64xSC$1JGJyQbU&vbYUyR@eohCp^!xBPjbG4{T6!;h6QrM-lH~A9dP(c}8vaW< zswKXL|C0WorIR9M>R0p^ElrA4)34|QEu9*#^hRhp@#??m>hSLrk@ars`OC0gS0y+&u4 zlH~qtTBmiK`>$!EmN@rc)7e_u-ZN$VhFZ0BRnH8h3$(Nwx+8R{mVN}?5xPc8FF<#c zZqU;2pgT&pYUu;$eoJ>~sZXyAr2Sf&)GK9l&_i094_ya6uB9(Q_c}eRr7h6CPQTRB zHPHPR{YFc7K=)ttdoBGKx;N-;E&UF|&%|Oc6(p>0%PZ2FO zK=*qp)6zAiW$GAJYU!@hYC1-vwDcTwf1rt4dK0=o&cmUS9(oLJW~HkZ)k}}>bvx&mUyJTOMf>d@$w!W*E$|??@?g1*5{(H^f#)|(iPDCoknQsJJ9`|#+#Dl@ZU65>oWby)PGa8mM-j9P5(^`v~(SG z@6&QEwL|wlt9=s z`iYj#g-=p1XzB8@w+*FU(b9Lz{s!rFE!_#9hWeA19)eFpy{Dz8p!28?we%8n9_6o+ zHj>))s*ouK`O4*0rCQ=EmsbtcQceFd@W{$NYvJjJTV7^fY2s@}FV+tX8xwxxC|Rg-L~ z8q!Q#@~PfxzAa5tebq8ss#axcjYw}OUUBwUNs*4K4+qSEwAHkvh529b3{a0~OJ09g zs^_%C>(8O;HB-u~8MxjvO#PRZRt~I(^rlD`%i46f`kR(`Z8}^X*AlNyN2tJ9b7tVR z=?GPYtxacLQA|hJxPtw60c29QscG6YtvC`s+M?dI!e`OiPxs1)dDT? z+H|y9p(S3MR;e{w; zBE2ECG){d>OI%Ci)GnQl*RA8#?ONh>>v(mSmU!JdLEWzIA;v%5gW^XYnYLfftxSv zOM-V>dg(u)^3e?7<|{XMxBVj6cxer&nY%%ozwjJ8#@&ji_?BR8<)&-PP5 z6h1F^hc=;dP1)S%nC@cUgj*J^i>n7BKV?rXbi z?OE|V_1x9QUBhPGTD9jc%O|U6D_?gFKP08Q7&{mST@LDz9TG3y4BmX@wruA<_Hk^i z+Itjj>Y*nPWu|D^Eabh=iIM6q-5`rZIy1XuH)8HPD+HRFWz|0i)ST0po`Lcyo>M- zM-niP7r&@g|=)#@tPyd3UH z9fSW6-Yxd!Vt-ipgP`Av{8UXGdK0z`zA^OH$V=+CL;o{!RJ}E{8aurI1RX4RPoc+D zc-X$kJ8H-<>?DA{H}bwZW!M9trw%(9Ii?l>87%&pa$1gu=`^9$pd3kGgUen4iuy+k zSoI1&PUsY&qr?wWem2E^m`)Q~4a$CIi)F3Q(}f1nN3O)XkgfwQrt3k63o=TOv4Tv* zE^m-d!TxHHrlUoJGz;HA3F3^)3!w9{9~Q(Do7X^>(r-am(C&tTpGU5C5$ zAl2cHILIf(RFE!{T&|Q{u9aNw5M-Yq_Xu)8kjDghQjj`>qupq5w9Ue2h2Ls$;-W*^gBy?ynN)I50 z!8q%7y=Md!s2#;sw1bX@tMFXx&Wb8pK=*-8puM0qbOY#e;ZG787rKdF0DcaA2>Nx( zA5=xxPzh)mtprkuRI`xdaUatQ{7gdurZ%^YvaUatQ{7et$F`X(j6kvW|aGiK#ekgeM&wSPwM~mK36o=2Ni|SC`{hlN|w->iT zd)(J1mdr2BXSy%QG!$TZv(O9t%x7WAIkrhI%)gMogF5I}MLQ(g9oXNz4l_xCy0>_j z*fYJr&-A!&7xws%73`92aa^f(PL<89F4jaY$<8u+;Dov0<9^FdkphYl0U9e{iZKGZFBp}mD#d4|@~G*>mDtyx2g0rQZ}M;d5(Q zo7l8TTBgAwrWgz2lX;8+Q1pCIj0I4P1&Lt?{HzM^5YIcr^G^8OS+++a-y@Ol1#*4a zA+b3Oen)YKSat|<49K;`9^(e`Mm&bJnz2AtMZ5;rY998a+KWek?kKJ?_E4at29}r& zfXptB8#0!GTwRnD%N^Khzouk|_}L+rJAuzF+XH-f&pm?g5qvN3Rb_{SKP31e*xc6h zG35KU=Pl>$4L0^SvqsuN2D> zz;~9_2wwy3l+qf})_T}m%)`AmF50-@ao9XnnnbGW%eF(C4DAr@4$dHF==@4xP@Wp+OdCItS zUKurB<}1Bix=KL?dkdf&;jIK-BS;PAq1XDm;GQws?mi zI|SJwHaoU;-%fj@%vPwx?DQPPuEpVhA z0n7H{8qwB>wnp$8u>lVcwc2hZcQav^#-(yL>m0 z-Jv~Vvq$i~z#l9>2>k7mLqNQdL;kq2dB7pDISlPHxxB@oGP-Q^I0&G5tR*L-yXm=FP3LK)d zN@fLQRtFs#oE3Ngqh?lsuVt)l5iQm^;ExrsC1!rmU=dSX7eFuY&qgl0L$f8v+Q3Q1 zwZ*joj(?qaSSR*OvBCkx%rD-U$2<>;wGb%ge^9J>BnGxQt7M%-5`+J@OOg_Eo1|ij znOrQ}#FA-C3FDaa#Xs|y`9X1A5I@Z0Dgc`GZI{~HE^+RJ=WC01i9J)SUc@KUmJ&vS zMZ3fU^H>FeW`$zq1Ab_5mqfz$#|m~!o$n2l88gEN1UVpS4@fGe!6K$u&wyg(13EOw zmMtaB-yC3ym5=yj{H&6L676C5ypE2D4O6UVM9Z|Lgb}QKK#zmU+D1Gug7pt*u;_?H za#SKb7U20%1-YeEko!_zkb6ai@FT!qTRazKxc+`OWM8QuPr_(X%7m17_`0ksMsGB566Ja zEmQfNS6)8HJOZ@7tQK@@Su&sJft}!YmhBb(aDIugvHvm9i~5f!*kn97pjK!Sv}3?d z(9(gs3V3eW3%+*XVbF629uedi_&W#Y6>c(qJ1| zO1*o5+#Ee3$m>96dXE9Qj`E5&8PhAGMLag6MR!wM-)NEC8G)Yw{%)%17cJrzXZ~41 zzS3`SQ30Lhoh8UDv1filU#4wBEBZ126;K)V;$fXwt`lUP*fVYG%k){H75&y}OHRx9 zo&D;NSE;v6ESWyrw@v&oKLI>jGOZB$J}BqdCVp;}I9~^yi3gM1D=I*fq1m9ARZ6*) zW14b*+g|zstsJmjEH5lAps#v&i~X(Ouk*eRdYiYdcLCk!-Q6dH+B+!ps8H3Hk?0U^ zk+;Hs3x61XB64@1AN4ud=gB_L_4!4g#sPWQovg%8>R<}t+-jJH;@5qK(LmgJ55nox zq4;jq6gr8f;XZx__FZP-wC6(X#GHYhnDx+XAfnp>BNfp;q5Fm2AE*LyeIetw3B6b7 z(?VYo`nu4!g&r5$A1gzA%O$iGbgs}Z3Vpqp{g|HrEc`!&=7kwA34a~-(J-evS&+Gc zoGHjwL5v7n778u(w8PSj_H;p3NA9wb{}AN+k%xe|E#K?S{#75Qr9y`aJyqypp&Nvr zBlJ5$?-u%tKAij8LJRsb-%n_j&^bcS6l&(^j=>$d8SNgiyiMru%GlexLaAKJD70_+ zhlq2C@Ds{C9-^t`9C?i(OUv_toFz!TP_tG~AK-XfCwxk%>DjbDcL4jjLg)=b_YL6M zEA_m zOzJ1JobrH_32h|Yg5sM%Oq;R4Xiy4NQ5w6F2AwT5gPxDm|3Ww8J6{IQx-#8@+!SpE zHK-N2DV$~P4gMVDrf_z(FZgZ9N6~pgx8uyXL2W`Wz$j9*1JuBY)C%wy3H=(zn}P2e zG2MwVr*N8->17yq27Mh=(Kj&m@I*=I6&QaCyH8B7#uzl{DxuflJ75amaT){UIvNN5 zo1g}L3%frG-%^?Y{yW$?RoJa!dLzcHK{p8fF2=5+n?ViQh0)F5qhq=Uquiidgtp@} zwZd~ornl2<;J1M)`cLdD8MIgE9W)on_l4d`rvd+8LibTE@Vh__`T;Efe>bRs?_Vtf ze=n#(Kg4n5p)(+MxS|K0wQXJP2ywBy11T}Dq>wNHk1T}E_YCCwGvjYDX`jn!#h5iM7%D}EB z)4!rmDV$@v1pIsGSql4{O#d5w%E0L(rthOqDV!5xic>#8J^;m&P4p=PXMLC+r)z+a zVrpPzji(AiJveuaZ@+-z>6!Wt_yDMZ^DQ@k&l6gpZUT}Iitk^lo52?f4dEoRq8^|I z6{|hq!$M0`JCKObp6WK>y@d8wdx4jND(t_14}2e?{nYn?lnL#x?gU;gbhP5{z*K=6 zc*cD<__3e{jZ^!ZjnBg7(1oEDg|QcvjSd)?pvK0{wq8=#MZzRiMvr1$`XzPzBECo(uXc z=AKEk%y<#sCJkdQ9Dv#6qlmYSpF6r=XF-bnXQ?jHkjN%hC$k$D zwKQat^O6nt+W6e2mPV~vkxnFB?6O3rIn|U&P^_ULwI#N`Au&6iO#+c5^@;54PB?Xg z*-qlArfi}qi|?u@VvV#pka(I<=(gQp}o-_yNd7L)Y@x zG$auKZHOfs5_Kz5bEGzC%a$!wanxH?DqUaIl&M-fu4?VrakSL@HA%ZlX>n|GvOdP; zcUNh)wKML~|;W%%;+Jm)C$xt#beE}_2{bEWFjL#N;)>P)iLx=`~sykOJ-xT z*=z@~!q0&=C(_wg+8~8>Y3g*vbqA%*s^~_g73pQ&XBXd?!Z6Fpd3F}R%doyBtHX}R z(sjwE7z)xV9k->qE|xV*W&$a@Tyqi|l1(UZs!1H8h4|C%ULq_@oZW(<&dsM~JzBf1 zSgS?4SDG!dK9)(w=fyBJP-7;ZN;f3e)AH6#Hql6~k*1+4-D;S6FxG0#v1R2_E5mjx z`kpxyO)oh~s*Qy))NRi`DI66s`|7A7-U$6{GaQ#RR{;E0lFk*`XQ?!4xpX>$m~E3yEr}&f^Drm2q!UyX$AF~G$;1|2 zNLP3mXj~QZ(y2yWS{AwgxyvI{lWUfe=_jG*B3v+5nG=6T2d~B4nx#0;j7wUwCR5vl zIiM+?XprfV;aDB!ZyiKRMh(gt%dE^K(w#3>PG6u#v^WoydC5dW9W})oHP@2HrI4YF zT$@ZD#ae46;7V`=)^K7$g<%9v1mI7WO9skjYSWvI$dA zeb-B4mDy=z0buq#*Q8v9@^rb>cWae9G8V;>O=PxGW_A-_MbPhX?a~lgqas6Dp6BZl z%_s^kI9ar!RaB%i&E4%7+ggiBDMOh}$>y3AhO*V!=h*37<{M*~MX7YcOtL{P1}<$n zk!?vgtw=3Pr7-QqwmLy|d-3ABa9z&3Ulp*C^i}8Leqv|2SMh)4P+!we=*p}peN{i9 zmFpsIj$P|A%okkyYGN_Yl}LO%A`k+rUx5w%-(>8;6?OQ%gNNTRTtu$!vuRD$j- z*oV7rB}opDQ>Bg|b?1og+DW@B!c}T_2|E?VanxOqIq}#+t6UB-*I+j6)Ja-b^13Xs zbahQT`1Kl){dtlYO_rbV}R3P4{s+sFS0E zb?-@EdgqvRU`l*}tI2yC4F0BUGBDd&b z(+QI1m$f5`U^bjB**aZ(M{NO}Eu5n8V3$hPrjCZwICa4_Cw@CYxmHeHcCvLTPL#sQ znPYOYagsU~QXZ!f%mTY)yZYU|j5<}R-M4ajQ;y)|=)@y6;fPLnu72i#jt5t#p-ieJ z9ZxK=dVV&RMu}_@GnU+onjM?VYTHXm9f@^zV$nGg>nu;Aas(@Pa;&k`OKdeW%h@m-2S-TI?6)i#AT23gLsm0wM zZh);hv@_sTbTYG0*0wnp{_a3`5?Kg$O3?*#CouEqVuC=gfY zyK~@ji-DDc0BqsfQx^lb%=(;a5sO?zd`LZ+$xW6~tHuPk1=hH0PqaAzTexdeEOG$0 zuxnS;j>I~=xL2b9#iiiLE;WIk7pB zWMs!#x=$T7@}oq};|8W~NmD~B9LMTbr;}NJI-|MO8xu{=U?pcA?{s`~iO8Wl7;gyV zB6dX5QM*hSPAAp#gbg^R7}wa8#r9-2WA=8bcl+^+-J^4Zl#!hqqcl+`h<&-E7MmO( zrw2Gu@fflT=fG_3DvG#s%boO2Lf5sL>%dWP3Re|~N4MOm*qzFkQ`FQ3=&xTkezm{xzl7wKRuFt1?zzh?sfQy zl8HI(pJOU@l8fX@iF7)ZuEE1E(}9SKu*V*&cWnvTM&izqxB=WL9JO{qj%|*eRxgd= z4;|uBe%gM-C_|Ya2b#B%<|ZvRHnY4PQ%Bac;M({$8`-*;VnoY>c6oDJ% zjP=~kdMa0o`wuj@ZqN+jM#?ED9tG9NMoBHkFh3T`P_ilB&{CJEZQ6(%uxz4E_ZEKs zhA=SD%}wM?b1a^49O;LJ%Mu&(!$O*!$s`)rH?*!uW^vZRdU|Wau6@d`%AE3cr*3SH zHMMqCAXeVw?y9IsHMgdd^&7iUtw_h}5{R_j}B zDz$FMt_ofbby4cto0E*yH>EP!Bn~jlNvv;XEppsJot~#|J|JEhuq#CO%?@dcjol|kTEbwWK4zQh`R|DaU z9am;;qdv2V<`o;$sh0YUj#AGZU4z$(>Qr6pBJ_Xvtb!b7r_-@ket711vg^4K=Yz0Q zV4eZM@JQCf;L%wcoz zkiKhibacxTaXe$qwpP`oTbr}|r(v5nwpN`nY3!65em0K>MZBj(od8qb$WJb{pT&tR zs@?QO%QFp2Qw_;@>s+4xGc=u_an4-7cI{Y9;n;A)BU{Hg?nc;8rc;__G7q|fz~U)c zXZE*PL&N%5d=u3yA3S~Ll(lPXVz{HJo86RZYHdulWELf|8&h?Ba0w@o65}wtnd8Uq z;7&C<(Ub0aOZiFgqF58IP-(f~FplPO0`4XdyE5eznKX2jYaZ0cFEAn3p>@%X98Z;T zsTUX4#T7eSeCdHX`T(Vx*Umk=Mb71zDGAq~3FAqIy6pgGM{)rk?zQHH$EkJ3Fdw=n zU>-u&rNm}9G4HSD05Z}Xr2F2@Xy;MNr*k@Ed^E5ihVR`s;#6%DjveA>D@QNG>Dd&{ zHAeAGf)xIiOdU?*rXelC$>BNpoPqZ__|CyLoNXje3~&5+(@7^v)d0^}hKc`r{I!fI zQLoc*_7?YQlE-}H(Flo7%f~6@gkW*}20&7BP6KH|8jgfxSdY`fb@()683m4GOKYuo zAH#ke|G8!8CYqCGBc~1U!4bvbX*7PHpapSoj!ER#fZyb9My?x31;(M=_!+C&`8aj` zaZ^RbcUHV5aB38X7;p;o&F1@3f4uDVnmZ0$TDj`pFWx}GAAWVss=gDC?DY4F^jDEE zK8C1B(AO(6LWN9Wen7Cculb`Y(lb)bAJIs;Kk8ATP{3HGWP8dzOM~4BQiKI>Va)2JTYYWgC2jlP>zy%6*`EQ50n~y zC=5>&b-*dYg@(u9KZI|7tNtOF_wn+HRWB#<`k45c;Ag4Gi(gnFFaJP~7u|)t1xyN= z6fp@g>A|EJ#1}OXwAbH1+y{{=d>|Jeaz){&zfZFBd4@wA4iWhd$9tlmQ$@xF@DZ65 z8HbYh4{?M5;6cjRA9WD&;m~yd5Ldy9$Ws1T6FGxF>LTm-qam`9KeCZ#{x~!fU6Z1|!SX}c_lfZLvqv^^=!c%axoV==S~ zbs1^9QjD$y0_aNLaHO~rb!u>j!5<4FG-Y@SDmXlaD;Vr>W;yd4@$(n_p^I~)AJq<# z8$+4^mC3;ECVsouA8xx(67FO6LF5a7^OX-a-KSmc6WxQR?m@)F7UF%M2oH*zdrbfL z=tTFJ7Wc68$Iyr2_Ax`ZzyV#s2aJ%^<^fYzjKW1`a4o!ws3SADgiKKfubLI|DvAq) zYvomTe8lkQqjvJScJfg>`TZ1z>xz(`Le3yTnYf3-K~i z>H_lluHU??G#hq1S0Xwmm2`7y4@|&cEyF+g+hGQ3IFD;s?!WqN%x0UXjv3=Vc0Hyk zGiF@X*cG8LF3Gufjo~G7>uE1x(pl68d-R)U(ZLm93!tIZ6xB$x8UDyr{hX7C?Z!@p6{8uPYkMpL2%w~GyEv-! zCQM9>J!ML61k!){)HdM`7&lhwdO2QcuN>O8f8L=K>)RwJgiAl~5c)1nq;aTTc3Bcl zIHuvmff|12DvM9D(3U=DX5a#CbONKFh2hY zWjXHEao^~KaM|bGFlD%D!xx9TAHf%Y-qG~peU~oXwFJNKYF^w~UCm!kp|-ZqJGLH6 zXSlxjGG%6Syd|4#DCDKe#7SdM zt~z<*DY)4+*E}Cf=am-(>%SdFbE>=^PAC*L_ozamuZQv8o=A0w|eW7^l@CzNH0 z^Ra?h5%ewLXS2A);y=>*@fTY<9p46insf%zt?OC=5vKyIuZVqyioh?~+pB6U)Q$Yw z%;J`Y2Hs+(Sl7%;uuX_(M((A0<}>7;?3zPaH#z(p%8CBy$3qJ2Q*|z79=-w`$F4Qu zo3Y%uMv=W4$a9SPm`iJOZSU$TIRN*89Do~lxY?P4yy3)I74l)rlPBUUB(Zd>)$4d` z;LBaBsTkFS3#oI8>@&0i{%$MZquFr;u#1_%7AF2mYv<9|r*pRdhNjW?S9bO})nMKV zJrm@r;ur2iOUNHEBE^xO{81i>^2eyi*b(^AY<)XoJ>|kZjq}|z=Zg}&n>Y`Tq7#Yo$Qk?Gie=oQ)SL&Dc1+w*u+<96&h-45Pj`7Yzk>W|;4aIVG9b7NDxrfcU3q4V(0Hn#Ekd%K^Z$9|gWlm}8> z*Pu#sgZel0XP#=zdg(mXtnHe8mG5dAInZZ_e1cG`rKM|O)orL$h0_prp< zvQO!)U$?tZ;&T3{bXn}$M-oSKKBc2Vy(SSSwV%>Sm@lo?J+XLN@F_i&;KT_|09m(f z;wxu;%2&%Afaj(hz}Fezr&c)@`~)ip;HO!*;V4aa{{s*BsT|T9?B;Hjxsu@ZhqWv3 z#s}iJv248SuS)QZ=1@y-PHsz1^wSbFsMAv1kCQ|=jchH#dHIgZdeA!Lg$ui0>GP_z zdkxoMWhb}R%GyfJPxf+Zh@bN10Q|)7e+Z7B2X-F#Me(8KVjVH#N^47 zMo%0!IWc;De0+TL#0_=h>rPJ8jhmE+;b$8VX?W;bj|<3=`Bv#56Y=+(>DSOr|2!FSqiX$|fI*Wi$40^2$^Sk+v&o*qL!*6Y{I zM=dG$^LdvY(b}3+dhXVQ{OE@~X-y=m>TrOYU&n_~be3@46Z}dY6jAJ!_rWLXw+$bz z7uOcyFN}1LZ|nx=#BEG+UhIYN+m1xL4iFvTiq)^SLqvZt)q)%`CgO7yeid;o=v@3h z+;W_eT7qATTZ_-dG!Hz#9`e5Rk@?GSR$}w>RMBEb2%nZlLpW*0*eaYqO2ZGIhDyL^ zlbnQNo57N51++1s_+b}(@+qqnpW~9(KJP5Vt`L)X_6Wz@y75#lHhikd{5KJ2tk4PZ zTeH~P!S6}(>8xhSqZK8JnP;`2Ux`yv=>GV7FL|)DBAla7QSr&C=A3wHdi=Igct>ZN-~kOYwW5_?16M zI8KgKT(V~T)+0w+kMm|(*mT9B_)X2IE^Cy=OC6!-;WbBMS)$YP={fdl)dNd%strE* zY@JhXcT5wd?v}zw3TMJvaQZCkDhw!n6pSrcNA&L{A{E&XeAWTw&qIe>WpH*n8pD}3Vig}|?85HFs_I0ra z9P^zqs5Oxpbn48a{OLHRDd*&)aL|;QF$iDKn3};s)y7z6bYn7}PGwRXvZLdv#;LJP zW7XzygQAVGrsM{EJ;6G7A-Ta-G-^Aml@p}d)|`lV+8h*Z!cOLlL5o^vH#g%@hCGw4 z!XuYKV@wa(bV~+LNjIcEW<28uNjl`6(dT-#41~WCg*f>;1j)@fnqHsCd`zzsEU!_# z96y*6`8iXnX<=e>q9NMAbjF}q1~;nswTbkgXiIW-9A9EUHEzK1*@P~XI2qGTG*;+i qa$=u8#;ybyOdn&l5Cra7{};aY;nIk(-k$b + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/source/test/wcftest/CmisTest.zip b/source/test/wcftest/CmisTest.zip new file mode 100644 index 0000000000000000000000000000000000000000..5dda1aa9b7739c5737201c5a6e220a8f25459fd8 GIT binary patch literal 14470 zcmZ{r1C%6Nv+vusZFf)Gwr$(Ct(mrM+qP}@v~An{=DhFSd(OM-+^kiZS-JN9SJjSO zv3LF=LS70O1Pb7RuL8lLOpfZ;2^ZQ@P3=~&mz;7 z%|_q=zw6$5z1m-6TMw;1_ohc(4=zD-WHPH*nJde|AJuLXm>4F+HhZx(_6|%t1wYR# z_%#}4Z^tDH1v&L;ZnR=zpSW9_RO#ywNxb}X+gLl`zHYj>;&dy_1}_+XN*0!ziWVc> zv5i))m~Xl!yJc%=)Ur$Ud0`GHwe53R$F8(rq5(HKVztl|WtH|z>@%I;DD6AO-;cl% z(U+RcA0S~zIFd!@4cHeW$sClAyt5W?;2#VolH3p*5`>4G#|*$z&8 zK%;z(2Scts$ffd=UxraiMc9MBeuP7kjaRac8l!NmF&s#p?fn!aQ5`e3;DH1G{OXDw z3$!;0k!(UIZ`)t;{TWBdryGtw+xo?;4dJkqqKnF?ZUDWT#C?369gKsL#gZdj8F7Sv zzgGMjEWhFnc2V6HS4`_UGh8oYRnS`90E%#^Qln!tE_41J8jjUdZ1=at1o9i$!^RIy zxj+E`aQ~PKayQ?(J4cmW!7+ktOfA&!(W;K9F3*C1(emNF5sM#=1_MPkFqd8A9Euqt8uFe7AFwCiFmXBTSw1&8dFy@h&dI$OVDIeX>j>1ugJBe zD&jNjh=&b9ef$n_lv@i7=tyJA4VQZvsfMKhcgt$HF%D#Hkw>5xijq3F)TJ~m7n41b z=!#U6YI5ILpuTe#z$MCAl<6}Dv_%&EmM|P}PxqUKNB4zEI;OLIiHdN#iwi5;per80 zy6Qm{@f*wW85lVyn{b(zh4~XR$YVL5l)+l766a@$O$gF5X8uo<;H>_v1f_Q4hzH<$ z>VxTVtHw~i3^Lq1SM|b5&}4n4an}ho4?ZuNBgY_>{+x8oGS%}sYuW)5J9nT^!x#~% z$4Q*H{KYp*ub2|W#QXs=kQ#HyEZgh6jh@Vf->^D~IN2y{JxcVpb#>aE--%C0V%CSX z*S9}4_G96pySfyLRzRPf=?O!K1EWV}_ivtVreya^TfLHK(TYNOuP@4RyPo-hzNuP{ zln$3a_>Np}l-qEvM^F0BSCC1Z$Ak&^tX4e1LL@Ff2MR0c6kqx~pR$>29&#?P%*dhH%vhX-pZVtJi}uQw}T=n1reG>ue5{ z5l3UlkR(Ds$)HkMYr?6pHllXF9{DA*I7#L?Bl$mEab zz0|(8U2jJF*3G>pc#*p7OGqeQr>$@2w>PZEhLjQ0@Ax$td` zan{?#JIf&rkEdKw^wufjN0uU)!Oy z_eteV;k!kLYpOmtJPd3oy4IUo1#4_CsLf>aMtjrR&_4_=ohHqTY6cfJ2OQ6%)BvABw7wPfWtNFvtjlL%J&$M7#Q9SIdbn>n|1_z5ZvyF*n z1|HKdU&}9F$2IH^GIz+=u(nix-D2Sn-Pc@W%dbQV!Ok&+n04Tm=jf2_UMcj_r)hnp zT|M?YF_DY|A)*!2L70}MKt#JM8X&AQF=wo2Tm5PD-DCHMmf*WsP`=c*Xi%_zhOB|r z(E8H_az8#FA{yd1{7QXCuC9;MyQ2;F2#Q$$tzo7N^*$)CkN$?5Usgt(gw@cZ;6^;a zTyMno6sZ*THe%d@)qRzux`YJ0sQ4CDU)3)p`2qw8hW$CO}Khy3=A&QqElE|0_sM%+6hO0r)C zoNXIy>yYR4K%#1M?x8|y>*7S!_(&i5FutRk+tM>L7Kk}{Ty6#tJb~&2k9U78^mm)j z!!%KkfU0aGd7dXreHt7n!^0B4{v>)rN2_yvE#&to-9e#SZ#V0DrMKEjN_wy6?$!&Gpz^`JpCiG(rNh_yT28fqb74Grg?k$A8sn&1H zr_76Q|bbMSuuhj3wQ=S4LSoEDx&zk z`p}n^Va@i=lC&!w?v^d(WuytV zRK~BoT^G~(1vNrK_mr%_saZlD276VeoEWs|_}*0{8qxzi@NBAm3x}ckYms71C@R+?_9FCaDos?rjwiYO-whP+F`*xy3M?0<~QYfnHfD6$bcdC0{s64@PHc5}8+LU@V zbA{-Kl(@p)bYL;b`CdiDdhP7YeTkze4kQ;o8^|F~`g%M~+|&;xH-1kTzXh0(>g1yN z2x~9+{H2MZ78j646R7eUXJyY48piXu%LW2vLm911eupxWitCYs%V@S9>o{z~7gJ0d85(T#U(?7+xC+{2O@+(HPC;MY1@d1TCu?@k}bMDy5) z2cvAr32a`l{T-JVB#0??bfKuCR4@_AT_!XdixlL($b(Q-)U6y-+_DzSi5k4DHD$ME zrv2wm`sP$UI*ac^+dL94*zat8N}92M)Gjy*>?~{m<4W?o$`r#nJL2~}Is+U<&k0}LCR}~YCBZ$ZSZ5kV6J>=2(%{q?elC4Y$~+E{MN9lp=OyY0?yrJy#GXFRaY#9lp}&PgW+70>Ppb<})O>Bi^ex!PQvY_K6WH%6z+8 zytKWzf=i=XBZ3aB&{6L6{+p>w-#tZGdJc+tX^Pi>Rq#Xtg5(lo-`l& zF{85fK&|OQ9e$t%luI1dKjH*elUlL%W^uC66TZnU#A|^a3|0Wpb=0RHfx?WJ`5owd$#I&2DZm^Atu*qu7q_ z4sd5op{Y(sB^NCr4hpGck=UYH7fU-Z8{s%Y7uoH|7H z90`rfHm&rK%d9@<{atYQ89#hh^n;W@w8_C~sPc9Y9c4Uz1j%SB=gg5+HLJKw$(B;w zRkKEM`Vxgz*`rc|N9%~jL8ZJe5wcK*T6wTNB`*8QMgB8xE^u0?;j5w}>)U+ti& z3_Po%q&3pmK-847@KbB_`yUH5t(Ycuv*Dp=7ia*07B>I@%zrM>c9e|PMPib3J*(%6e?`8j z*P2H$=9x#rX~h*?&}eRCF^UOimW|o{=J)+-*Ymw8>X*%X`kd85k$BO;07ox|^nRWH z^X%AFFnFH$9`jZTlM zKGB(8pbrDOv^Ori@0a|A^xXWdJVmV#P>e$~&ne6;$Q0y09F(`207VEnoQWW(apE!= zxq1Wyi$mskDXG^w8?(&=Vk3%Bvtqa0X!) zSOVc5g^?o~ACN={`Gg4~okse>nm`CH2LTE>90xnCh^HhU1>GHl%P@e48L&#B5LrKO zR!8>DPz3t!PhOH)a7fxI>+(9e1k32!`v_yTnbfhfs5B$TnR_VbE}AlS%qQ|zS$PW- zqMU4%Fo9`WKpWBMyXeH&bZ*-Lb2N+aoftDf33u?y$HT2evc8MeYBuQ-5)+b z@yBeeVO1tz0g6~p6Z_(xJTASkU9StRI)*hiqULM|I!^gusB$esa)}2~oMFPQ&dSYX zq-vGev5gQvrZ_VnvM4cZBgVX;co=zYJB+hzgPVDiALUvmB0f?)$Fk`vD7q441lr;J zHOFm`0*Sy;fIi{#jmXD~!0vLCF%E*?gwJyRzUf=I5%VUYccZ=cHi1QqmSWmh_Dxx^9V7d~U#Mg@d51^tMD2b(tXYrkaC>ZjDNh%v< z7AuQ6&I=~rhOP|Sz5KAImP_teqF9=E{ehR<&9agIKpws{xtaP z4}}hjzI;dNLy_~UmJ4dIXBi~4D1em@fx#$xre`~&H1_gMD8@a3W+Z)an4X0a7>t;HF zoKWm)#YW=EL}Z3bjU7b3!o&;RXEyCye7 zCRmil#yV0*7ec#}BaXKxO+JmF&Y2%A7Kf0Q5F2t;f&9*MpQ7f@NzEvEJ*@!>tY`O0n0HBnP{cv zeDEmV^Q+@si^suY?iCK|Ol33;UHG$9i)14>#YvI*S7Kp2YNEwiNn?CGw|uK)$~GL5 zYWz?>Zm(4TnXi5^D^)VQxSLwTYk71>e@-|BM`bhi>hJa!q%*Yx?aoi$~Y9>dXDZL>+*%QVW9BN zI0(lbYu61L2U?5fd{ORj5VXP|NQEB*0kF4}MGm~S83bgf9k@+4J%wXtJZWrwTPx?a zZQZ|a>NOxuqc|$c zFlkG|ESEepC67s;N>yP+VE1=4-7;F3j}7((sNyruEX8C4EbHpeD-TmH#gvwnYlFMb z;LIVUoWC{0b}0+nE!DU!OUzL$FNtaTjbAy*YYb91fLYh*gFIJEufakuIo|3wSlh%&(+_c22Xr_J&>z z6Z3KbXYt@wt{*YDoJK^YRI&lFp-(YX-9UaKRdSH85liXQAgACb4PzxBKv^O%j`3TY zM}&=&8RWj+c|B%90TxeZ+*M>dXf6JM0`$$T+J!BjfxN`SiR-vc{S0=W^K?t9buC4K z*Pc<^1PD^{eGC016_UdSaNu8&0y%Ku+X40Sn*3x`GY0hGk|3) zNi}K|-69S$ruKLVBNxwwKSYC;wkWiJ@pW6C%76E?xfY?WHRl_?-EEM^-#%yl5XQT$ z8Z8JY_Bxwc;w;Ru?V{0Z(^JgO_-)+y#=?`R4Ha|S8DQy^ziEvcGB8>ECDkIcvHnyn z%_VW8A*0G)2!BJ=!bP31Gb{|tm5)@;*G@@QW|rlnfZ7F{1?nQuX4|rOE2e|m5))nD zh2AjT%yVU@lc3dPcBnhqarO38pH<_P*O7FXLDgg*5RRHFLsOTYp2+67e^=A@b+%%G zOm(klqx7tfSu8Ot3f-jsO64+Ad^Jz&B08{`4Qp=PN{moe8mu`}ui zc|~ifL=%&~=Aho@(Sd<`pW~Z?yT_UyrU4U4Teac-kAoNUXNK@3gkBo8d0}({0Vh>A zkEz3)$2tb@y2m;<`Y>C8Z3nPo8`}1{ajN3rV;4}}S;skXQi8Rkn*fvabrtdw^Ge>J zho^1n5znStswHOzEs<+KjLu&ITD*smn)ukJn>NqxqD8^Ds}qNehEBFbMGFwnHx?K^ zSTKKpxA;6qDyRv+p)*EM-H6!ph!{u|q$P|15<`y%gY$KA?0jTVGLvJ8yP#;|#H@N$ zhtErvd{+9_@~!Xtf=1eT)ZTn_X(8nax8E$+$+lu2^4S|{v7j`?yR4HC@~n@dQFQI)wWDL`E8-FF`@!-rY*KcuEQ_i}!s54$3R5kqtu(L<3yI3RR2CC*OV6AP8`UEs1l`@2WAtl>b_3PS*(TOVmiA^DW>?x<7umQh8op-(l zyn`^OIbm{>uE92sD4rG~RbgF+Z{0H2yJJRW-a4LNIhiAYlZ(H};ZYG2|!BSA0htB?lU z&z|s``)z2t^)w+g-o;>Vo4<#PUO_SzlZCiw7wK9=Nh_8jd8)3j=Fy|d=yrJx$Zsmj z<@sm=OoG3D4--8M43m{vH%C3vw7NvZJRw2#B~^`)V+y$zG{}dDiEvyl=htU3qn5y_ zo0kJ>0`mZLS8zH$W=qns_fBnCU=)6s+8reszfRKg{TT&a2c(^T%-+CdZ;8iCylEOW z7Svpbkf^VU6NKkiekl7iH)nGI{+Zie%|m--T7zXgxYp8c`Qd$K=?rm`5yoqUWJStu0S-*3Gv$o_{(wpC!fJ7 zvf=;BXZS09;lHBYbblO&y@{in z)*ceJrgnc^Pl)oA>^eU}H}Nf8fws5;vN%LhehF(Sg`x#Dgt*Gmz*@Ep+A`Pj7yqZY zPbePMW5^p+mJS!Yf`kMd=8W(A6kD3z$MJE^PNGJy$|ZO5fK(!uQ_X1S@6F%bki!*7 zKb5Gci{^Cmy3{z@ZCcZA&C4`{F0XKKdO5Hf1qUX@>x+IR@f)LXL%?MYFfOoAfOBBl zNm$YJ()|b-iuXe#DLElrmU4#Ui3Qp1Qqj0M38mM8YUqV)=AOJZVo6m zF4P2}&JIdSqIcYoQggC^Jh)VW`>r6KIO%x zpEKBH&=6Ye*B12yZ*;U)tAeZv);@RPEO(jW#?bAJytj@+Aq-zFJRXn1=zxzGb=~dK zX$dr|q(+>;zQ+@Ng1izy&>SlWk=Z$e*xpBqq9zqKEtzN9BnoKd*!jnR^%fXNI7vVG zu#BAZ%3E2{Nb@mvH&0J?mPk;;y&{XRA$See3KcLZc2-i6mhLdb@HJ{%F?n*k!V`CC z{&oh=;csJaW~`mDv0Hsc&OU+UnEO6qwEaC)v;rfPO#<85_Erz8FFDU;w^;O9%HvH* zot1z>{dFJCDCaOnAKJkm4UHF87AEb?&aZ9)r$D@+j6&-sbPUmLZ8`ON?)e;2PN+u? zP9e(@3LW#(IxW9|iuBiu7DBaC_u^`+4zNHqV5cIe1D~IsTb=BsJn3Tz+0r?K$h|k4 z=dPnde-3=wTy68;x?x}O^ho6leu4fyPo~DTu#caFqk$s<0IV_a_20|iQ0GfNUFJSFKP?VItt z5x#|<0lW*kh-4v&mgU}LZkWm4&CUL9TO7*wbI$kG<>%t*%)XeH*BYJZju+olY((uY z@%hRP;im^*OPHxA+WZwvei3M6Mv|#{_c4d3<^z?zk5@or3!IY~Eypi$S8f-dtOY={bfu=^Tb%&j> zBlp3T3k%7qoPu8>xxotKMuWfUyfUj@qIUMha$p5#_l7mP=Bw2P#h`gYg?dC+S#jR= zLg8~y$g|Il1|GJtpoNn|!=iog*VzJMM7f-{^}5&AJ32ZRrb1+#;b)$->)mp%uOpj~ z!Ao4CUGGesQ%>~Y9_Ze|xjOvhbp?G5X=MRYlw!VgX#kBYzmow3dd67rQowEPY>;(& zQ{WogogjiBzC#lEoW@D;<9$s~oHkV5CY?&2XnF~G8|UYyQ8hgWpLjaM%k(@~;WgC3 z*rII${a+yD0-A?^yuHlz;Pd6jBYsXCzHcIl$Ru;{v7X)+;OfJTa#bAMZwsOYqs&D0 z-cBrjEFpO;Ao>kHUgdyhZwJisO7N$cW9EQ=s!gvEzYAyW{?P|}NL4LI;)uHMw zodF_spof|r?W%Wt%x(Ua;8tSRlhx%@R5WEFM{#`siSR*P%YZ>JP;U)Yy=y+0Sr7tP zZi3Yh0^e7Q!JA65@>oh5*pocVLhlP$x2a+7noM~L>MRfL6vkXHT+9Rd!-S-(AoNrs z5?QcvSr~bK=z%5S@sw^vab!jmGR}0Q1CoY<1>BiGk**FL>1zF#b<&EehfUIo zCl+4|Zt4R)6n>fc7T;qCPk96nJF@7il zoFA!I59_FZoEFo~CG+{?#p@UJ=TJk=??p9~woUd@2usDiMOM>lG4FMfH_CQMQ>Ne= zpGI%K5ncL>duoL(Zggf@kl&OWMX_3g^?s?u5lw>28ij?%3o@YSz%@)B>fGsx6z2BD`pXjxr<j-QysgZ1~zl!;cI z*om<|;Bxn&6rFa$4?Lr7j7|B$5tgSbkL<%G*jDbeg~{jcgeWP);*gUGoxIWxVce{i z%75Wy_*l!1-A&r#<|%2ubUJ+*hQE~Kja7ZBH1`a{LZ$#?2x(6isg)=f)F&*gH5&L| zt}$v1Ac5HVw@9N{Mr7=A=0BQ}(xyeye0*lxqQh0p4$->HA5+$f7}?>d+<}-YNkB}L z(I+o4nP8%*#u+ZcxQX;UcN58mx=od>3HM{IV`cv;$4UZ$1n#VkUE9b`(5IL7>D7Ni^f!YUe0{$0+GYHp2c<0RsB;dy1b z3%cug5*GuEV$)@t=gkCIHeX#m*{!hNG~3dyNRYt$cI1{TtE3)WtsVV3eD`NMQF+>Q zxqgoeCB(@dW={lDL;V%m+aBu<@2CO{B#!@MX~UL2zXD27)2{;5%ZW`&jCB!5hEfIM z$NZ3_0mCg4rFbbv3oi7%s%q##&X!$O`BALsz~;sXl|%#;9tV_F1JlD0eE(tcTX~3^ zXryaCCHT07;1*c45bEsQqCJEmLUKA~RNS!)i^>Hwvu7mGs!5g?7N~Vg6wF3YS7i=hU>&8&s^4dm~6hAQS6u@;>!o@c@k+wOX!e_ z@6R5I&s_rpi!xE#NIo8#b8ajx^$X>iR8E)MUB*>_ydX zps+~(rKf?jbVe(BvL7}b^yuhGM?92QZM=ycPYjG`J;ZKDGfQXMtI#AZ)XaM4IL@ic zt$L-8yO#A)8y?1BsBH~U)eHncF6H6SQpGcy@Ep2pcAlk7L^c6uRuRC@?l4BPn*Lh|~&aYU6ho&VV|Wl%e@L zLY(#2=R*vf*>=K#?p0Hhf5GiXQSWsMuBbO}0H_POP+pPb0CYJXm2m_wY0#M9fF7`BsUsSvwZ694*6y3!Yv!pDv|473D+ffrBYx39dnclmu-O-y zc}f0EL)jE^vXecvejL)&J7#;fMqZNhDl;NkQzNP4ml5;iA(t5s7zE~VCiM9L0jp$y zo7At!k5#_D-3fb&W8J{;k0+@Rj740v?A>D4-)k!dsnE4b?<(b}BzAEMGD#>h5>HlX zO(HVL_k@nJ(4TMx^RR?*k+K5S9Of`=+d56x3IE7I z#HfiZVo_!zAB*y(e^XFtjgr8|hs89mHB55vtFlNKDU(02#U_MO*2E@S=@j&$EG>@s z%8!?{6T^#H3?YG!JSbeL;t`n(YsGd}cgrhTo>kmSE2$8`heVh->7cCP^$Dv4t+}iF zHN#h*i>8nmTylx%rb$_eXdPDWmgca2ZB@qTcZTE~4wDCH;a?0w2;hps z%o9;Y$cKVHz4I(Ks1c0#qpbONNBzk)+@)5FFQ8R)i2Si354eQBQjV&8vV1aqnc=XJ70qLBxGIJvJ2J~C6HOUY6 zKCGTP7Lg70QVPOB<#JV(a7ELTek)h(uP2hc=3FI5^fxt_yc3o_Vu#lz$AmRi2xxA6 zTrD)PsQmH$)Us~VWRE=uH1rq^40*rSew-=Q{GK`;>dp?%w@saG#lUc$J_|Xrt3_yd z{-E)0DsJ2)RQpVYTp9AL1&&8uCoHrJJN5?iF1FPU;vodx@|Py~aY?>rTi6w0Rl{}l z{Q-P79!ge2@89-(lpo1gzQUwsL+9RI#PWv4QevK!9szVl`WhtGY#W;($%`UxhZKZn zKKt=N$K0>YRessCWv+7xiYmICYO?;IrI1Bp#MPr0(WMD>9T~8m8_IZ)!=Pd2XE<^s z_HY7xbx zsg3{#fNCBKe}|({(^Kd~h&;v|57oGdPmV9T_JSv<>0<`8n)YcqBjamLyf3#)J1vLJKR*ocr`f^cVqH41jNh&`YcEB|HZ1V=*fO^=nEx_Ru4KVuM zeNn0nn1*fl1h*BxDM^cmp|)2oH{Ja@O3JDZJMK=xPx?CgCHcgpf)r&D%BC?w!jkAW zT)aNdL8x!rlc+J~<$%O(O8q7g0DGj{s;l4yo$!fv~$%EmkPTrmIWNq+X(soZdL?de}&z{i4R9L~xkDV*! z>?fSr@Ix_+XiAB8Q(vbks$8v63YtQtHmAO$hEt@c|IL{R!WvizH)0^XZd7CaDm1r0 zxJ59#h)cOQCk$|gJ860cjf>Bw*R&K4_3YTN)Co`5OkK@A>d%!iIMhq@CUbOK@e?@v zfQe1OBbF927@(&V#^FR{t;)VqNnv^$u%hm~yy&@^Oa@D&HWyY?m0kS|LaMnWJVe|6 zFW#b})qqPfN)@COd~QBMv2+>wyE!xH4f^pR*}D__Sb80%>d ztqCb)&kPnywpu)wiMe9Kwo_d*RS6Sp{~=fy^b_a!DnQd+kSnkQqSr5Na0gjo(H~WS zZj_HJQy9N8ERWe?X1|WnS2EVV=C}OlpIMKGu{2%_Nz`8_Ckz~I0lHh5ks^neH9 zm-)Hi_Nbzn6sl)gBOl;Lo1?&-=f*>)!=p|M}kk2>e@x(w|=cPvG~T zO0)kK_^*>c-1V<|rGKjYTiX5KDw5#;Q2Dnc{C`UQTY}i%Qs;k0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/wsdl/ObjectService.wsdl b/source/wsdl/ObjectService.wsdl new file mode 100644 index 0000000000..2870c550d1 --- /dev/null +++ b/source/wsdl/ObjectService.wsdl @@ -0,0 +1,493 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/wsdl/RepositoryService.wsdl b/source/wsdl/RepositoryService.wsdl new file mode 100644 index 0000000000..72d19c3d0c --- /dev/null +++ b/source/wsdl/RepositoryService.wsdl @@ -0,0 +1,173 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/wsdl/cmisMessageTypes.xsd b/source/wsdl/cmisMessageTypes.xsd new file mode 100644 index 0000000000..fcb227dbf8 --- /dev/null +++ b/source/wsdl/cmisMessageTypes.xsd @@ -0,0 +1,772 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/wsdl/cmisObjectTypes.xsd b/source/wsdl/cmisObjectTypes.xsd new file mode 100644 index 0000000000..cf42eb7f05 --- /dev/null +++ b/source/wsdl/cmisObjectTypes.xsd @@ -0,0 +1,240 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +