|
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.util.overview.validator.NullNodeValidator<I>
public class NullNodeValidator<I>
A node validator implementation that accepts all nodes, except missing items and denied access items (depending on configuration). No validation failures are reported.
Field Summary | |
---|---|
private boolean |
acceptDenied
|
private boolean |
acceptMissing
|
Constructor Summary | |
---|---|
NullNodeValidator()
Create a new validator with default settings. |
|
NullNodeValidator(boolean acceptDenied,
boolean acceptMissing)
Created a new validator that accepts denied and/or missing nodes. |
Method Summary | |
---|---|
void |
postDeniedItem(DbControl dc,
OverviewContext context,
Node node,
Node parentNode)
Do nothing. |
void |
postMissingItem(DbControl dc,
OverviewContext context,
Node node,
Node parentNode)
Do nothing. |
void |
postValidate(DbControl dc,
OverviewContext context,
Node node,
Node parentNode)
Do nothing. |
void |
postValidateFolder(DbControl dc,
OverviewContext context,
Node folderNode,
Node parentNode)
Do nothing. |
boolean |
preDeniedItem(DbControl dc,
OverviewContext context,
Node parentNode)
Validate an item that the current user doen't have access to before creating a node for it. |
boolean |
preMissingItem(DbControl dc,
OverviewContext context,
Node parentNode)
Validate a missing item before creating a node for it. |
boolean |
preValidate(DbControl dc,
OverviewContext context,
I item,
Node parentNode)
Validate an existing item before creating a node for it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean acceptDenied
private boolean acceptMissing
Constructor Detail |
---|
public NullNodeValidator()
public NullNodeValidator(boolean acceptDenied, boolean acceptMissing)
acceptDenied
- TRUE to accept denied nodes, FALSE to rejectacceptMissing
- TRUE to accept missing nodes, FALSE to rejectMethod Detail |
---|
public boolean preDeniedItem(DbControl dc, OverviewContext context, Node parentNode)
NodeValidator
preDeniedItem
in interface NodeValidator<I>
dc
- A DbControl to use if the validation needs to access the databasecontext
- The current overview contextparentNode
- The parent node that is linked with the item
public boolean preMissingItem(DbControl dc, OverviewContext context, Node parentNode)
NodeValidator
Failure
for the parent node and registering
it with the context.
preMissingItem
in interface NodeValidator<I>
dc
- A DbControl to use if the validation needs to access the databasecontext
- The current overview contextparentNode
- The parent node that is missing the item
public boolean preValidate(DbControl dc, OverviewContext context, I item, Node parentNode)
NodeValidator
preValidate
in interface NodeValidator<I>
dc
- A DbControl to use if the validation needs to access the databasecontext
- The current overview contextitem
- The item to validateparentNode
- The parent node that is linked with the item
public void postMissingItem(DbControl dc, OverviewContext context, Node node, Node parentNode)
postMissingItem
in interface NodeValidator<I>
dc
- A DbControl to use if the validation needs to access the databasecontext
- The current overview contextnode
- The node object that represents the missing itemparentNode
- The parent node that is missing the itempublic void postDeniedItem(DbControl dc, OverviewContext context, Node node, Node parentNode)
postDeniedItem
in interface NodeValidator<I>
dc
- A DbControl to use if the validation needs to access the databasecontext
- The current overview contextnode
- The node object that represents the unaccessible itemparentNode
- The parent node that is linked with the itempublic void postValidate(DbControl dc, OverviewContext context, Node node, Node parentNode)
postValidate
in interface NodeValidator<I>
dc
- A DbControl to use if the validation needs to access the databasecontext
- The current overview contextnode
- The node object that represents itemparentNode
- The parent node that is linked with the itempublic void postValidateFolder(DbControl dc, OverviewContext context, Node folderNode, Node parentNode)
postValidateFolder
in interface NodeValidator<I>
dc
- A DbControl to use for database accesscontext
- The current overview contextfolderNode
- The folder node, or null if no folder has been createdparentNode
- The parent node (never null)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |