public class PortalUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.List<java.lang.String> |
attachment_Url_Prefix_List |
Constructor and Description |
---|
PortalUtils() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.Object> |
convertJsonToMap(JSONObject json) |
static java.lang.String |
createUrlFromParams(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> params) |
static java.lang.String[] |
getArrayFromJsonArray(JSONArray jsonArray) |
static java.lang.String |
getAttachmentContentTypeKey(java.lang.String attachmentKey) |
static BundleContext |
getBundleContext() |
static ResourceResolver |
getFnDServiceResolver(ResourceResolverFactory resolverFactory) |
static Session |
getFnDServiceUserSession(SlingRepository repository) |
static java.lang.String |
getGuideContainerPathFromFormPath(java.lang.String formPath) |
static java.lang.String |
getRequestParamValue(SlingHttpServletRequest req,
java.lang.String param) |
static java.lang.Object |
getService(java.lang.Class<?> c,
java.lang.String filter) |
static java.lang.String |
getSignConfigFromGuideContainer(java.lang.String guideContainerPath,
Session session) |
static boolean |
isDorAssociated(java.lang.String formType,
Node metadataNode) |
static void |
replicate(Session session,
java.lang.String path,
ReplicationActionType replAction,
Replicator replicator) |
static void |
reverseReplicate(Session session,
java.lang.String path,
ReplicationActionType replAction,
Replicator replicator,
java.lang.String[] outBoxIDs) |
static void |
setBundleContext(BundleContext context) |
static java.lang.StringBuffer |
updateAttachmentListUrl(java.lang.String[] attachmentUrlArray,
java.lang.String type,
java.lang.String currentId)
The below method has been extracted out to fix the attachment url for draft,submission and Pending Sign, also handles and fixes
url for the new instance submission
|
static JSONObject |
updateAttachmentMap(java.lang.String id,
java.lang.String fileAttachmentMap,
java.lang.String type)
This method updates the obselete map in case of draft/submission and pending Sign instances
|
static void |
updatePropertiesOnNode(java.util.Map<java.lang.String,java.lang.Object> propertiesMap,
Node node) |
public static final java.util.List<java.lang.String> attachment_Url_Prefix_List
public static BundleContext getBundleContext()
public static void setBundleContext(BundleContext context)
public static Session getFnDServiceUserSession(SlingRepository repository) throws LoginException, RepositoryException
LoginException
RepositoryException
public static ResourceResolver getFnDServiceResolver(ResourceResolverFactory resolverFactory) throws LoginException
LoginException
public static void reverseReplicate(Session session, java.lang.String path, ReplicationActionType replAction, Replicator replicator, java.lang.String[] outBoxIDs) throws FormsPortalException, LoginException, ReplicationException
public static void replicate(Session session, java.lang.String path, ReplicationActionType replAction, Replicator replicator) throws FormsPortalException, LoginException, ReplicationException
public static java.lang.Object getService(java.lang.Class<?> c, java.lang.String filter) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getRequestParamValue(SlingHttpServletRequest req, java.lang.String param)
public static java.lang.String createUrlFromParams(java.lang.String url, java.util.Map<java.lang.String,java.lang.String> params)
public static JSONObject updateAttachmentMap(java.lang.String id, java.lang.String fileAttachmentMap, java.lang.String type)
id
- fileAttachmentMap
- type
- public static java.lang.String getGuideContainerPathFromFormPath(java.lang.String formPath)
public static void updatePropertiesOnNode(java.util.Map<java.lang.String,java.lang.Object> propertiesMap, Node node) throws RepositoryException
RepositoryException
public static boolean isDorAssociated(java.lang.String formType, Node metadataNode) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getAttachmentContentTypeKey(java.lang.String attachmentKey)
public static java.util.Map<java.lang.String,java.lang.Object> convertJsonToMap(JSONObject json) throws JSONException
JSONException
public static java.lang.String getSignConfigFromGuideContainer(java.lang.String guideContainerPath, Session session) throws RepositoryException
RepositoryException
public static java.lang.StringBuffer updateAttachmentListUrl(java.lang.String[] attachmentUrlArray, java.lang.String type, java.lang.String currentId)
attachmentUrlArray
- type
- currentId
- public static java.lang.String[] getArrayFromJsonArray(JSONArray jsonArray) throws JSONException
JSONException
Copyright © 2010 - 2020 Adobe. All Rights Reserved