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
Constructor and Description |
---|
OwObjectListViewPluginCache.OwPluginStatusCachingUtility(int startIndex_p,
int endIndex_p,
OwObjectCollection objectList_p,
OwObject parentObject_p,
Collection<OwObjectListView.OwPluginEntry> pluginEntries_p)
Deprecated.
since 4.2.0.0 use
#OwPluginStatusCachingUtility(OwIterable, OwObject, Collection, boolean) instead |
OwObjectListViewPluginCache.OwPluginStatusCachingUtility(OwIterable<OwObject> page,
OwObject parent,
Collection<OwObjectListView.OwPluginEntry> pluginEntries,
boolean displayEmptyPluginColumn_p)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
public OwObjectListViewPluginCache.OwPluginStatusCachingUtility(int startIndex_p, int endIndex_p, OwObjectCollection objectList_p, OwObject parentObject_p, Collection<OwObjectListView.OwPluginEntry> pluginEntries_p) throws Exception
#OwPluginStatusCachingUtility(OwIterable, OwObject, Collection, boolean)
insteadstartIndex_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.Exception
- - thrown when the caching cannot be created, usually when the DMSID cannot be obtain for an object in the list.public OwObjectListViewPluginCache.OwPluginStatusCachingUtility(OwIterable<OwObject> page, OwObject parent, Collection<OwObjectListView.OwPluginEntry> pluginEntries, boolean displayEmptyPluginColumn_p) throws Exception
page
- OwIterable with OwObjectsparent
- - the parent object.pluginEntries
- - the plugin entries.displayEmptyPluginColumn_p
- - should be empty plugin columns drawnException
public int getMaximumNumberOfIconsForEntry(OwObjectListView.OwPluginEntry entry_p)
public int getMaximumNumberOfIcons()
public boolean isPluginDisabledForAllObjects(OwObjectListView.OwPluginEntry entry_p)
entry_p
- true
if the plugin is disabled for all visible objects.public OwObjectListViewPluginCache.OwPluginStatus getCachedPluginState(OwObjectListView.OwPluginEntry pluginEntry_p, OwObject obj_p)
pluginEntry_p
- - plugin entryobj_p
- - the object.OwObjectListViewPluginCache.OwPluginStatus
instance.public int getNumberOfDisabledPlugins()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.