cmis

How to manage access permission in alfresco

假如想象 提交于 2019-12-04 06:08:33
问题 Hello Everyone thank's in advance for your help. I am trying to configure access permission in alfresco and now stuck in a scenario It would be great help if someone defines proper way to achieve this functionality now my problem is I want to create a site (which will be accessible by all user) then will create folder and sub folder in that site (i am ready to customize content type of those folder if required) now i want to configure alfresco in such a way that specific set of user can

Testing user account alfresco CMIS if exist

℡╲_俬逩灬. 提交于 2019-12-04 05:54:48
问题 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);

How can I access files in Alfresco using the CMIS REST API?

陌路散爱 提交于 2019-12-04 05:54:32
问题 I installed Alfresco Community v4.1 for use in my application. I want to access its contents (list files, add, delete etc.) using CMIS REST API . I don't find any example for the endpoint I need to use. I implemented a small CMIS client (you can get information on it here) using Apache Chemistry and listing the contents of my user's space and I obtain this result: [Folder] workspace://SpacesStore/624914c7-3ca2-4937-a612-96f1df928cc1 - Dictionnaire de données [Folder] workspace://SpacesStore

How to Delete Document Using CMIS

隐身守侯 提交于 2019-12-03 23:15:57
I have Created a External web application using Servlets which is connected to alfresco repository. I am also able to upload document in to the repository, download document from repository. now my requirement is, i have to delete document based on user role. means i want to give delete document access to only site manager. Please provide sample code if you have. Thanks in Advance In order to delete a document you first need to see if the user have the role to delete this is why the answer will be split in two part Part 1 : search for authority in this part you will see if the user have the

Most efficient way to detect changes of a remote CMIS repository?

删除回忆录丶 提交于 2019-12-03 16:38:14
A remote CMIS repository contains many folders/files. I am writing a software that keeps a local copy of these folders/files in sync. At first run I just download everything recursively. At later runs, I check what has changed, and download any changes. What is the most efficient way to check the remote changes? (additional/removal of files/folders) Most efficient = Least bandwidth usage. I can only use the CMIS protocol , and I can not run any custom software on the remote server. My ideas so far: Idea 1: Re-download everthing every time. Idea 2: Check the root folder's modification date,

Connecting via CMIS (dotCMIS) to SP2010: exception unauthorised

余生颓废 提交于 2019-12-02 21:26:09
问题 Im using dotCMIS and would like to do a simple connect to my SP2010 server. Im trying to do this with C# like here http://chemistry.apache.org/dotnet/getting-started-with-dotcmis.html in the first part So I have something like this: Dictionary<string, string> parameters = new Dictionary<string, string>(); parameters[SessionParameter.BindingType] = BindingType.AtomPub; parameters[SessionParameter.AtomPubUrl] = "http://mysharepoint"; parameters[SessionParameter.User] = "SPAdmin"; parameters

How can I access files in Alfresco using the CMIS REST API?

佐手、 提交于 2019-12-02 11:44:07
I installed Alfresco Community v4.1 for use in my application. I want to access its contents (list files, add, delete etc.) using CMIS REST API . I don't find any example for the endpoint I need to use. I implemented a small CMIS client (you can get information on it here) using Apache Chemistry and listing the contents of my user's space and I obtain this result: [Folder] workspace://SpacesStore/624914c7-3ca2-4937-a612-96f1df928cc1 - Dictionnaire de données [Folder] workspace://SpacesStore/846c69d4-4ec2-44c8-972d-f975d9b98d41 - Modèles d'espace [Folder] workspace://SpacesStore/09fe45df-9cba

How to filter folder children using cmis query?

爱⌒轻易说出口 提交于 2019-12-02 11:35:13
I would like to filter the children of folders from a cmis 1.0 compliant repository with one query. So far that doesn't seem to be possible so I have settled to execute two queries to retrieve the children (i.e. folders and documents), however would still like to filter children by custom types so I have the following query: SELECT cmis:objectTypeId, cmis:objectId FROM cmis:folder WHERE cmis:objectTypeId = 'my:custom1' OR cmis:objectTypeId = 'my:custom2' OR cmis:objectTypeId = 'cmis:folder' IN_FOLDER('workspace://SpacesStore/fhj738tw-45hW-659u-9DS1-9cX3Nh95r089') Which doesn't work as I keep

How to manage access permission in alfresco

被刻印的时光 ゝ 提交于 2019-12-02 09:47:30
Hello Everyone thank's in advance for your help. I am trying to configure access permission in alfresco and now stuck in a scenario It would be great help if someone defines proper way to achieve this functionality now my problem is I want to create a site (which will be accessible by all user) then will create folder and sub folder in that site (i am ready to customize content type of those folder if required) now i want to configure alfresco in such a way that specific set of user can access specific folder and it's content for example This is list of user user1,user2,user3,user4,user5 And

Connecting via CMIS (dotCMIS) to SP2010: exception unauthorised

只谈情不闲聊 提交于 2019-12-02 09:45:34
Im using dotCMIS and would like to do a simple connect to my SP2010 server. Im trying to do this with C# like here http://chemistry.apache.org/dotnet/getting-started-with-dotcmis.html in the first part So I have something like this: Dictionary<string, string> parameters = new Dictionary<string, string>(); parameters[SessionParameter.BindingType] = BindingType.AtomPub; parameters[SessionParameter.AtomPubUrl] = "http://mysharepoint"; parameters[SessionParameter.User] = "SPAdmin"; parameters[SessionParameter.Password] = "1234sharepoint"; SessionFactory factory = SessionFactory.NewInstance();