com.centrasite.control.ext
Class BasePerspective

java.lang.Object
  extended by com.softwareag.cis.plugin.extpt.util.AbstractExtensionImplementation
      extended by com.softwareag.cis.plugin.extpt.util.AbstractPerspective
          extended by com.centrasite.control.ext.BasePerspective
All Implemented Interfaces:
com.softwareag.cis.plugin.extpt.Perspective, com.softwareag.cis.plugin.interfaces.Component, com.softwareag.cis.plugin.registry.ExtensionImplementation
Direct Known Subclasses:
AdministrationPerspective, AssetRegistryPerspective, HomePagePerspective, OperationsPerspective, PoliciesPerspective, ReportsPerspective

public class BasePerspective
extends com.softwareag.cis.plugin.extpt.util.AbstractPerspective

Provides common functionality for CS Control perspectives.


Field Summary
static java.lang.String rcs_id
           
 
Constructor Summary
BasePerspective()
           
 
Method Summary
 java.lang.String getImageURL()
           
 java.lang.String getLogoImageURL()
           
 java.lang.String getSingleClickMethodName()
          returns the method name that should be called in case the perspective has no topic and should some event should be fired on Perspective selection.
 java.lang.String getTitle()
           
 com.softwareag.cis.server.util.ICONLISTInfo getToolbar()
          I-Release perspectives do not have global toolbar
 java.lang.String getView()
          I-Release perspectives do not provide for views
 java.lang.String getViewLabel()
          I-Release perspectives do not provide for views
 java.util.List getViewValues()
          I-Release perspectives do not provide for views
 java.lang.String getWorkplaceDefaultLayout()
          Default activity
 boolean hasTopicTree()
           
 boolean isSingeClickable()
           
 void reactOnSwitchSelectedPerspective(com.softwareag.cis.plugin.extpt.Perspective oldPerspective, com.softwareag.cis.plugin.extpt.Perspective newPerspective)
          Notify perspective about change of visible perspective - override in subclass if required
 boolean requiresInitialCallReactOnSwitchSelectedPerspective(com.softwareag.cis.plugin.util.ApplicationContext ac)
          By default method reactOnSwitchSelectedPerspective is called on user selection only.
 void setView(java.lang.String view)
          I-Release perspectives do not provide for views.
 void setWorkplaceContext(com.softwareag.cis.plugin.extpt.util.WorkplaceContext wc)
          Initialize this Perspective - the WorkplaceContext is passed for potential callbacks
 boolean supportsViews()
          Check whether this Perspective supports a view selection list box
 
Methods inherited from class com.softwareag.cis.plugin.extpt.util.AbstractPerspective
addTopic, containsTopic, getId, getSelectedTopic, getTopics, isEnabled, isVisible, isVisible, setEnabled, setSelectedTopic, setVisible, toString
 
Methods inherited from class com.softwareag.cis.plugin.extpt.util.AbstractExtensionImplementation
getExtension, getPlugIn, popContextClassLoader, pushContextClassLoader, setExtension
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.softwareag.cis.plugin.registry.ExtensionImplementation
getExtension, getPlugIn, popContextClassLoader, pushContextClassLoader, setExtension
 

Field Detail

rcs_id

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

BasePerspective

public BasePerspective()
Method Detail

getImageURL

public java.lang.String getImageURL()

getLogoImageURL

public java.lang.String getLogoImageURL()

getTitle

public java.lang.String getTitle()

getToolbar

public com.softwareag.cis.server.util.ICONLISTInfo getToolbar()
I-Release perspectives do not have global toolbar

Returns:
returns null

getWorkplaceDefaultLayout

public java.lang.String getWorkplaceDefaultLayout()
Default activity


setView

public void setView(java.lang.String view)
I-Release perspectives do not provide for views. Method does nothing.


getView

public java.lang.String getView()
I-Release perspectives do not provide for views

Returns:
returns null

getViewLabel

public java.lang.String getViewLabel()
I-Release perspectives do not provide for views

Returns:
returns null

getViewValues

public java.util.List getViewValues()
I-Release perspectives do not provide for views

Returns:
returns null

isSingeClickable

public boolean isSingeClickable()
Specified by:
isSingeClickable in interface com.softwareag.cis.plugin.extpt.Perspective
Overrides:
isSingeClickable in class com.softwareag.cis.plugin.extpt.util.AbstractPerspective

getSingleClickMethodName

public java.lang.String getSingleClickMethodName()
returns the method name that should be called in case the perspective has no topic and should some event should be fired on Perspective selection. Note The implementationa of this method should be in DLHeaderAdapter class.

Specified by:
getSingleClickMethodName in interface com.softwareag.cis.plugin.extpt.Perspective
Overrides:
getSingleClickMethodName in class com.softwareag.cis.plugin.extpt.util.AbstractPerspective

supportsViews

public boolean supportsViews()
Check whether this Perspective supports a view selection list box

Specified by:
supportsViews in interface com.softwareag.cis.plugin.extpt.Perspective
Overrides:
supportsViews in class com.softwareag.cis.plugin.extpt.util.AbstractPerspective

hasTopicTree

public boolean hasTopicTree()
Specified by:
hasTopicTree in interface com.softwareag.cis.plugin.extpt.Perspective
Overrides:
hasTopicTree in class com.softwareag.cis.plugin.extpt.util.AbstractPerspective

setWorkplaceContext

public void setWorkplaceContext(com.softwareag.cis.plugin.extpt.util.WorkplaceContext wc)
Initialize this Perspective - the WorkplaceContext is passed for potential callbacks

Parameters:
wc -

reactOnSwitchSelectedPerspective

public void reactOnSwitchSelectedPerspective(com.softwareag.cis.plugin.extpt.Perspective oldPerspective,
                                             com.softwareag.cis.plugin.extpt.Perspective newPerspective)
Notify perspective about change of visible perspective - override in subclass if required

Specified by:
reactOnSwitchSelectedPerspective in interface com.softwareag.cis.plugin.extpt.Perspective
Overrides:
reactOnSwitchSelectedPerspective in class com.softwareag.cis.plugin.extpt.util.AbstractPerspective
Parameters:
oldPerspective - the perspective which was visible before, null if none
newPerspective - the perspective to become visible

requiresInitialCallReactOnSwitchSelectedPerspective

public boolean requiresInitialCallReactOnSwitchSelectedPerspective(com.softwareag.cis.plugin.util.ApplicationContext ac)
By default method reactOnSwitchSelectedPerspective is called on user selection only. Use this method to indicate that your perspective needs to have that notification callback also on user login

Specified by:
requiresInitialCallReactOnSwitchSelectedPerspective in interface com.softwareag.cis.plugin.extpt.Perspective
Overrides:
requiresInitialCallReactOnSwitchSelectedPerspective in class com.softwareag.cis.plugin.extpt.util.AbstractPerspective
Parameters:
ac - ApplicationContext instance
Returns:
true to be called with reactOnSwitchSelectedPerspective on user login otherwise false