public class OrderDetailsPanel<O extends Order<I>,I extends OrderItem> extends AdminPanel
Order
Details
OrderService
ProductService
MailerService
InvoiceService
EmailMessage
EntityTemplate
OrderItem
s in this Order
as Reporter
. It is passed the current order as a param to Query.Transaction
s in this Order
as Reporter
. It is passed the current order as a param to Query.Order
s related to this Order
as Reporter
. Nature of relation is App specific. It is passed the current order and its root, if root is null then the order itself is passed as a param to Query.}
#{T(com.neurosys.content.domain.ContentType).BUTTON}{@code ...
ScriptableFacetMetaAjaxButton}, {@link ConfigurableFacetMetaActionContainer}
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
audit |
protected AuthorizationModule<Void> |
authorizationModule |
adminConfiguration
Constructor and Description |
---|
OrderDetailsPanel(String id,
org.apache.wicket.model.IModel<Order> model) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkAuthorizationToAccessProducts(Collection<Authorization> userAuths)
Check if user has access to Catalog
|
protected org.apache.wicket.Component |
constructBarCode(O orderRec) |
protected org.apache.wicket.Component |
constructDeliveryDetails(O orderRec,
Collection<Authorization> userAuths) |
protected org.apache.wicket.Component |
constructInvoice(O orderRec) |
protected EntityDetailsTemplatePanel<O> |
constructOrderDetails(O orderRec,
Collection<Authorization> userAuths)
Look for
EntityTemplate in Spring with name newOrderDetailsTemplate. |
protected boolean |
isAuthorizedCreate(Collection<Authorization> userAuths) |
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<Order> model,
org.apache.wicket.markup.html.list.ListItem<FacetMeta> item)
Define Extra Buttons if needed by defining List of
FacetMeta is Spring bean orderExtraActions |
protected void |
updateInvoiceSection(O orderRec,
org.apache.wicket.markup.html.form.Form form,
org.apache.wicket.Component invoiceHTML) |
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
protected static org.slf4j.Logger audit
protected AuthorizationModule<Void> authorizationModule
protected boolean checkAuthorizationToAccessProducts(Collection<Authorization> userAuths)
AuthorizationException
protected boolean isAuthorizedCreate(Collection<Authorization> userAuths)
protected EntityDetailsTemplatePanel<O> constructOrderDetails(O orderRec, Collection<Authorization> userAuths)
EntityTemplate
in Spring with name newOrderDetailsTemplate.
If it exists and User isAuthorizedCreate(Collection)
and order and the Order is a NEW created one then apply that template
else use existing one for viewing Order mainly.protected org.apache.wicket.Component constructInvoice(O orderRec)
protected org.apache.wicket.Component constructBarCode(O orderRec)
protected org.apache.wicket.Component constructDeliveryDetails(O orderRec, Collection<Authorization> userAuths)
public void onInitialize()
onInitialize
in class org.apache.wicket.Component
protected void updateInvoiceSection(O orderRec, org.apache.wicket.markup.html.form.Form form, org.apache.wicket.Component invoiceHTML)
protected void populateExtraButtonItem(org.apache.wicket.markup.html.WebMarkupContainer container, org.apache.wicket.model.IModel<Order> model, org.apache.wicket.markup.html.list.ListItem<FacetMeta> item)
FacetMeta
is Spring bean orderExtraActionscontainer
- as WebMarkupContainer
as Container that is effected as a result of ActioncontentFacet
- as IModelitem
- as ListItem
for FacetMeta
typeCopyright © 2018. All rights reserved.