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) |
acceptgetBottomContent, getHelp, getText, getTopContentaddTransition, getTransition, getTransition, getTransitions, lookupTransition, sortByKeygetContext, getLogger, resetLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptgetBottomContent, getHelp, getText, getTopContent, showTransitiongetTransition, getTransitions, lookupTransitiongetContextpublic 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()
TransitionFactoryTransitionServlet
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)
TransitionFactoryallowTransition 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)
TransitionFactorygetSummaryContent in interface TransitionFactory<XMLKey,XMLTarget>c - AppContextcb - ContentBuilderpublic boolean canView(XMLTarget target, SessionService<?> sess)
ViewTransitionFactorycanView in interface ViewTransitionFactory<XMLKey,XMLTarget>public XMLTarget getTarget(java.util.LinkedList<java.lang.String> id)
PathTransitionProvidergetTarget 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)
PathTransitionProvidergetID in interface PathTransitionProvider<XMLKey,XMLTarget>public <X extends ContentBuilder> X getLogContent(X cb, XMLTarget target, SessionService<?> sess)
ViewTransitionFactorygetLogContent in interface ViewTransitionFactory<XMLKey,XMLTarget>getLogContent in class AbstractViewTransitionFactory<XMLTarget,XMLKey>