alfresco

Alfresco webscript to get the list of all files and folder with their size

≡放荡痞女 提交于 2019-12-02 13:56:13
Need a js based alfresco webscript to get the list of all folders and files recursively alond with their size. CMIS Query: select cmis:objectId, cmis:name, cmis:contentStreamLength from cmis:document where cmis:contentStreamLength>0 order by cmis:contentStreamLength desc HTTP GET: http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/ ?cmisselector=query &succinct=true &q=select cmis:objectId, cmis:name, cmis:contentStreamLength from cmis:document where cmis:contentStreamLength>0 order by cmis:contentStreamLength desc JavaScript: Use search root object : search - org

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

Connection with alfresco cmis

依然范特西╮ 提交于 2019-12-02 09:25:51
I am trying to connect alfresco using config parameters but i am getting error: Config: sessionParameters.put(SessionParameter.USER, "admin"); sessionParameters.put(SessionParameter.PASSWORD, "admin"); sessionParameters.put(SessionParameter.ATOMPUB_URL, "http://localhost:8080/alfresco/service/cmis"); sessionParameters.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value()); sessionParameters.put(SessionParameter.REPOSITORY_ID, "CIPBASE"); sessionParameters.put(SessionParameter.AUTH_HTTP_BASIC, "true" ); sessionParameters.put(SessionParameter.COOKIES, "true" ); Error is: org.apache

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 create site in share programmatically?

混江龙づ霸主 提交于 2019-12-02 08:06:31
This topic has been up quite some times in the community (forums, blog posts etc) and the conclusion is that this should be done making a REST Post call to share and the url /service/modules/create-site The reason is that some surf specific stuff like the site dashboard are created from the share side. However, I have been trying this approach from different angles all day, always ending up with a HTTP 200 in the response and no share site created. Quite frustrating. I'm running this on Alfresco Enterprise 4.2.3.3 (I suspect my problems is due to a recent change) To strip this down to

Alfresco share login issue

荒凉一梦 提交于 2019-12-02 07:28:59
I found some issue with my local installation of alfresco share. When I try to login using http://localhost:8080/share it returns to me this error message: The remote server may be unavailable or your authentication details have not been recognized On my log I can see that: 12:02:28,491 http-8080-1 DEBUG [commons.httpclient.HttpClient] Java version: 1.6.0_26 12:02:28,492 http-8080-1 DEBUG [commons.httpclient.HttpClient] Java vendor: Apple Inc. 12:02:28,493 http-8080-1 DEBUG [commons.httpclient.HttpClient] Java class path: /Users/andrea.girardi/Documents/Works/Project/alfresco-3.4.e/tomcat/bin

Disable the user home folder creation

为君一笑 提交于 2019-12-02 06:12:06
When the admin user create the user, I customize the code to switch on and off "homeFolderCreationEager" but it can only delay the creation of the folder. When the corresponding user logs in, the folder for that user is automatically created. How can I prevent this from happening ? Any kind help is appreciated. As stated in the wiki , you can configure the users to share the Company Home space. If you're using LDAP synchronization, you can configure it with ldap.synchronization.defaultHomeFolderProvider=companyHomeFolderProvider Otherwise you need to overrule the default Spring configuration

How do I disable Alfresco main menu items?

被刻印的时光 ゝ 提交于 2019-12-02 05:15:22
问题 The main menu on the Alfresco Share app contains a couple of items that the project team for our deployment wants to have disabled. Specifically "My Files" and "Shared Files". Hiding would be good enough, but if we can disable them completely that would be best. Those are functions that the users are not to have any access to. All their interactions should be through the sites. Is there an Alfresco supported (as in "won't break when we upgrade versions") way to do this? 回答1: You have blog