public class DomTransitionProvider extends AbstractViewPathTransitionProvider<XMLTarget,XMLKey> implements PathTransitionProvider<XMLKey,XMLTarget>, ViewTransitionFactory<XMLKey,XMLTarget>
PathTransitionProvider
for editing XML documents.
While a full schema driven interface seems to be impractically difficult.
at the moment it should be posible to use the schema to:
Modifier and Type | Class and Description |
---|---|
static class |
DomTransitionProvider.DeleteTransition |
static class |
DomTransitionProvider.DownLoadTransition |
static class |
DomTransitionProvider.EditAction |
static class |
DomTransitionProvider.EditNodeAction |
static class |
DomTransitionProvider.EditNodeTransition |
static class |
DomTransitionProvider.EditTransition |
static class |
DomTransitionProvider.HasParentKey |
static class |
DomTransitionProvider.ParentTransition |
AbstractViewTransitionFactory.ViewResult, AbstractViewTransitionFactory.ViewTransition
Modifier and Type | Field and Description |
---|---|
static XMLKey |
DELETE_KEY |
static XMLKey |
DOWNLOAD_KEY |
static XMLKey |
EDIT_NODE_KEY |
static XMLKey |
EDIT_TEXT_KEY |
static XMLKey |
PARENT_KEY |
conn
Constructor and Description |
---|
DomTransitionProvider(AppContext c) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowTransition(AppContext c,
XMLTarget target,
XMLKey key)
Access control check.
|
boolean |
canView(XMLTarget target,
SessionService<?> sess)
Can the current person view this target
|
static java.lang.String |
formatPath(java.util.LinkedList<java.lang.String> path) |
java.util.LinkedList<java.lang.String> |
getID(XMLTarget target)
Get the id string for form posts from a target
|
<X extends ContentBuilder> |
getLogContent(X cb,
XMLTarget target,
SessionService<?> sess)
Get the content to be displayed on the view target page as part of the target pane.
|
<X extends ContentBuilder> |
getSummaryContent(AppContext c,
X cb,
XMLTarget target)
Get target summary to be shown on transition page.
|
XMLTarget |
getTarget(java.util.LinkedList<java.lang.String> id)
Find target type by id string
|
java.lang.String |
getTargetName()
What is the name for this type of transition.
|
static XMLTarget |
makeXMLTarget(java.util.LinkedList<java.lang.String> id,
AppContext conn) |
accept
getBottomContent, getHelp, getText, getTopContent
addTransition, getTransition, getTransition, getTransitions, lookupTransition, sortByKey
getContext, getLogger, resetLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept
getBottomContent, getHelp, getText, getTopContent, showTransition
getTransition, getTransitions, lookupTransition
getContext
public static XMLKey DELETE_KEY
public static XMLKey PARENT_KEY
public static XMLKey EDIT_TEXT_KEY
public static XMLKey EDIT_NODE_KEY
public static XMLKey DOWNLOAD_KEY
public DomTransitionProvider(AppContext c)
public java.lang.String getTargetName()
TransitionFactory
TransitionServlet
The value can also be used as the user presented text for the type of object
in the title of the transition form page though this can be overridden by setting
target-name.transition_titlegetTargetName
in interface TransitionFactory<XMLKey,XMLTarget>
public boolean allowTransition(AppContext c, XMLTarget target, XMLKey key)
TransitionFactory
allowTransition
in interface TransitionFactory<XMLKey,XMLTarget>
c
- AppContexttarget
- target objectkey
- identifying key object for transitionpublic <X extends ContentBuilder> X getSummaryContent(AppContext c, X cb, XMLTarget target)
TransitionFactory
getSummaryContent
in interface TransitionFactory<XMLKey,XMLTarget>
c
- AppContextcb
- ContentBuilderpublic boolean canView(XMLTarget target, SessionService<?> sess)
ViewTransitionFactory
canView
in interface ViewTransitionFactory<XMLKey,XMLTarget>
public XMLTarget getTarget(java.util.LinkedList<java.lang.String> id)
PathTransitionProvider
getTarget
in interface PathTransitionProvider<XMLKey,XMLTarget>
public static XMLTarget makeXMLTarget(java.util.LinkedList<java.lang.String> id, AppContext conn)
public static java.lang.String formatPath(java.util.LinkedList<java.lang.String> path)
public java.util.LinkedList<java.lang.String> getID(XMLTarget target)
PathTransitionProvider
getID
in interface PathTransitionProvider<XMLKey,XMLTarget>
public <X extends ContentBuilder> X getLogContent(X cb, XMLTarget target, SessionService<?> sess)
ViewTransitionFactory
getLogContent
in interface ViewTransitionFactory<XMLKey,XMLTarget>
getLogContent
in class AbstractViewTransitionFactory<XMLTarget,XMLKey>