org.alfresco.repo.web.scripts
Class WebScriptUtil

java.lang.Object
  extended by org.alfresco.repo.web.scripts.WebScriptUtil

public class WebScriptUtil
extends java.lang.Object

Since:
4.0

Field Summary
static java.lang.String DATA_KEY
           
static java.lang.String DATE_TIME
           
static java.lang.String FORMAT
           
static java.lang.String ISO8601
           
static java.lang.String NODE_ID
           
static java.lang.String STORE_ID
           
static java.lang.String STORE_PROTOCOL
           
static java.lang.String TIME_ZONE
           
 
Constructor Summary
WebScriptUtil()
           
 
Method Summary
static java.util.Map buildCalendarModel(java.util.Calendar calendar)
           
static java.util.Map buildDateModel(java.util.Date dateTime)
           
static java.util.Map createBaseModel(java.util.List results)
           
static java.util.Map createBaseModel(java.util.Map result)
           
static java.util.Calendar getCalendar(org.json.JSONObject json)
           
static java.lang.String getContent(org.springframework.extensions.webscripts.WebScriptRequest request)
           
static java.util.Date getDate(org.json.JSONObject json)
           
static org.alfresco.service.cmr.repository.NodeRef getNodeRef(java.util.Map params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATA_KEY

public static final java.lang.String DATA_KEY
See Also:
Constant Field Values

STORE_PROTOCOL

public static final java.lang.String STORE_PROTOCOL
See Also:
Constant Field Values

STORE_ID

public static final java.lang.String STORE_ID
See Also:
Constant Field Values

NODE_ID

public static final java.lang.String NODE_ID
See Also:
Constant Field Values

DATE_TIME

public static final java.lang.String DATE_TIME
See Also:
Constant Field Values

FORMAT

public static final java.lang.String FORMAT
See Also:
Constant Field Values

TIME_ZONE

public static final java.lang.String TIME_ZONE
See Also:
Constant Field Values

ISO8601

public static final java.lang.String ISO8601
See Also:
Constant Field Values
Constructor Detail

WebScriptUtil

public WebScriptUtil()
Method Detail

getContent

public static java.lang.String getContent(org.springframework.extensions.webscripts.WebScriptRequest request)
                                   throws java.io.IOException
Throws:
java.io.IOException

buildCalendarModel

public static java.util.Map buildCalendarModel(java.util.Calendar calendar)

buildDateModel

public static java.util.Map buildDateModel(java.util.Date dateTime)

getCalendar

public static java.util.Calendar getCalendar(org.json.JSONObject json)
                                      throws java.text.ParseException
Throws:
java.text.ParseException

getDate

public static java.util.Date getDate(org.json.JSONObject json)
                              throws java.text.ParseException
Throws:
java.text.ParseException

createBaseModel

public static java.util.Map createBaseModel(java.util.Map result)

createBaseModel

public static java.util.Map createBaseModel(java.util.List results)

getNodeRef

public static org.alfresco.service.cmr.repository.NodeRef getNodeRef(java.util.Map params)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.