Package org.alfresco.repo.web.scripts
Class WebScriptUtil
java.lang.Object
org.alfresco.repo.web.scripts.WebScriptUtil
- Since:
- 4.0
- Author:
- Nick Smith
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildCalendarModel
(Calendar calendar) buildDateModel
(Date dateTime) createBaseModel
(List<Map<String, Object>> results) 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 NodeRef
getNodeRef
(Map<String, String> params) static NodeRef
resolveNodeReference
(String reference, NodeLocatorService nodeLocatorService)
-
Field Details
-
DATA_KEY
- See Also:
-
STORE_PROTOCOL
- See Also:
-
STORE_ID
- See Also:
-
NODE_ID
- See Also:
-
DATE_TIME
- See Also:
-
FORMAT
- See Also:
-
TIME_ZONE
- See Also:
-
ISO8601
- See Also:
-
-
Constructor Details
-
WebScriptUtil
public WebScriptUtil()
-
-
Method Details
-
getContent
public static String getContent(org.springframework.extensions.webscripts.WebScriptRequest request) throws IOException - Throws:
IOException
-
buildCalendarModel
-
buildDateModel
-
getCalendar
- Throws:
ParseException
-
getDate
- Throws:
ParseException
-
createBaseModel
-
createBaseModel
-
getNodeRef
-
resolveNodeReference
-