Examples of IdentityManager


Examples of org.apache.commons.jxpath.IdentityManager

            new Double(0),
            context.getValue("count(vendor/location[@id = '100']/@name)"));
    }

    public void testID() {
        context.setIdentityManager(new IdentityManager() {
            public Pointer getPointerByID(JXPathContext context, String id) {
                NodePointer ptr = (NodePointer) context.getPointer("/");
                ptr = ptr.getValuePointer(); // Unwrap the container
                return ptr.getPointerByID(context, id);
            }
View Full Code Here

Examples of org.apache.commons.jxpath.IdentityManager

            new Double(0),
            context.getValue("count(vendor/location[@id = '100']/@name)"));
    }

    public void testID() {
        context.setIdentityManager(new IdentityManager() {
            public Pointer getPointerByID(JXPathContext context, String id) {
                NodePointer ptr = (NodePointer) context.getPointer("/");
                ptr = ptr.getValuePointer(); // Unwrap the container
                return ptr.getPointerByID(context, id);
            }
View Full Code Here

Examples of org.apache.commons.jxpath.IdentityManager

        assertXPathValue(context, "round(-2 div 0)", new Double(Double.NEGATIVE_INFINITY));
        assertXPathValue(context, "round(2 div 0)", new Double(Double.POSITIVE_INFINITY));
    }

    public void testIDFunction() {
        context.setIdentityManager(new IdentityManager() {
            public Pointer getPointerByID(JXPathContext context, String id) {
                NodePointer ptr = (NodePointer) context.getPointer("/document");
                ptr = ptr.getValuePointer();
                return ptr.getPointerByID(context, id);
            }
View Full Code Here

Examples of org.apache.commons.jxpath.IdentityManager

        assertXPathValue(context, "round(-1.5)", new Double(-1));
        assertXPathValue(context, "null()", null);       
    }

    public void testIDFunction() {
        context.setIdentityManager(new IdentityManager() {
            public Pointer getPointerByID(JXPathContext context, String id) {
                NodePointer ptr = (NodePointer) context.getPointer("/document");
                ptr = ptr.getValuePointer();
                return ptr.getPointerByID(context, id);
            }
View Full Code Here

Examples of org.apache.commons.jxpath.IdentityManager

            new Double(0),
            context.getValue("count(vendor/location[@id = '100']/@name)"));
    }

    public void testID() {
        context.setIdentityManager(new IdentityManager() {
            public Pointer getPointerByID(JXPathContext context, String id) {
                NodePointer ptr = (NodePointer) context.getPointer("/");
                ptr = ptr.getValuePointer(); // Unwrap the container
                return ptr.getPointerByID(context, id);
            }
View Full Code Here

Examples of org.atomojo.www.util.IdentityManager

                name.equals("keyPassword")) {
               continue;
            }
            appContext.getParameters().add(param);
         }
         IdentityManager manager = (IdentityManager)context.getAttributes().get(IdentityManager.ATTR);
         if (manager!=null) {
            appContext.getAttributes().put(IdentityManager.ATTR,manager);
         }
         appContext.getAttributes().put(WebComponent.LINKS_ATTR,links);
         Object scriptManager = context.getAttributes().get(ScriptManager.ATTR);
View Full Code Here

Examples of org.atomojo.www.util.IdentityManager

         router.setDefaultMatchingMode(Template.MODE_STARTS_WITH);
         security = new SecurityGuard(context);
         security.setNext(router);
         final IdentityFilter filter = new IdentityFilter(context,security,new Reference(authLink.getLink().toString()));
         vhost.attachDefault(filter);
         this.context.getAttributes().put(IdentityManager.ATTR, new IdentityManager() {
            public void add(String id,Identity identity) {
               filter.addIdentity(id, identity);
            }
            public boolean remove(String id)
            {
View Full Code Here

Examples of org.jboss.seam.security.management.IdentityManager

            throw new LoginException(ex.getMessage());
         }
      }
     
      // Otherwise if identity management is enabled, use it.
      IdentityManager identityManager = IdentityManager.instance();
      if (identityManager != null && identityManager.isEnabled())
      {
         Identity identity = Identity.instance();
        
         try
         {
            boolean success = identityManager.authenticate(username, identity.getCredentials().getPassword());
           
            if (success)
            {
               for (String role : identityManager.getImpliedRoles(username))
               {
                  identity.addRole(role);
               }
            }
           
View Full Code Here

Examples of org.jboss.seam.security.management.IdentityManager

            throw le;
         }
      }
     
      // Otherwise if identity management is enabled, use it.
      IdentityManager identityManager = IdentityManager.instance();
      if (identityManager != null && identityManager.isEnabled())
      {
         Identity identity = Identity.instance();
        
         try
         {
            boolean success = identityManager.authenticate(username, identity.getCredentials().getPassword());
           
            if (success)
            {
               for (String role : identityManager.getImpliedRoles(username))
               {
                  identity.addRole(role);
               }
            }
           
View Full Code Here

Examples of org.jboss.seam.security.management.IdentityManager

            throw new LoginException(ex.getMessage());
         }
      }
     
      // Otherwise if identity management is enabled, use it.
      IdentityManager identityManager = IdentityManager.instance();
      if (identityManager != null && identityManager.isEnabled())
      {
         Identity identity = Identity.instance();
        
         try
         {
            boolean success = identityManager.authenticate(username, identity.getCredentials().getPassword());
           
            if (success)
            {
               for (String role : identityManager.getImpliedRoles(username))
               {
                  identity.addRole(role);
               }
            }
           
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.