com.stratelia.silverpeas.selectionPeas
Class CacheManager

java.lang.Object
  extended by com.stratelia.silverpeas.selectionPeas.CacheManager
Direct Known Subclasses:
CacheManagerJdbcConnector, CacheManagerUsersGroups

public abstract class CacheManager
extends Object


Field Summary
protected  Map<String,PanelLine> elementCache
           
protected  ResourceLocator globalResourceLocator
           
protected  ResourceLocator iconResourceLocator
           
protected  String language
           
protected  ResourceLocator localResourceLocator
           
protected  Set<String> selectedElements
           
protected  Set<String> selectedSets
           
protected  Selection selection
           
protected  Map<String,PanelLine> setCache
           
 
Constructor Summary
CacheManager(String language, ResourceLocator local, ResourceLocator icon, Selection selection)
           
 
Method Summary
abstract  BrowsePanelProvider getBrowsePanelProvider(CacheType what, SelectionExtraParams sep)
           
protected  Map<String,PanelLine> getCache(CacheType what)
           
abstract  PanelProvider getCartPanelProvider(CacheType what, SelectionExtraParams sep)
           
abstract  String[] getColumnsNames(CacheType what)
           
abstract  String[] getContentColumnsNames(CacheType what)
           
abstract  String[][] getContentInfos(CacheType what, String id)
           
abstract  String[][] getContentLines(CacheType what, String id)
           
abstract  String getContentText(CacheType what)
           
 PanelLine getInfos(CacheType what, String id)
           
abstract  int getLineCount(CacheType what)
           
protected abstract  PanelLine getLineFromId(CacheType what, String id)
           
abstract  PanelMiniFilterToken[] getPanelMiniFilters(CacheType what)
           
abstract  PanelOperation getPanelOperation(String operation)
           
abstract  BrowsePanelProvider getSearchPanelProvider(CacheType what, SelectionExtraParams sep)
           
protected  Set<String> getSelected(CacheType what)
           
 String[] getSelectedIds(CacheType what)
           
 PanelLine[] getSelectedLines(CacheType what)
           
 int getSelectedNumber(CacheType what)
           
abstract  PanelMiniFilterSelect getSelectMiniFilter(CacheType what)
           
 void resetAll()
           
 void setInfos(CacheType what, String id, PanelLine pl)
           
 void setSelected(CacheType what, String[] ids, boolean isSelected)
           
 void setSelected(CacheType what, String id, boolean isSelected)
           
 void unselectAll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elementCache

protected Map<String,PanelLine> elementCache

setCache

protected Map<String,PanelLine> setCache

selectedElements

protected Set<String> selectedElements

selectedSets

protected Set<String> selectedSets

localResourceLocator

protected ResourceLocator localResourceLocator

globalResourceLocator

protected ResourceLocator globalResourceLocator

iconResourceLocator

protected ResourceLocator iconResourceLocator

language

protected String language

selection

protected Selection selection
Constructor Detail

CacheManager

public CacheManager(String language,
                    ResourceLocator local,
                    ResourceLocator icon,
                    Selection selection)
Method Detail

getSearchPanelProvider

public abstract BrowsePanelProvider getSearchPanelProvider(CacheType what,
                                                           SelectionExtraParams sep)

getBrowsePanelProvider

public abstract BrowsePanelProvider getBrowsePanelProvider(CacheType what,
                                                           SelectionExtraParams sep)

getCartPanelProvider

public abstract PanelProvider getCartPanelProvider(CacheType what,
                                                   SelectionExtraParams sep)

getPanelOperation

public abstract PanelOperation getPanelOperation(String operation)

getContentInfos

public abstract String[][] getContentInfos(CacheType what,
                                           String id)

getContentText

public abstract String getContentText(CacheType what)

getContentColumnsNames

public abstract String[] getContentColumnsNames(CacheType what)

getContentLines

public abstract String[][] getContentLines(CacheType what,
                                           String id)

getColumnsNames

public abstract String[] getColumnsNames(CacheType what)

getLineFromId

protected abstract PanelLine getLineFromId(CacheType what,
                                           String id)

getLineCount

public abstract int getLineCount(CacheType what)

getPanelMiniFilters

public abstract PanelMiniFilterToken[] getPanelMiniFilters(CacheType what)

getSelectMiniFilter

public abstract PanelMiniFilterSelect getSelectMiniFilter(CacheType what)

resetAll

public void resetAll()

setInfos

public void setInfos(CacheType what,
                     String id,
                     PanelLine pl)

getInfos

public PanelLine getInfos(CacheType what,
                          String id)

unselectAll

public void unselectAll()

setSelected

public void setSelected(CacheType what,
                        String id,
                        boolean isSelected)

setSelected

public void setSelected(CacheType what,
                        String[] ids,
                        boolean isSelected)

getSelectedIds

public String[] getSelectedIds(CacheType what)

getSelectedNumber

public int getSelectedNumber(CacheType what)

getSelectedLines

public PanelLine[] getSelectedLines(CacheType what)

getCache

protected Map<String,PanelLine> getCache(CacheType what)

getSelected

protected Set<String> getSelected(CacheType what)


Copyright © 2016 Silverpeas. All Rights Reserved.