Examples of AttributeContainer


Examples of net.sf.wfnm.AttributeContainer

     * @throws ServletException if a servlet exception ocours
     */
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
        throws IOException, ServletException {
        HttpServletRequest req = (HttpServletRequest) servletRequest;
        AttributeContainer sessionWrapper = (AttributeContainer) HttpSessionWrapper.wrapItIfNecessary(req.getSession());

        if (!Config.getInstance().isEnabled() || !NavigationManagerFactory.existsInstance(sessionWrapper)) {
            filterChain.doFilter(servletRequest, servletResponse);
        } else {
            NavigationManager navigationManager = NavigationManagerFactory.getInstance(sessionWrapper);
View Full Code Here

Examples of net.sf.wfnm.AttributeContainer

     *
     * @param session the http session
     */
    public static void resetFramework(HttpSession session) {
        if (Config.getInstance().isEnabled()) {
            AttributeContainer container = (AttributeContainer) HttpSessionWrapper.wrapItIfNecessary(session);
            NavigationManagerFactory.resetInstance(container);
        }
    }
View Full Code Here

Examples of net.sf.wfnm.AttributeContainer

     * @param session the http session
     * @param url the url of the page
     */
    public static void simulateNotifyPreviousPage(HttpSession session, String url) {
        if ((url != null) && Config.getInstance().isEnabled()) {
            AttributeContainer container = (AttributeContainer) HttpSessionWrapper.wrapItIfNecessary(session);
            NavigationManager navigationManager = NavigationManagerFactory.getInstance(container);

            if (navigationManager.isPageVisited(url)) {
                navigationManager.notifyPage(container, url, null, null);
            }
View Full Code Here

Examples of net.sf.wfnm.AttributeContainer

     *
     * @param session the http session
     */
    public static void simulateNotifyPreviousPage(HttpSession session) {
        if (Config.getInstance().isEnabled()) {
            AttributeContainer container = (AttributeContainer) HttpSessionWrapper.wrapItIfNecessary(session);
            NavigationManager navigationManager = NavigationManagerFactory.getInstance(container);
            String url = navigationManager.getPreviousPage();

            if ((url != null) && navigationManager.isPageVisited(url)) {
                navigationManager.notifyPage(container, url, null, null);
View Full Code Here

Examples of net.sf.wfnm.AttributeContainer

     *
     * @param session the http session
     */
    public static void simulateNotifyPreviousWebflow(HttpSession session) {
        if (Config.getInstance().isEnabled()) {
            AttributeContainer container = (AttributeContainer) HttpSessionWrapper.wrapItIfNecessary(session);
            NavigationManager navigationManager = NavigationManagerFactory.getInstance(container);
            String url = navigationManager.getPreviousWebflow();

            if (url != null) {
                navigationManager.notifyPage(container, url, null, null);
View Full Code Here

Examples of net.sf.wfnm.AttributeContainer

     * @param session the http session
     * @param webflowName the previous webflow
     */
    public static void simulateNotifyPreviousWebflow(HttpSession session, String webflowName) {
        if (Config.getInstance().isEnabled()) {
            AttributeContainer container = (AttributeContainer) HttpSessionWrapper.wrapItIfNecessary(session);
            NavigationManager navigationManager = NavigationManagerFactory.getInstance(container);
            String url = navigationManager.getPreviousWebflow(webflowName);

            if (url != null) {
                navigationManager.notifyPage(container, url, null, null);
View Full Code Here

Examples of net.sf.wfnm.AttributeContainer

    protected void notifyReachedPage(HttpServletRequest request) {
        NavigationContext navigationContext = NavigationContextFactory.getInstance();

        try {
            if (!navigationContext.isIgnorePage()) {
                AttributeContainer container = (AttributeContainer) HttpSessionWrapper.wrapItIfNecessary(request.getSession());

                if (Config.getInstance().isEnabled()) {
                    if (navigationContext.isFrameworkToReset()) {
                        NavigationManagerFactory.resetInstance(container);
                    } else {
View Full Code Here

Examples of net.sf.wfnm.AttributeContainer

        if (!Config.getInstance().isEnabled()) {
            buffer1.append("<tr><td bordercolor='#C0C0C0' align='center'>\n");
            buffer1.append("Framework disabled\n");
        } else {
            AttributeContainer ac = (AttributeContainer) HttpSessionWrapper.wrapItIfNecessary(pageContext.getSession());
            NavigationManager manager = NavigationManagerFactory.getInstance(ac);

            Set sessionSet = new HashSet();

            for (Enumeration e = pageContext.getSession().getAttributeNames(); e.hasMoreElements();) {
View Full Code Here

Examples of org.hibernate.metamodel.domain.AttributeContainer

//        entityBinding.getEntityIdentifier().createIdentifierGenerator( meta.getIdentifierGeneratorFactory() );
  }

  private void bindAttributes(EntityBinding entityBinding) {
    // bind the attributes of this entity
    AttributeContainer entity = entityBinding.getEntity();
    bindAttributes( entityBinding, entity, entityClass );

    // bind potential mapped super class attributes
    ConfiguredClass parent = entityClass.getParent();
    Hierarchical superTypeContainer = entityBinding.getEntity().getSuperType();
View Full Code Here

Examples of org.hibernate.metamodel.domain.AttributeContainer

      );
    }
  }

  private void bindEmbeddedAttributes(EntityBinding entityBinding) {
    AttributeContainer entity = entityBinding.getEntity();
    bindEmbeddedAttributes( entityBinding, entity, entityClass );

    // bind potential mapped super class embeddables
    ConfiguredClass parent = entityClass.getParent();
    Hierarchical superTypeContainer = entityBinding.getEntity().getSuperType();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.