oracle.panama.rt.hook
Class FolderRendererBean

java.lang.Object
  |
  +--oracle.panama.rt.hook.FolderRendererBean

public class FolderRendererBean
extends java.lang.Object


Constructor Summary
FolderRendererBean()
           
 
Method Summary
TypeMethod
 java.lang.String getBody(ServiceContext context)
          Helper to create the folder body
 Service[] getCurrentServices(ServiceContext context)
          Get all visible services in the given folder.
 Session getCurrentSession(ServiceContext context)
          Convenience method for getting the current session given a Service Context This method should probably move to the ServiceContext interface
 User getCurrentUser(ServiceContext context)
          Convenience method for getting the current user given a Service Context This method should probably move to the ServiceContext interface
 FolderSetupAction getEditPresetsAction(ServiceContext context)
           
 FolderSetupAction getEditServicesAction(ServiceContext context)
           
 FolderSetupAction getEditUserInfoAction(ServiceContext context)
           
 FolderSetupAction getEditUserProfileAction(ServiceContext context)
           
 java.lang.String getFolderName(ServiceContext context)
          Get the 'canonical' title to use for the current folder.
 java.lang.String getFooter(ServiceContext context)
          Add a footer with setup buttons etc.
 java.lang.String getHeader(ServiceContext context)
          Get the header of the current folder
static FolderRendererBean getInstance()
          The "thread-safe" singleton getter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FolderRendererBean

public FolderRendererBean()
Method Detail

getCurrentServices

public final Service[] getCurrentServices(ServiceContext context)
Get all visible services in the given folder. This will include all group services
Parameters:
Folder - the current folder
ServiceContext - the current service context
Returns:
Service[] list of current services

getCurrentSession

public final Session getCurrentSession(ServiceContext context)
Convenience method for getting the current session given a Service Context This method should probably move to the ServiceContext interface
Parameters:
ServiceContext - the current service context
Returns:
The current Session

getCurrentUser

public final User getCurrentUser(ServiceContext context)
Convenience method for getting the current user given a Service Context This method should probably move to the ServiceContext interface
Parameters:
ServiceContext - the current service context
Returns:
The current User

getEditPresetsAction

public final FolderSetupAction getEditPresetsAction(ServiceContext context)
Parameters:
ServiceContext - the current service context
Returns:
the action to use for editing user presets

getEditServicesAction

public final FolderSetupAction getEditServicesAction(ServiceContext context)
Parameters:
ServiceContext - the current service context
Returns:
the action to use for setting up services

getEditUserInfoAction

public final FolderSetupAction getEditUserInfoAction(ServiceContext context)
Parameters:
ServiceContext - the current service context
Returns:
the action to use for editing user info

getEditUserProfileAction

public final FolderSetupAction getEditUserProfileAction(ServiceContext context)
Parameters:
ServiceContext - the current service context
Returns:
the action to use for editing user profiles

getFolderName

public final java.lang.String getFolderName(ServiceContext context)
Get the 'canonical' title to use for the current folder. If this is the users home folder, the users name will be returned, otherwise the name of the current folder.
Parameters:
ServiceContext - the current service context
Returns:
String display name of current folder

getBody

public final java.lang.String getBody(ServiceContext context)
Helper to create the folder body
Parameters:
sr - the service context
Returns:
String the body of the current folder, i.e. the Service menu

getFooter

public final java.lang.String getFooter(ServiceContext context)
Add a footer with setup buttons etc.
Parameters:
ServiceContext - service context
Returns:
String simpleResult the footer for current folder, including Setup menu. The header should be inserted as child of SimpleResult

getHeader

public final java.lang.String getHeader(ServiceContext context)
Get the header of the current folder
Parameters:
ServiceContext - service context
Returns:
String the header to use for the current footer The footer should be inserted as child of SimpleResult

getInstance

public static final FolderRendererBean getInstance()
The "thread-safe" singleton getter
Returns:
the FolderRendererBean interface