public abstract class ContentDetailsPanel<C extends AbstractContent<CA,CF>,CA extends AbstractContentAttribute,CF extends AbstractContentFacet> extends AdminPanel
ContentDescriber
and its related CA
& CF
List
of FacetMeta
for ContentDescriber
Level ActionsList
of FacetMeta
for CF
Level Actions
}
#{T(com.neurosys.content.domain.ContentType).BUTTON}{@code ...
ScriptableFacetMetaAjaxButton}, {@link ConfigurableFacetMetaActionContainer}
The panel also supports Facet Arrays, if the {@link FacetMeta} describing it is a {@link FacetMeta#isCollectionType()}. In the configs one can further configure specific
indeces as facetName and an {@link FacetMeta#getAttribute(String)} as {@link FacetMeta#ATTRIB_INDEX}.
,
Serialized FormModifier and Type | Field and Description |
---|---|
static String |
ATTRIB_METADATA_FACETMETA
Will show Meta Data options for Facet
|
protected AuthorizationModule<Void> |
authorizationModule |
protected Template |
currentSelectedTemplate |
static org.apache.wicket.markup.html.form.IChoiceRenderer<Template> |
TEMPLATE_CHOICE_RENDERED |
protected TemplateService |
templateService |
Constructor and Description |
---|
ContentDetailsPanel(String id,
org.apache.wicket.model.IModel<C> model) |
Modifier and Type | Method and Description |
---|---|
protected void |
addGuides(C content,
Map<String,FacetMeta> templateFacetMetaMap,
FacetMeta fm,
CF contentFacet,
org.apache.wicket.markup.html.WebMarkupContainer facetMainContainer) |
protected void |
addMetaData(FacetMeta fm,
CF contentFacet,
org.apache.wicket.markup.html.WebMarkupContainer facetMainContainer,
org.apache.wicket.markup.html.form.Form form) |
protected org.apache.wicket.Component |
createMainFacetEditor(org.apache.wicket.markup.html.list.ListItem<CF> item,
FacetMeta fm,
org.apache.wicket.markup.html.WebMarkupContainer facetContainer) |
protected String[] |
defineAttributes() |
protected ContentDetailsPageForm |
defineForm(org.apache.wicket.model.CompoundPropertyModel model) |
protected org.apache.wicket.Component |
defineTemplateSelection(String componentId,
User user,
C content)
Show Template selection for Panel
|
protected CF |
getContentFacetInstance(C identityObj,
String facetName) |
protected abstract GenericContentService<C,CA,CF> |
getContentService()
Override Source in case content from an auxiliary Data Source
|
protected Template |
getCurrentTemplate(PageIdentifier page) |
protected org.apache.wicket.Component |
getCustomFieldForMetaData(String componentId,
CF contentFacet,
MetaItem meta,
org.apache.wicket.model.IModel model,
org.apache.wicket.MarkupContainer container)
Determine any Value type field override in configs.
|
protected org.apache.wicket.markup.html.link.Link |
getDocumentViewerLink(String name,
org.apache.wicket.markup.html.panel.FeedbackPanel feedback,
Map<String,Object> params) |
protected org.apache.wicket.markup.html.list.ListView<CF> |
getFacetComponents(C content,
List<CF> contentFacets,
Map<String,FacetMeta> templateFacetMetaMap,
org.apache.wicket.markup.html.WebMarkupContainer facetsContainer) |
static FacetMeta |
getFacetMeta(Template t,
AbstractContentFacet facet)
An Override to
Template.getFacetMeta(String) since that does not support Index search. |
protected ContentDetailsPageForm |
getForm() |
void |
onInitialize()
Allow panel to be updated in Ajax situations (on re-Init)
|
protected void |
populateExtraButtonItem(org.apache.wicket.markup.html.WebMarkupContainer container,
org.apache.wicket.model.IModel<CF> model,
org.apache.wicket.markup.html.list.ListItem<FacetMeta> item)
Define Extra Buttons if needed by defining List of
FacetMeta is Spring bean contentExtraActions & contentFacetExtraActions |
protected boolean |
showPreview(Template t) |
getConfigProperty, getModuleForPage, headerMeta, renderHead
onComponentTag, onComponentTagBody, renderHead
newHeaderPartContainer, renderHeadFromAssociatedMarkupFile
getMarkupType, getWebPage, getWebRequest
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, toString, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, callOnBeforeRenderIfNotVisible, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachBehaviors, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getApplication, getBehaviors, getBehaviors, getBehaviorsRawList, getClassRelativePath, getComponentBorder, getConverter, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFlag, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdImpl, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalAttach, internalDetach, internalOnAttach, internalOnDetach, internalOnModelChanged, isActionAuthorized, isAncestorOf, isAttached, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markAttached, markRendering, modelChanged, modelChanging, onAfterRender, onAttach, onBeforeRender, onBeginRequest, onConfigure, onDetach, onEndRequest, onModelChanged, onModelChanging, onRemove, prepareForRender, prepareForRender, redirectToInterceptPage, remove, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, setAuto, setComponentBorder, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setFlag, setIgnoreAttributeModifier, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setRedirect, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn, wrap
@SpringBean(name="defaultContentTemplateService") protected TemplateService templateService
protected Template currentSelectedTemplate
protected AuthorizationModule<Void> authorizationModule
public static final String ATTRIB_METADATA_FACETMETA
public static final org.apache.wicket.markup.html.form.IChoiceRenderer<Template> TEMPLATE_CHOICE_RENDERED
protected abstract GenericContentService<C,CA,CF> getContentService()
protected org.apache.wicket.markup.html.link.Link getDocumentViewerLink(String name, org.apache.wicket.markup.html.panel.FeedbackPanel feedback, Map<String,Object> params)
protected boolean showPreview(Template t)
protected org.apache.wicket.Component getCustomFieldForMetaData(String componentId, CF contentFacet, MetaItem meta, org.apache.wicket.model.IModel model, org.apache.wicket.MarkupContainer container)
componentId
- as StringcontentFacet
- as CFmeta
- as MetaItem
that defines the custom Component to be generatedmodel
- as IModel
that binds the Component Model to the calling form model.container
- as MarkupContainer
Component
@nullable trueprotected ContentDetailsPageForm defineForm(org.apache.wicket.model.CompoundPropertyModel model)
protected ContentDetailsPageForm getForm()
protected String[] defineAttributes()
protected org.apache.wicket.Component defineTemplateSelection(String componentId, User user, C content)
user
- content
- protected Template getCurrentTemplate(PageIdentifier page)
public void onInitialize()
onInitialize
in class org.apache.wicket.Component
public static FacetMeta getFacetMeta(Template t, AbstractContentFacet facet)
Template.getFacetMeta(String)
since that does not support Index search.t
- as Template
facetName
- as Stringindex
- as Integerprotected org.apache.wicket.markup.html.list.ListView<CF> getFacetComponents(C content, List<CF> contentFacets, Map<String,FacetMeta> templateFacetMetaMap, org.apache.wicket.markup.html.WebMarkupContainer facetsContainer)
protected org.apache.wicket.Component createMainFacetEditor(org.apache.wicket.markup.html.list.ListItem<CF> item, FacetMeta fm, org.apache.wicket.markup.html.WebMarkupContainer facetContainer)
protected void addMetaData(FacetMeta fm, CF contentFacet, org.apache.wicket.markup.html.WebMarkupContainer facetMainContainer, org.apache.wicket.markup.html.form.Form form)
protected void addGuides(C content, Map<String,FacetMeta> templateFacetMetaMap, FacetMeta fm, CF contentFacet, org.apache.wicket.markup.html.WebMarkupContainer facetMainContainer)
protected void populateExtraButtonItem(org.apache.wicket.markup.html.WebMarkupContainer container, org.apache.wicket.model.IModel<CF> model, org.apache.wicket.markup.html.list.ListItem<FacetMeta> item)
FacetMeta
is Spring bean contentExtraActions & contentFacetExtraActionscontainer
- as WebMarkupContainer
as Container that is effected as a result of ActioncontentFacet
- as IModelitem
- as ListItem
for FacetMeta
typeCopyright © 2018. All rights reserved.