com.ptc.netmarkets.library
Class SaveAsLibraryTemplateNavBarURLActionDelegate

java.lang.Object
  extended bywt.templateutil.processor.DefaultNavBarActionDelegate
      extended bywt.templateutil.processor.DefaultNavBarURLActionDelegate
          extended bycom.ptc.netmarkets.library.SaveAsLibraryTemplateNavBarURLActionDelegate
All Implemented Interfaces:
ActionDelegate, NavBarActionDelegate, NavBarURLActionDelegate, URLActionDelegate

public class SaveAsLibraryTemplateNavBarURLActionDelegate
extends DefaultNavBarURLActionDelegate
implements NavBarURLActionDelegate


Field Summary
private static String jspURL
           
private static boolean VERBOSE
           
 
Fields inherited from class wt.templateutil.processor.DefaultNavBarURLActionDelegate
helper
 
Fields inherited from class wt.templateutil.processor.DefaultNavBarActionDelegate
CONTEXT_SERVICE_NAME
 
Fields inherited from interface wt.enterprise.URLActionDelegate
ACTION_NAME, CLASS_URL
 
Constructor Summary
SaveAsLibraryTemplateNavBarURLActionDelegate()
           
 
Method Summary
 Boolean enableable(Object object)
          Make sure the current user is an administrator

Supported API: false
 boolean isURLProvider(HashMap queryValueMap, Object object)
          Returns boolean flag indicating if the the current HashMap of name values pairs from the QueryString was generated by the current NavBarURLActionDelegate.
 String URL(Object object)
          Returns a URL which when selected will perform the action on the object.
 
Methods inherited from class wt.templateutil.processor.DefaultNavBarURLActionDelegate
getActionName, getClassURL, getState, getURLLabel, setActionName, setClassURL, setMethod, setResourceBundleStr, setResourceKey, setState
 
Methods inherited from class wt.templateutil.processor.DefaultNavBarActionDelegate
getContextServiceName, setContextServiceName, valid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface wt.templateutil.processor.NavBarURLActionDelegate
setMethod, setResourceBundleStr, setResourceKey, setState
 
Methods inherited from interface wt.enterprise.URLActionDelegate
getActionName, getClassURL, getURLLabel, setActionName, setClassURL
 

Field Detail

jspURL

private static final String jspURL
See Also:
Constant Field Values

VERBOSE

private static final boolean VERBOSE
Constructor Detail

SaveAsLibraryTemplateNavBarURLActionDelegate

public SaveAsLibraryTemplateNavBarURLActionDelegate()
Method Detail

enableable

public Boolean enableable(Object object)
                   throws WTException
Make sure the current user is an administrator

Supported API: false

Specified by:
enableable in interface ActionDelegate
Overrides:
enableable in class DefaultNavBarActionDelegate
Parameters:
object - The object that you wish to set enabled.
Returns:
Boolean
Throws:
WTException

isURLProvider

public boolean isURLProvider(HashMap queryValueMap,
                             Object object)
Description copied from interface: NavBarURLActionDelegate
Returns boolean flag indicating if the the current HashMap of name values pairs from the QueryString was generated by the current NavBarURLActionDelegate.

Supported API: true

Specified by:
isURLProvider in interface NavBarURLActionDelegate
Overrides:
isURLProvider in class DefaultNavBarURLActionDelegate
Parameters:
queryValueMap - The Name-Value pairs from the Query String
object - The target object used to generate the Url
Returns:
boolean

URL

public String URL(Object object)
           throws WTException
Description copied from interface: URLActionDelegate
Returns a URL which when selected will perform the action on the object. This method should not be called when the concrete URLActionDelegate class is unknown. In that case, call BasicTemplateProcessor.getURLFromDelegate() instead.

Supported API: true

Specified by:
URL in interface URLActionDelegate
Overrides:
URL in class DefaultNavBarURLActionDelegate
Parameters:
object -
Returns:
String
Throws:
WTException