Class ExplorerAppManager
- java.lang.Object
-
- com.jalios.jcmsplugin.explorer.app.ExplorerAppManager
-
- All Implemented Interfaces:
com.jalios.util.JPropertiesListener
public class ExplorerAppManager extends java.lang.Object implements com.jalios.util.JPropertiesListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExplorerAppManager.BreadCrumbExplorerEntry
class
ExplorerAppManager.BreadCrumbItem
class
ExplorerAppManager.TabIndexComparator
Compares ExplorerSidebarTab based on their indexclass
ExplorerAppManager.TabLabelComparator
Compares ExplorerSidebarTab based on their label and the userlang
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BREADCRUMB_FULLDISPLAY_ENABLED_PROP
static java.lang.String
CONTAINED_IMAGE_ASPECT_RATIO_PROP
static java.lang.String
CONTEXT_MENU_CATEGORY_JSP_PROP
static java.lang.String
CONTEXT_MENU_DOCUMENT_JSP_PROP
static java.lang.String
CONTEXT_MENU_PUB_JSP_PROP
static java.lang.String
DEBUG_MODE_ENABLED_PROP
static java.lang.String
EXPLORER_BREADCRUMB_SESSION_ENTRY_PREFIX
static java.lang.String
ICON_PROP_SUFFIX
static java.lang.String
ORDER_PROP_SUFFIX
static java.lang.String
SCROLL_TO_PREVIOUS_FOLDER_PROP
static java.lang.String
TAB_PREFIX_PROP
static java.lang.String
TAB_TYPES_PROP_SUFFIX
static java.lang.String
TAB_URL_PROP_SUFFIX
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<com.jalios.jcms.uicomponent.BreadcrumbItem>
getBreadCrumbs(com.jalios.jcms.workspace.Workspace workspace, com.jalios.jcms.Member member, generated.PortletExplorer explorer, java.lang.String userLang, com.jalios.jcms.Category cat, java.util.Locale locale)
double
getContainedImageAspectRatio()
java.lang.String
getContextMenuCategoryJsp()
java.lang.String
getContextMenuDocumentJsp()
java.lang.String
getContextMenuJsp(com.jalios.jcms.Data data)
java.lang.String
getContextMenuPubJsp()
java.lang.String
getDataThumbIcon(com.jalios.jcms.Data data)
java.lang.String[]
getExplorerFields(generated.PortletExplorer explorer)
java.lang.String
getFolderColor(com.jalios.jcms.Category cat)
Returns the category color by searching on the given category, or on one of its parentsjava.lang.String
getFolderIconSrc(com.jalios.jcms.Category cat)
Returns the given category icon Note that it always return the same icon currently)static ExplorerAppManager
getInstance()
java.util.List<java.lang.Class>
getPortletExplorerDocumentClasses(generated.PortletExplorer explorer, com.jalios.jcms.workspace.Workspace workspace)
java.lang.Class<? extends com.jalios.jcms.Publication>
getPortletExplorerSuperCommonDocumentClass(generated.PortletExplorer explorer, com.jalios.jcms.workspace.Workspace workspace)
java.util.Set<java.lang.Class<? extends com.jalios.jcms.Publication>>
getPortletExplorerTypeClasses(generated.PortletExplorer explorer, com.jalios.jcms.workspace.Workspace workspace)
java.util.List<java.lang.String>
getSidebarPreviewContentTypes()
java.util.List<java.lang.String>
getSidebarPreviewGenericContentTypes()
java.util.Set<ExplorerSidebarTab>
getSortedTabSet(java.lang.String userLang)
boolean
hasDocumentType(generated.PortletExplorer portletExplorer, com.jalios.jcms.workspace.Workspace workspace)
boolean
isBreadcrumbFullDisplayEnabled()
boolean
isDebugModeEnabled()
boolean
isExplorerScrollToPreviousFolder()
boolean
isSidebarCompatiblePublication(com.jalios.jcms.Publication pub)
boolean
isSidebarPreviewDisplay(com.jalios.jcms.FileDocument doc)
void
propertiesChange(com.jalios.util.JProperties properties)
-
-
-
Field Detail
-
EXPLORER_BREADCRUMB_SESSION_ENTRY_PREFIX
public static final java.lang.String EXPLORER_BREADCRUMB_SESSION_ENTRY_PREFIX
- See Also:
- Constant Field Values
-
TAB_PREFIX_PROP
public static final java.lang.String TAB_PREFIX_PROP
- See Also:
- Constant Field Values
-
ICON_PROP_SUFFIX
public static final java.lang.String ICON_PROP_SUFFIX
- See Also:
- Constant Field Values
-
ORDER_PROP_SUFFIX
public static final java.lang.String ORDER_PROP_SUFFIX
- See Also:
- Constant Field Values
-
TAB_URL_PROP_SUFFIX
public static final java.lang.String TAB_URL_PROP_SUFFIX
- See Also:
- Constant Field Values
-
TAB_TYPES_PROP_SUFFIX
public static final java.lang.String TAB_TYPES_PROP_SUFFIX
- See Also:
- Constant Field Values
-
CONTEXT_MENU_PUB_JSP_PROP
public static final java.lang.String CONTEXT_MENU_PUB_JSP_PROP
- See Also:
- Constant Field Values
-
CONTEXT_MENU_DOCUMENT_JSP_PROP
public static final java.lang.String CONTEXT_MENU_DOCUMENT_JSP_PROP
- See Also:
- Constant Field Values
-
CONTEXT_MENU_CATEGORY_JSP_PROP
public static final java.lang.String CONTEXT_MENU_CATEGORY_JSP_PROP
- See Also:
- Constant Field Values
-
CONTAINED_IMAGE_ASPECT_RATIO_PROP
public static final java.lang.String CONTAINED_IMAGE_ASPECT_RATIO_PROP
- See Also:
- Constant Field Values
-
SCROLL_TO_PREVIOUS_FOLDER_PROP
public static final java.lang.String SCROLL_TO_PREVIOUS_FOLDER_PROP
- See Also:
- Constant Field Values
-
DEBUG_MODE_ENABLED_PROP
public static final java.lang.String DEBUG_MODE_ENABLED_PROP
- See Also:
- Constant Field Values
-
BREADCRUMB_FULLDISPLAY_ENABLED_PROP
public static final java.lang.String BREADCRUMB_FULLDISPLAY_ENABLED_PROP
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static ExplorerAppManager getInstance()
-
propertiesChange
public void propertiesChange(com.jalios.util.JProperties properties)
- Specified by:
propertiesChange
in interfacecom.jalios.util.JPropertiesListener
-
getSortedTabSet
public java.util.Set<ExplorerSidebarTab> getSortedTabSet(java.lang.String userLang)
-
isSidebarCompatiblePublication
public boolean isSidebarCompatiblePublication(com.jalios.jcms.Publication pub)
-
getSidebarPreviewContentTypes
public java.util.List<java.lang.String> getSidebarPreviewContentTypes()
-
getSidebarPreviewGenericContentTypes
public java.util.List<java.lang.String> getSidebarPreviewGenericContentTypes()
-
isSidebarPreviewDisplay
public boolean isSidebarPreviewDisplay(com.jalios.jcms.FileDocument doc)
-
getContainedImageAspectRatio
public double getContainedImageAspectRatio()
-
isExplorerScrollToPreviousFolder
public boolean isExplorerScrollToPreviousFolder()
-
isDebugModeEnabled
public boolean isDebugModeEnabled()
-
isBreadcrumbFullDisplayEnabled
public boolean isBreadcrumbFullDisplayEnabled()
-
getContextMenuJsp
public java.lang.String getContextMenuJsp(com.jalios.jcms.Data data)
-
getContextMenuCategoryJsp
public java.lang.String getContextMenuCategoryJsp()
-
getContextMenuPubJsp
public java.lang.String getContextMenuPubJsp()
-
getContextMenuDocumentJsp
public java.lang.String getContextMenuDocumentJsp()
-
getDataThumbIcon
public java.lang.String getDataThumbIcon(com.jalios.jcms.Data data)
-
getBreadCrumbs
public java.util.List<com.jalios.jcms.uicomponent.BreadcrumbItem> getBreadCrumbs(com.jalios.jcms.workspace.Workspace workspace, com.jalios.jcms.Member member, generated.PortletExplorer explorer, java.lang.String userLang, com.jalios.jcms.Category cat, java.util.Locale locale)
-
getPortletExplorerTypeClasses
public java.util.Set<java.lang.Class<? extends com.jalios.jcms.Publication>> getPortletExplorerTypeClasses(generated.PortletExplorer explorer, com.jalios.jcms.workspace.Workspace workspace)
-
hasDocumentType
public boolean hasDocumentType(generated.PortletExplorer portletExplorer, com.jalios.jcms.workspace.Workspace workspace)
-
getPortletExplorerDocumentClasses
public java.util.List<java.lang.Class> getPortletExplorerDocumentClasses(generated.PortletExplorer explorer, com.jalios.jcms.workspace.Workspace workspace)
- Parameters:
explorer
- thePortletExplorer
workspace
- theWorkspace
- Returns:
- all document classes used in portlet QueryHandlers
-
getPortletExplorerSuperCommonDocumentClass
public java.lang.Class<? extends com.jalios.jcms.Publication> getPortletExplorerSuperCommonDocumentClass(generated.PortletExplorer explorer, com.jalios.jcms.workspace.Workspace workspace)
- Parameters:
explorer
- thePortletExplorer
workspace
- theWorkspace
- Returns:
- the super common class for Documents
-
getExplorerFields
public java.lang.String[] getExplorerFields(generated.PortletExplorer explorer)
- Parameters:
explorer
- thePortletExplorer
- Returns:
- the PortletExplorer fields
-
getFolderIconSrc
public java.lang.String getFolderIconSrc(com.jalios.jcms.Category cat)
Returns the given category icon Note that it always return the same icon currently)- Parameters:
cat
- theCategory
- Returns:
- the given category icon
- Since:
- explorer-4.6
-
getFolderColor
public java.lang.String getFolderColor(com.jalios.jcms.Category cat)
Returns the category color by searching on the given category, or on one of its parents- Parameters:
cat
- theCategory
- Returns:
- the given
Category
color - Since:
- explorer-4.6
-
-