Java Code Examples for org.apache.chemistry.opencmis.commons.data.ObjectData#getId()
The following examples show how to use
org.apache.chemistry.opencmis.commons.data.ObjectData#getId() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LDCmisService.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
@Override public String create(String repositoryId, Properties properties, String folderId, ContentStream contentStream, VersioningState versioningState, List<String> policies, ExtensionsData extension) { validateSession(); ObjectData object = getRepository().create(getCallContext(), properties, folderId, contentStream, versioningState, this); return object.getId(); }
Example 2
Source File: CMISTest.java From alfresco-repository with GNU Lesser General Public License v3.0 | 4 votes |
private Holder<String> getHolderOfObjectOfLatestVersion(CmisService cmisService, String repositoryId, Holder<String> currentHolder) { ObjectData oData = cmisService.getObjectOfLatestVersion(repositoryId, currentHolder.getValue(), null, Boolean.FALSE, null, null, null, null, null, null, null); return new Holder<String>(oData.getId()); }