|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.cms.dispatcher.Utilities
This class provides many utility functions for the Content Management System.
Field Summary | |
static String |
CMS_SERVICE
|
static String |
CMS_WORKSPACE
|
static org.apache.log4j.Logger |
LOG
|
static String |
versionId
|
Constructor Summary | |
Utilities()
|
Method Summary | |
static void |
disableBrowserCache(javax.servlet.http.HttpServletResponse response)
Deprecated. use com.arsdigita.dispatcher.DispatcherHelper.cacheDisable(HttpServletResponse) |
static String |
getAssetURL(BigDecimal assetId)
Constuct a URL which serves a binary asset. |
static String |
getAssetURL(BinaryAsset asset)
Constuct a URL which serves a binary asset. |
static com.arsdigita.kernel.User |
getCurrentUser(javax.servlet.http.HttpServletRequest request)
Deprecated. use KernelContext.getParty() |
static String |
getGlobalAssetsURL()
|
static String |
getImageOID(ImageAsset asset)
Constuct an oid for the image. |
static String |
getImageURL(ImageAsset asset)
Constuct a URL which serves an image. |
static Date |
getLastSectionRefresh()
Check for the last refresh on authoring kits or content types in any section. |
static Date |
getLastSectionRefresh(ContentSection section)
Check for the last refresh on authoring kits or content types in a section. |
static String |
getLogoutURL()
The URL to log out. |
static SecurityManager |
getSecurityManager(com.arsdigita.bebop.PageState state)
Fetch the security manager. |
static String |
getServiceURL()
Fetch the location of the CMS Services package. |
static String |
getWebappContext()
Fetch the context path of the request. |
static String |
getWorkspaceURL()
Fetch the location of the CMS Workspace package. |
static void |
refreshAdminUI(com.arsdigita.bebop.PageState state)
Force the authoring UI to reload. |
static void |
refreshItemUI(com.arsdigita.bebop.PageState state)
Force the authoring UI to reload. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String versionId
public static final String CMS_WORKSPACE
public static final String CMS_SERVICE
public static final org.apache.log4j.Logger LOG
Constructor Detail |
public Utilities()
Method Detail |
public static String getWorkspaceURL()
public static String getServiceURL()
public static String getLogoutURL()
public static String getAssetURL(BinaryAsset asset)
asset
- The binary asset
public static String getAssetURL(BigDecimal assetId)
assetId
- The asset ID
public static String getImageURL(ImageAsset asset)
asset
- The image asset whose image is to be served
public static String getImageOID(ImageAsset asset)
asset
- The image asset whose image is to be served
public static String getGlobalAssetsURL()
public static String getWebappContext()
public static Date getLastSectionRefresh(ContentSection section)
public static Date getLastSectionRefresh()
public static void refreshItemUI(com.arsdigita.bebop.PageState state)
public static void refreshAdminUI(com.arsdigita.bebop.PageState state)
public static void disableBrowserCache(javax.servlet.http.HttpServletResponse response)
response
- The HTTP responsepublic static com.arsdigita.kernel.User getCurrentUser(javax.servlet.http.HttpServletRequest request)
KernelContext.getParty()
request
- The HTTP request
public static SecurityManager getSecurityManager(com.arsdigita.bebop.PageState state)
state
- The page state
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |