|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.panama.rt.hook.FolderRendererUtil
Field Summary | |
static java.lang.String |
CHILDREN_DISPLAY_POSITION The parameter used by folder render to decide current position of displayed children |
static java.lang.String |
SERVICE_CONTEXT |
Constructor Summary | |
FolderRendererUtil() |
Method Summary | |
static java.util.Date |
getCurrentLocalTime(java.util.TimeZone userTimeZone) |
static Service[] |
getCurrentServices(ServiceContext context) Get all visible services in the given folder. |
static User |
getCurrentUser(ServiceContext context) Convenience method for getting the current user given a Service Context |
static java.lang.String |
getEditPresetURL(ServiceContext context) Returns the edit preset URL |
static java.lang.String |
getFolderName(ServiceContext context, User user) Returns the name of the current folder |
static java.lang.String |
getHeaderName(User user) Returns a string in the header. |
static java.lang.String |
getHelpURL(ServiceContext context) Returns the help string URL |
static java.lang.String |
getLabel(java.lang.String key, java.lang.String defaultVal, java.util.Locale locale) Returns a localized string |
static java.lang.String |
getLoginURL(Request request) Returns the login string URL |
static java.lang.String |
getLoginURL(ServiceContext context) Returns the login string URL |
static java.lang.String |
getLogoffURL(Request request) Returns the logoff string URL |
static java.lang.String |
getLogoffURL(ServiceContext context) Returns the logoff string URL |
static int |
getPageSize() This method returns how many maximum service / subfolder should be shown in a single page. |
static java.lang.String |
getRegisterURL(ServiceContext context) Returns the register string URL |
static java.lang.String |
getScreenWidth(ServiceContext context) Returns the width of the device. |
static java.lang.String |
getServiceURL(Service service, ServiceContext context) This method returns the URL string to a service |
static java.lang.String |
getSetupServicesURL(ServiceContext context) Returns the setup services URL |
static java.lang.String |
getString(java.lang.String key, java.util.Locale locale) Returns a localized string |
static java.lang.String |
getURLPathParameter(Service service) Returns the URL which can be used to invoke the service. |
static java.lang.String |
getURLPathParameter(Service service, Request request) Returns the URL which can be used to invoke the service. |
static java.lang.String |
getUserInfoURL(ServiceContext context) Returns the user info string URL |
static java.lang.String |
getUserProfileURL(ServiceContext context) Returns the user profile services URL |
static boolean |
isAtHome(ServiceContext context) Return a boolean that determines whether the current folder is home folder or not This is used to determine whether we need to show the Home link or not |
static boolean |
isEditPresetEnabled(ServiceContext context) Looks at the current state and returns whether edit preset link should be enabled or not |
static boolean |
isHelpActive(ServiceContext context) Looks at the current state and returns whether help link should be active or not |
static boolean |
isLoginActive(ServiceContext context) Looks at the current state and returns whether login link should be active or not |
static boolean |
isLogoffActive(ServiceContext context) Looks at the current state and returns whether logoff link should be active or not |
static boolean |
isRegisterActive(ServiceContext context) Looks at the current state and returns whether register link should be active or not |
static boolean |
isServiceVisible(ServiceContext context, Service service) Return a boolean value that tells whether a service is visible or not |
static boolean |
isSetupServicesEnabled(ServiceContext context) Looks at the current state and returns whether setup services link should be enabled or not |
static boolean |
isUserInfoEnabled(ServiceContext context) Looks at the current state and returns whether user info link is enabled or not |
static boolean |
isUserProfileEnabled(ServiceContext context) Looks at the current state and returns whether user profile link should be enabled or not |
static void |
main(java.lang.String[] args) |
static java.lang.String |
makeXMLSafe(java.lang.String str) |
static java.lang.String[] |
parseImageSpec(java.lang.String filename) Parse an image specification and returns an array of string describing the image. |
static boolean |
shouldDisplayPersonalization(Session session, User effectiveUser) Looks at the current user and session and return whether setup (personalization) link should be displayed or not |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CHILDREN_DISPLAY_POSITION
public static final java.lang.String SERVICE_CONTEXT
Constructor Detail |
public FolderRendererUtil()
Method Detail |
public static final java.util.Date getCurrentLocalTime(java.util.TimeZone userTimeZone)
public static Service[] getCurrentServices(ServiceContext context)
context
- the current service contextpublic static User getCurrentUser(ServiceContext context)
context
- the current service contextpublic static java.lang.String getEditPresetURL(ServiceContext context)
context
- the current service contextpublic static java.lang.String getFolderName(ServiceContext context, User user)
context
- the current service contextuser
- the current userpublic static java.lang.String getHeaderName(User user)
user
- the current userpublic static java.lang.String getHelpURL(ServiceContext context)
context
- the current service contextpublic static java.lang.String getLabel(java.lang.String key, java.lang.String defaultVal, java.util.Locale locale)
key
- used for lookup the localized stringdefaultVal
- default value in case look up returns nulllocale
- the current localepublic static java.lang.String getLoginURL(Request request)
request
- the current requestpublic static java.lang.String getLoginURL(ServiceContext context)
context
- the current service contextpublic static java.lang.String getLogoffURL(Request request)
request
- the current requestpublic static java.lang.String getLogoffURL(ServiceContext context)
context
- the current service contextpublic static int getPageSize()
public static java.lang.String getRegisterURL(ServiceContext context)
context
- the current service contextpublic static java.lang.String getScreenWidth(ServiceContext context)
context
- the current service contextpublic static java.lang.String getServiceURL(Service service, ServiceContext context)
service
- whose URL is returnedcontext
- the current service contextpublic static java.lang.String getSetupServicesURL(ServiceContext context)
context
- the current service contextpublic static java.lang.String getString(java.lang.String key, java.util.Locale locale)
key
- used for lookup the localized stringlocale
- the current localepublic static java.lang.String getURLPathParameter(Service service)
service
- the servicepublic static java.lang.String getURLPathParameter(Service service, Request request)
service
- the servicerequest
- the current requestpublic static java.lang.String getUserInfoURL(ServiceContext context)
context
- the current service contextpublic static java.lang.String getUserProfileURL(ServiceContext context)
context
- the current service contextpublic static boolean isAtHome(ServiceContext context)
context
- the current service contextpublic static boolean isEditPresetEnabled(ServiceContext context)
context
- the current service contextpublic static boolean isHelpActive(ServiceContext context)
context
- the current service contextpublic static boolean isLoginActive(ServiceContext context)
context
- the current service contextpublic static boolean isLogoffActive(ServiceContext context)
context
- the current service contextpublic static boolean isRegisterActive(ServiceContext context)
context
- the current service contextpublic static boolean isServiceVisible(ServiceContext context, Service service)
context
- the current service contextservice
- the evaluated servicepublic static boolean isSetupServicesEnabled(ServiceContext context)
context
- the current service contextpublic static boolean isUserInfoEnabled(ServiceContext context)
context
- the current service contextpublic static boolean isUserProfileEnabled(ServiceContext context)
context
- the current service contextpublic static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public static java.lang.String makeXMLSafe(java.lang.String str)
public static java.lang.String[] parseImageSpec(java.lang.String filename)
filename
- image specificationpublic static boolean shouldDisplayPersonalization(Session session, User effectiveUser)
session
- user sessioneffectiveUser
- the current user
|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |