|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.QueryRuntimeFilterFactory
class QueryRuntimeFilterFactory
This is a factory class for QueryRuntimeFilter
implementations.
The factory creates required and default optional filters for all items
at startup time.
Nested Class Summary | |
---|---|
private static class |
QueryRuntimeFilterFactory.AnnotatableFilter
A required filter for Annotatable items. |
private static class |
QueryRuntimeFilterFactory.BasicFilter
An optional default filter for BasicItem :s that are not
Ownable or Shareable . |
(package private) static class |
QueryRuntimeFilterFactory.ChainedFilter
Chains one or more filters into a single filter. |
(package private) static class |
QueryRuntimeFilterFactory.ChildFilter
An optional filter that can be used by BasicItem :s to replace
the QueryRuntimeFilterFactory.BasicFilter . |
private static class |
QueryRuntimeFilterFactory.DenyAllFilter
A required filter for all items, which checks if the logged in user has been "granted" the Permission.DENIED permission for
a specific item type. |
private static class |
QueryRuntimeFilterFactory.OwnableFilter
An optional default filter for Ownable items that are not
Shareable . |
private static class |
QueryRuntimeFilterFactory.RemovableFilter
A required filter for Removable items. |
private static class |
QueryRuntimeFilterFactory.ShareableFilter
An optional default filter for Shareable items. |
Field Summary | |
---|---|
(package private) static QueryRuntimeFilter |
ANNOTATABLE_FILTER
|
(package private) static QueryRuntimeFilter |
BASIC_FILTER
|
(package private) static QueryRuntimeFilter |
DENY_ALL_FILTER
|
private static boolean |
isInitialised
|
private static Map<Item,QueryRuntimeFilter> |
optionalFilters
|
(package private) static QueryRuntimeFilter |
OWNABLE_FILTER
|
(package private) static QueryRuntimeFilter |
REMOVABLE_FILTER
|
private static Map<Item,QueryRuntimeFilter> |
requiredFilters
|
(package private) static QueryRuntimeFilter |
SHAREABLE_FILTER
|
static Set<Integer> |
ZERO_SET
|
Constructor Summary | |
---|---|
QueryRuntimeFilterFactory()
|
Method Summary | |
---|---|
(package private) static QueryRuntimeFilter |
getOptionalFilter(Item itemType)
Get the default optional runtime filter for the speicified item type. |
(package private) static QueryRuntimeFilter |
getRequiredFilter(Item itemType)
Get the required runtime filter for the speicified item type. |
(package private) static void |
init()
|
(package private) static void |
unload()
Unload all settings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static Map<Item,QueryRuntimeFilter> requiredFilters
private static Map<Item,QueryRuntimeFilter> optionalFilters
public static final Set<Integer> ZERO_SET
static final QueryRuntimeFilter DENY_ALL_FILTER
static final QueryRuntimeFilter REMOVABLE_FILTER
static final QueryRuntimeFilter ANNOTATABLE_FILTER
static final QueryRuntimeFilter BASIC_FILTER
static final QueryRuntimeFilter OWNABLE_FILTER
static final QueryRuntimeFilter SHAREABLE_FILTER
private static boolean isInitialised
Constructor Detail |
---|
QueryRuntimeFilterFactory()
Method Detail |
---|
static void init()
static void unload()
static QueryRuntimeFilter getRequiredFilter(Item itemType)
itemType
- The item type
QueryRuntimeFilter
object or null
if not filter is requiredstatic QueryRuntimeFilter getOptionalFilter(Item itemType)
itemType
- The item type
QueryRuntimeFilter
object or null
if not filter is required
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |