public class AccessURIGenerator extends Object
Copyright (c) SAP AG 2004-2005
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTION_DAVMOUNT
Action key: dispatch WebDAV mount request to client
|
static String |
ACTION_DOWNLOAD
Action key: Download the content of a single resource
|
static String |
ACTION_ZIP_DOWNLOAD
Action key: Download the content as a ZIP file.
|
static String |
ACTION_ZIP_DOWNLOAD_RID_LIST
Action key: Download the content as a ZIP file.
|
static String |
ACTION_ZIP_DOWNLOAD_SHOPPING_BASKET
Action key: Download the content as a ZIP file.
|
| Modifier and Type | Method and Description |
|---|---|
IUriReference |
getAccessUri(IResource resource,
String action) |
IUriReference |
getAccessUri(IResource resource,
String action,
String zipFileName)
Constructs a URI reference to initiate a special action inside the WDGetHandler,
such as the download of a resource.
|
static AccessURIGenerator |
getInstance() |
public static final String ACTION_DAVMOUNT
public static final String ACTION_DOWNLOAD
public static final String ACTION_ZIP_DOWNLOAD
public static final String ACTION_ZIP_DOWNLOAD_SHOPPING_BASKET
public static final String ACTION_ZIP_DOWNLOAD_RID_LIST
{http://sapportals.com/xmlns/cm}rid_list.
Each value is interpreted as a RID and the referenced resource is added to the returned ZIP file.public static AccessURIGenerator getInstance()
public IUriReference getAccessUri(IResource resource, String action) throws ResourceException, WcmException
resource - The resource for which the URI reference is to be generatedaction - One of the action key constants defined in this classResourceException - no descriptionWcmException - no descriptionACTION_DAVMOUNT,
ACTION_DOWNLOAD,
ACTION_ZIP_DOWNLOAD,
ACTION_ZIP_DOWNLOAD_SHOPPING_BASKETpublic IUriReference getAccessUri(IResource resource, String action, String zipFileName) throws ResourceException, WcmException
resource - The resource for which the URI reference is to be generatedaction - One of the action key constants defined in this classzipFileName - If the chosen action causes a zip file to be sent to the client then this
parameter will set the default name of this file. If null then the resource name
will be used by default.ResourceException - no descriptionWcmExceptionACTION_DOWNLOAD,
ACTION_ZIP_DOWNLOAD,
ACTION_ZIP_DOWNLOAD_SHOPPING_BASKET| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice