since ‎30-05-2017
‎10-12-2019
ab86711137
Level 1
Programmatically Upload a file(nt:file) to dynamic content path ab86711137 - Adobe Experience Manager
Hi,I want to achieve a functionality to allow authors upload files to the content tree. Is there a API method already available which takes input as 1. local drive file path 2. content path, and uploads the file to destined content path? Basically i want to achieve the functionality that is already available at http://localhost:4502/miscadmin#/etc, where an author can upload a file using "New File" option, but this is not available for content tree.I want this to be made available creating a sep...
50
Views
0
Likes
0
Answers and Comments
How to get if the user has read permission on a given path using code. ab86711137 - Adobe Experience Cloud
I want to get if the logged-in user has read permission to a specified path. Please suggest to achieve it via code.
233
Views
0
Likes
1
Answers and Comments
Different date-time on author and publish due to server timezone difference ab86711137 - Adobe Experience Manager
Hi,I have my Author and Publish app servers in different locations and due to this i am having issues when i try fetching time from a date property.node = hit.getNode(); String dateField = node.getProperty("start").getValue().getString(); out.println(dateField); //2015-04-20T07:15:00.000-05:00 Property startProp = node.getProperty("start"); Calendar startCal = startProp.getDate(); String formattedDate = new SimpleDateFormat("yyyy-MM-dd hh:mm aa").format(startCal.getTime()); out.println("Output= ...
164
Views
0
Likes
2
Answers and Comments
How to get if the user has read permission on a given path using code. ab86711137 - Adobe Experience Manager
I want to get if the logged-in user has read permission to a specified path. Please suggest to achieve it via code.
183
Views
0
Likes
1
Answers and Comments
Terminate a workflow using the payload(type: JCR_PATH) in code implementation? ab86711137 - Adobe Experience Manager
I could find the below code while searching:Workflow workflow = wfSession.getWorkflow(workItem.getWorkflow().getId());wfSession.terminateWorkflow(workflow);Is the above implementation correct to achieve the goal?How should the definition for wfSession and workItem objects look like?Where/How do i use the payload, to fetch the instance id of the workflow?
535
Views
0
Likes
1
Answers and Comments
Enable auto-login to user in CQ author environment(5.6.1) as per the user id ab86711137 - Adobe Experience Manager
I am trying to fetch the user password using the user id to enable auto-login to CQ author environment.Below is what i have been trying:Session jcrSession = resourceResolver.adaptTo(Session.class); UserManager userManager = AccessControlUtil.getUserManager(jcrSession); Authorizable authorizable = userManager.getAuthorizable(USER_ID); User user = null; if (authorizable instanceof User) { user = (User)authorizable; } SimpleCredentials credential = (SimpleCredentials)user.getCredentials(); char[] p...
495
Views
0
Likes
1
Answers and Comments