com.wewebu.ow.server.dmsdialogs.views
Class OwObjectListViewPluginCache.OwPluginStatusCachingUtility

java.lang.Object
  extended by com.wewebu.ow.server.dmsdialogs.views.OwObjectListViewPluginCache.OwPluginStatusCachingUtility
Enclosing class:
OwObjectListViewPluginCache

protected static class OwObjectListViewPluginCache.OwPluginStatusCachingUtility
extends Object

Utility class for caching the enabled/disabled status for a plugin, for each visible object in list.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com

Since:
3.0.0.0

Constructor Summary
OwObjectListViewPluginCache.OwPluginStatusCachingUtility(int startIndex_p, int endIndex_p, List objectList_p, OwObject parentObject_p, Collection pluginEntries_p)
          Constructor
OwObjectListViewPluginCache.OwPluginStatusCachingUtility(int startIndex_p, int endIndex_p, List objectList_p, OwObject parentObject_p, Collection pluginEntries_p, boolean displayEmptyPluginColumn_p)
          Constructor
 
Method Summary
 OwObjectListViewPluginCache.OwPluginStatus getCachedPluginState(OwObjectListView.OwPluginEntry pluginEntry_p, OwObject obj_p)
          Returns the cached plugin status.
 int getMaximumNumberOfIcons()
           
 int getMaximumNumberOfIconsForEntry(OwObjectListView.OwPluginEntry entry_p)
           
 int getNumberOfDisabledPlugins()
          Get the number of disabled plugins.
 boolean isPluginDisabledForAllObjects(OwObjectListView.OwPluginEntry entry_p)
          check if the given plugin is disabled for all visible objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwObjectListViewPluginCache.OwPluginStatusCachingUtility

public OwObjectListViewPluginCache.OwPluginStatusCachingUtility(int startIndex_p,
                                                                int endIndex_p,
                                                                List objectList_p,
                                                                OwObject parentObject_p,
                                                                Collection pluginEntries_p)
                                                         throws Exception
Constructor

Parameters:
startIndex_p - - the index of first object visible in list.
endIndex_p - - the index of last object visible in list.
objectList_p - - the list of objects.
parentObject_p - - the parent object.
pluginEntries_p - - the plugin entries.
Throws:
Exception - - thrown when the caching cannot be created, usually when the DMSID cannot be obtain for an object in the list.

OwObjectListViewPluginCache.OwPluginStatusCachingUtility

public OwObjectListViewPluginCache.OwPluginStatusCachingUtility(int startIndex_p,
                                                                int endIndex_p,
                                                                List objectList_p,
                                                                OwObject parentObject_p,
                                                                Collection pluginEntries_p,
                                                                boolean displayEmptyPluginColumn_p)
                                                         throws Exception
Constructor

Parameters:
startIndex_p - - the index of first object visible in list.
endIndex_p - - the index of last object visible in list.
objectList_p - - the list of objects.
parentObject_p - - the parent object.
pluginEntries_p - - the plugin entries.
displayEmptyPluginColumn_p - - should be empty plugin columns drawn
Throws:
Exception
Method Detail

getMaximumNumberOfIconsForEntry

public int getMaximumNumberOfIconsForEntry(OwObjectListView.OwPluginEntry entry_p)

getMaximumNumberOfIcons

public int getMaximumNumberOfIcons()

isPluginDisabledForAllObjects

public boolean isPluginDisabledForAllObjects(OwObjectListView.OwPluginEntry entry_p)
check if the given plugin is disabled for all visible objects.

Parameters:
entry_p -
Returns:
true if the plugin is disabled for all visible objects.

getCachedPluginState

public OwObjectListViewPluginCache.OwPluginStatus getCachedPluginState(OwObjectListView.OwPluginEntry pluginEntry_p,
                                                                       OwObject obj_p)
Returns the cached plugin status.

Parameters:
pluginEntry_p - - plugin entry
obj_p - - the object.
Returns:
a OwObjectListViewPluginCache.OwPluginStatus instance.

getNumberOfDisabledPlugins

public int getNumberOfDisabledPlugins()
Get the number of disabled plugins.

Returns:
- the number of plugins that are disabled for all displayed objects.


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.