|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.netmarkets.rule.NmRuleCommands
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static String |
CONTENT_DISPOSITION
|
private static String |
CONTENT_LENGTH
|
private static String |
DEFAULT_DOWNLOAD_COMPOSITE_ACTION
|
private static String |
DEFAULT_DOWNLOAD_FILENAME
|
private static int |
DEFAULT_DOWNLOAD_TIMEOUT
|
private static String |
DOWNLOAD_COMPOSITE_ACTION
|
private static int |
DOWNLOAD_TIMEOUT
|
private static String |
DTD_FILE_EXT
|
private static String |
RESOURCE
|
private static String |
SERVER_CODEBASE
|
private static String |
WT_HOME
|
private static String |
XML_FILE_EXT
|
private static String |
XML_MIME_TYPE
|
Constructor Summary | |
NmRuleCommands()
|
Method Summary | |
private static String |
addQueryParam(String url,
String name,
Hashtable values,
EncodingConverter encoder,
boolean first)
Adds the parameter named name to the specified
url . |
static NmChangeModel[] |
create(NmCommandBean cb)
Create a new rule using the data provided in the request. |
static NmChangeModel[] |
disable(NmCommandBean cb)
Disable the specified rule (if it is not already disabled). |
static void |
download(NmCommandBean cb)
Download the XML contents of the rule to the client. |
private static void |
download(NmRule rule,
javax.servlet.http.HttpServletResponse response)
|
static void |
downloadComposite(NmCommandBean cb)
Download the XML for the composite rule for the specified type to the client. |
static void |
downloadDTD(NmCommandBean cb)
Download the INIT rule DTD to the client. |
static NmChangeModel[] |
enable(NmCommandBean cb)
Enable the specified rule (if it is not already enabled). |
private static String |
getDownloadCompositeURL(Hashtable params)
Create the URL that can be used to generate the
composite rule XML . |
static NmRule |
getRuleProperties(NmCommandBean cb)
Get a NmRule object for the rule specified in the request. |
static NmRule |
getRuleProperties(NmCommandBean cb,
boolean includeContents)
Get a NmRule object for the rule specified in the request. |
static NmHTMLTable |
list(NmCommandBean cb)
Produce a table listing of the rules that exist in a particular container. |
static ArrayList |
listRulesForType(String className,
NmOid projectOid)
Supported API: false |
static void |
requestDownloadComposite(NmCommandBean cb)
Request that the XML for a composite rule be downloaded to the client. |
static NmChangeModel[] |
update(NmCommandBean cb)
Update the rule using the data contained in the equest. |
static NmModel |
view(NmCommandBean cb)
Supported API: false |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final String CONTENT_DISPOSITION
private static final String CONTENT_LENGTH
private static final String XML_MIME_TYPE
private static final String XML_FILE_EXT
private static final String DTD_FILE_EXT
private static final String DEFAULT_DOWNLOAD_FILENAME
private static final int DOWNLOAD_TIMEOUT
private static final int DEFAULT_DOWNLOAD_TIMEOUT
private static final String DOWNLOAD_COMPOSITE_ACTION
private static final String DEFAULT_DOWNLOAD_COMPOSITE_ACTION
private static final String SERVER_CODEBASE
private static final String WT_HOME
Constructor Detail |
public NmRuleCommands()
Method Detail |
public static NmChangeModel[] create(NmCommandBean cb) throws WTException
cb
-
WTException
public static void download(NmCommandBean cb) throws WTException, IOException
cb
-
WTException
IOException
public static NmChangeModel[] enable(NmCommandBean cb) throws WTException
cb
-
WTException
public static NmChangeModel[] disable(NmCommandBean cb) throws WTException
cb
-
WTException
public static NmHTMLTable list(NmCommandBean cb) throws WTException
cb
-
WTException
public static NmChangeModel[] update(NmCommandBean cb) throws WTException
cb
-
WTException
public static NmRule getRuleProperties(NmCommandBean cb) throws WTException
NmRule
object for the rule specified in the request.
Don't include the XML contents in the returned NmRule
.
cb
-
WTException
public static NmRule getRuleProperties(NmCommandBean cb, boolean includeContents) throws WTException
NmRule
object for the rule specified in the request.
Include the XML contents in the returned NmRule
if includeContents
is true. Otherwise, omit the XML contents.
cb
- includeContents
- if true, include rule's the XML contents in the returned NmRule
WTException
public static ArrayList listRulesForType(String className, NmOid projectOid) throws WTException
className
- projectOid
-
WTException
public static void downloadDTD(NmCommandBean cb) throws WTException
INIT
rule DTD to the client.
cb
- the command bean
WTException
public static void requestDownloadComposite(NmCommandBean cb) throws WTException, IOException
cb
- the command bean
WTException
IOException
public static void downloadComposite(NmCommandBean cb) throws WTException, IOException
cb
- the command bean
WTException
IOException
private static final String getDownloadCompositeURL(Hashtable params)
URL
that can be used to generate the
composite rule XML
.
params
- the request parameters
private static final String addQueryParam(String url, String name, Hashtable values, EncodingConverter encoder, boolean first)
name
to the specified
url
. The new url is returned.
private static final void download(NmRule rule, javax.servlet.http.HttpServletResponse response) throws IOException
IOException
public static NmModel view(NmCommandBean cb) throws WTException
cb
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |