alfresco

Auto Generate user passwords and directly sending mail to respective users about their login credentials in Alfresco [duplicate]

*爱你&永不变心* 提交于 2019-12-20 04:24:06
问题 This question already has an answer here : Auto-generation of email with username and random password on creation of new user (1 answer) Closed 3 years ago . My task is to do the following in Alfresco: When a user is created, the password is auto-generated and the login credentials being sent to the users email address directly, instead of the admin having to enter the password and sending it manually to the newly created users. Please guide me how to start and proceed in this... 回答1: You can

CmisObjectNotFoundException when trying to access my Alfresco repository

↘锁芯ラ 提交于 2019-12-20 03:37:05
问题 I'm new with CMIS and Alfresco and I got this error when in try to connect to my Alfresco's repository using AtomPUB binding. I have no idea about the source of my problem. Is it unless a functionality ? Is it my Credential ? When I install it, I choose only : - Alfresco community - Solr4 How should I do if I want to use web services ? Should I install a specific plugin in my Alfresco ? I got with error : SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/C

How to call synchronous ajax call in alfresco?

徘徊边缘 提交于 2019-12-20 03:27:10
问题 I have one custom property say XYZ. I want to validate it on blur event. I am calling one web-script using Ajax from JavaScript(Client) but its not waiting for server response and execute further code. I am using alfresco custom validation. I have done all coding regarding custom validation and it works fine. The issue is only script is not waiting for response and continue to execute further code. How can I make synchronous Ajax call using Alfresco.util.Ajax ? Following is my code and

Alfresco Creating a new user group that permits only creating user and groups

烈酒焚心 提交于 2019-12-20 03:15:32
问题 I want to create a new user group . The members in this user group can create new users and new groups. I think creating users or groups require admin permission. This user group does not have other admin permission except creating, editing and deleting user,group. Does alfresco provide this kind of group in alfresco community 4.0c? How can I implement it? How to add a new group with specified permission? I really appreciate for help. 回答1: You could add a custom role in permissionDefinitions

How to get all Child associations with a specific Association Type Alfresco (Java)

笑着哭i 提交于 2019-12-20 02:39:20
问题 i'm a total newbie to java and Alfresco and i have this simple problem: i need to get all child Associations of a noderef with Association Type = "risposteAssociate". In Javascript i do something like: var risposte = node.childAssocs["crl:risposteAssociate"]; In Java i have to do something like: List<ChildAssociationRef> risposteAssociate = nodeService.getChildAssocs(node,....); I've looked at the docs Here but i don't fully understand them. EDIT - If i can get the child associations, to

Dynamic selectone in alfresco share

自古美人都是妖i 提交于 2019-12-20 01:09:30
问题 For a form in Alfresco share, I want a dropdown box that is filled with custom options depending on the value of a field earlier up in the form. My form would have at least two fields. The first one a textbox, where a unique code must be entered. When that is done, the second one, a select box, must load it's options using the entered code. The data backing this requirement is stored in a Data list. I have also made it available through a webscript (along the lines of /getOptions/{uniqueCode

saving file in alfresco with Version and Download the latest version

◇◆丶佛笑我妖孽 提交于 2019-12-19 11:27:05
问题 I work with alfresco Community 4.0 and I used this jar alfresco-web-service-client-4.0.d.jar using this code I can save my test.pdf file in alfresco : File file = new File("C:/test.pdf"); saveAttachement(file,"test.pdf", "/app:company_home/cm:MyFolder", "admin", "admin") public String saveAttachement(File file, String name, String folderName, String userName, String pwd) throws Exception { byte[] contentByte = IOUtils.toByteArray(new FileInputStream(file)); // Start the session

Accessing values from Alfresco's alfresco-global.properties file

陌路散爱 提交于 2019-12-19 07:32:17
问题 Lets say I create a custom property called "test123" inside of the alfresco-global.properties file. Is there a custom object or some other way which I can use to access its value inside of a Java bean in Alfresco? 回答1: The Spring bean is called "global-properties" and it's a java.util.Properties type So you can inject it like that: <property name="properties"> <ref bean="global-properties"/> </property and add a properties property of type java.util.Properties to your bean 回答2: All properties

Alfresco CMIS query checking for NULL/Blank

吃可爱长大的小学妹 提交于 2019-12-14 03:58:32
问题 I want to check whether the Aspect property is present or not and if present it should not be blank... On some docs the aspect applied but no properties are populated. On some docs all the properties of aspect are populated but few are blank. I tried below queries.. select * from myType:myCase as d join myAspect:myTest as p on d.cmis:objectId = p.cmis:objectId WHERE CONTAINS(d, 'PATH:"//app:company_home/cm:DROP-FOLDER/*"') AND p:myAspect:caseId = '' I also tried p:myAspect:caseId = <> '' **p

Alfresco: How can I check if a value already exists in DB save new values?

99封情书 提交于 2019-12-14 03:32:59
问题 Alfresco In workflow form one fields values. I need to check values already exist in DB or not if exists don't save if not save different values. Is this possible? 回答1: You are saying "DB" but I will assume you mean "properties on an object stored in the Alfresco repository". If so, from JavaScript embedded in your workflow you can check a property value. If a property is named "foo:someProperty" then you can get it using doc.properties['foo:someProperty']. And you can get the object from the