public class ContentDetailsTemplatePanel<C extends AbstractContent<CA,CF>,CA extends AbstractContentAttribute,CF extends AbstractContentFacet> extends EntityDetailsTemplatePanel<C> implements IAdminPanel
C#getAttributes()
that match AbstractContentTemplate.getMetaDataFacets()
.
org.apache.wicket.Component.ComponentModelChange, org.apache.wicket.Component.EnabledChange, org.apache.wicket.Component.IVisitor<T extends org.apache.wicket.Component>, org.apache.wicket.Component.VisibilityChange
CustomTemplateRenderAdapter.Nothing
ON_SAVE_EnsureAccessorExistsTransformer
authorizationModule
template
ENABLE, FLAG_CONFIGURED, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, FLAG_RESERVED8, PATH_SEPARATOR, RENDER
nothing
Constructor and Description |
---|
ContentDetailsTemplatePanel(String id,
org.apache.wicket.model.IModel<C> model,
AbstractContentTemplate<C> template,
CustomTemplateRenderAdapter<C,org.apache.wicket.model.IModel,org.apache.wicket.Component,org.apache.wicket.MarkupContainer> defaultRenderAdapter) |
Modifier and Type | Method and Description |
---|---|
protected List<MetaItem> |
extractMetaItems(C modelObject,
Collection<? extends FacetMeta> __facets,
ContentType... filterContentType)
Process only
AbstractContentTemplate.getMetaDataFacets() |
protected org.apache.wicket.model.IModel |
getModelForFieldOrAttribute(C modelObject,
MetaItem metaItem)
get the value from the
Field or Attributes . |
protected void |
save(C entity,
MetaItem metaItem,
Object value)
Save the specific value associated with the
MetaItem back into the C#getAttributes() defined by AbstractContentTemplate.getMetaDataFacets()
If FacetMeta.isSupplement() then will not save as attribute but call super's save method to treat it as a normal entity field. |
extractFieldValue, getAddToCollectionSectionName, getComponentForType, getComponents, getComponentsForCollectionType, getComponentsForType, getDataRelatedComponents, getItemRefId, getListForCollectionType, getResourcePaths, getResourceUploader, getStatelessHint, isSetValueInSameModel, mergeCollections, onBeforeRender, onInitialize, processItem, processSubmit, reorder, reset, setResourcePaths, setResourceUploader
checkAuthorizationToSave, getComponents, getListComponentName, isAuthorized, processItemList
addFacetToMetaItems, filter, filterClasses, getContainer, getTemplate, iterateAndAddFacetsToPage, setTemplate
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, 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, 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
public ContentDetailsTemplatePanel(String id, org.apache.wicket.model.IModel<C> model, AbstractContentTemplate<C> template, CustomTemplateRenderAdapter<C,org.apache.wicket.model.IModel,org.apache.wicket.Component,org.apache.wicket.MarkupContainer> defaultRenderAdapter)
protected final List<MetaItem> extractMetaItems(C modelObject, Collection<? extends FacetMeta> __facets, ContentType... filterContentType)
AbstractContentTemplate.getMetaDataFacets()
extractMetaItems
in class TemplatePanel<EntityTemplate<TemplatePanel>,C extends AbstractContent<CA,CF>>
modelObject
- as M__facets
- as Collection
of FacetMeta
List
of MetaItem
protected final void save(C entity, MetaItem metaItem, Object value) throws Exception
MetaItem
back into the C#getAttributes()
defined by AbstractContentTemplate.getMetaDataFacets()
FacetMeta.isSupplement()
then will not save as attribute but call super's save method to treat it as a normal entity field.save
in class EntityDetailsTemplatePanel<C extends AbstractContent<CA,CF>>
Exception
protected final org.apache.wicket.model.IModel getModelForFieldOrAttribute(C modelObject, MetaItem metaItem)
EntityDetailsTemplatePanel
Field
or Attributes
.
FacetMeta
as it is defined by Config in a Template
Serializable
and marked JSON. Auto converts them to JSON format. (TODO: Add Unit Test Case for this)
ContentType
in #getComponentForType(com.neurosys.content.wicket.pages.panel.TemplatePanel.MetaItem, String, IModel, MarkupContainer)
MetaItem.getFacetMeta()
FacetMeta.getCustomItemRenderAdapter()
exists then it will skip any conversations as the custom logic is expected to be
provided by the adapter itself.getModelForFieldOrAttribute
in class EntityDetailsTemplatePanel<C extends AbstractContent<CA,CF>>
IModel
Copyright © 2018. All rights reserved.