cmis

Testing user account alfresco CMIS if exist

假如想象 提交于 2019-12-02 09:25:38
I am working in a JavaEE project and i want simply see if the user ho logged in with a username and a password have an account in Alfresco , I user the getSession method but it doesn't return if the username and password are wrong (doesn't exist). private static Session getSession(String serverUrl, String username, String password) { SessionFactory sessionFactory = SessionFactoryImpl.newInstance(); Map<String, String> params = new HashMap<>(); params.put(SessionParameter.USER, username); params.put(SessionParameter.PASSWORD, password); params.put(SessionParameter.ATOMPUB_URL, serverUrl);

How to Do Mass Update in Alfresco Using CMIS

天大地大妈咪最大 提交于 2019-12-01 01:42:35
Is it possible to do mass update using CMIS in alfresco. I have Different Documents Types and Every Document type is having multiple documents in alfresco repository. Now my requirement is, If i will Update any single property of any document, then it should reflect with all the documents of same type. Can i do this USING CMIS? If yes, please provide the steps and sample code to do this. Thanks in Advance The hard way (and chatty way) is to query for your documents and then set the properties on each one. But the CMIS spec actually provides a better way: Bulk updates. Here is what the code

How to Do Mass Update in Alfresco Using CMIS

纵饮孤独 提交于 2019-11-30 22:10:43
问题 Is it possible to do mass update using CMIS in alfresco. I have Different Documents Types and Every Document type is having multiple documents in alfresco repository. Now my requirement is, If i will Update any single property of any document, then it should reflect with all the documents of same type. Can i do this USING CMIS? If yes, please provide the steps and sample code to do this. Thanks in Advance 回答1: The hard way (and chatty way) is to query for your documents and then set the

Apache CMIS: Paging query result

China☆狼群 提交于 2019-11-28 13:01:29
Recently I've started using Apache CMIS and read the official documentation and examples. I haven't noticed anything about paging query results. There is an example showing how to list folder items, setting maxItemsPerPage using operationContext, but it seems that operationContext can be used inside getChilder method: int maxItemsPerPage = 5; int skipCount = 10; CmisObject object = session.getObject(session.createObjectId(folderId)); Folder folder = (Folder) object; OperationContext operationContext = session.createOperationContext(); operationContext.setMaxItemsPerPage(maxItemsPerPage);