Package org.alfresco.repo.web.scripts
Class WebScriptUtil
- java.lang.Object
-
- org.alfresco.repo.web.scripts.WebScriptUtil
-
public class WebScriptUtil extends Object
- Since:
- 4.0
- Author:
- Nick Smith
-
-
Constructor Summary
Constructors Constructor Description WebScriptUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,Object>
buildCalendarModel(Calendar calendar)
static Map<String,Object>
buildDateModel(Date dateTime)
static Map<String,Object>
createBaseModel(List<Map<String,Object>> results)
static Map<String,Object>
createBaseModel(Map<String,Object> result)
static Calendar
getCalendar(org.json.JSONObject json)
static String
getContent(org.springframework.extensions.webscripts.WebScriptRequest request)
static Date
getDate(org.json.JSONObject json)
static org.alfresco.service.cmr.repository.NodeRef
getNodeRef(Map<String,String> params)
static org.alfresco.service.cmr.repository.NodeRef
resolveNodeReference(String reference, org.alfresco.repo.nodelocator.NodeLocatorService nodeLocatorService)
-
-
-
Field Detail
-
DATA_KEY
public static final String DATA_KEY
- See Also:
- Constant Field Values
-
STORE_PROTOCOL
public static final String STORE_PROTOCOL
- See Also:
- Constant Field Values
-
STORE_ID
public static final String STORE_ID
- See Also:
- Constant Field Values
-
NODE_ID
public static final String NODE_ID
- See Also:
- Constant Field Values
-
DATE_TIME
public static final String DATE_TIME
- See Also:
- Constant Field Values
-
FORMAT
public static final String FORMAT
- See Also:
- Constant Field Values
-
TIME_ZONE
public static final String TIME_ZONE
- See Also:
- Constant Field Values
-
ISO8601
public static final String ISO8601
- See Also:
- Constant Field Values
-
-
Method Detail
-
getContent
public static String getContent(org.springframework.extensions.webscripts.WebScriptRequest request) throws IOException
- Throws:
IOException
-
getCalendar
public static Calendar getCalendar(org.json.JSONObject json) throws ParseException
- Throws:
ParseException
-
getDate
public static Date getDate(org.json.JSONObject json) throws ParseException
- Throws:
ParseException
-
createBaseModel
public static Map<String,Object> createBaseModel(List<Map<String,Object>> results)
-
getNodeRef
public static org.alfresco.service.cmr.repository.NodeRef getNodeRef(Map<String,String> params)
-
resolveNodeReference
public static org.alfresco.service.cmr.repository.NodeRef resolveNodeReference(String reference, org.alfresco.repo.nodelocator.NodeLocatorService nodeLocatorService)
-
-