Examples of SecurityRole


Examples of org.apache.pluto.om.common.SecurityRole

            if ( autoCreateRoles && roleManager != null && pa.getWebApplicationDefinition().getSecurityRoles() != null )
            {
                try
                {
                    Iterator rolesIter = pa.getWebApplicationDefinition().getSecurityRoles().iterator();
                    SecurityRole sr;
                    while ( rolesIter.hasNext() )
                    {
                        sr = (SecurityRole)rolesIter.next();
                        if ( !roleManager.roleExists(sr.getRoleName()) )
                        {
                            roleManager.addRole(sr.getRoleName());
                            log.info("AutoCreated role: "+sr.getRoleName()+" from portlet application "+paName+" its web definition");
                        }
                    }
                }
                catch (SecurityException sex)
                {
View Full Code Here

Examples of org.apache.pluto.om.common.SecurityRole

    // SecurityRoleSet implementation.

    public SecurityRole get(String roleName) {
        Iterator iterator = this.iterator();
        while (iterator.hasNext()) {
            SecurityRole securityRole = (SecurityRole)iterator.next();
            if (securityRole.getRoleName().equals(roleName)) {
                return securityRole;
            }
        }
        return null;
    }
View Full Code Here

Examples of org.apache.pluto.om.common.SecurityRole

    }

    public SecurityRole remove(String roleName) {
        Iterator iterator = this.iterator();
        while (iterator.hasNext()) {
            SecurityRole securityRole = (SecurityRole)iterator.next();
            if (securityRole.getRoleName().equals(roleName)) {
                super.remove(securityRole);
                return securityRole;
            }
        }
        return null;
View Full Code Here

Examples of org.apache.pluto.om.common.SecurityRole

     * @see org.apache.pluto.om.common.SecurityRoleSet#get(java.lang.String)
     */
    public SecurityRole get(String name) {
        Iterator itr = innerCollection.iterator();
        while (itr.hasNext()) {
            SecurityRole role = (SecurityRole) itr.next();
            if (role.getRoleName().equals(name)) { return role; }
        }

        return null;
    }
View Full Code Here

Examples of org.apache.pluto.om.common.SecurityRole

    /**
     * @see java.util.Collection#add(java.lang.Object)
     */
    public boolean add(Object o) {
        SecurityRole role = (SecurityRole) o;
        add(role);
        return true;
    }
View Full Code Here

Examples of org.apache.tomcat.deployment.SecurityRole

  // XXX - realm = context.getRealmConnector();

  // Check each role included in this constraint
  Enumeration roles = auth.getSecurityRoles();
  while (roles.hasMoreElements()) {
      SecurityRole role = (SecurityRole) roles.nextElement();
      if (realm.hasRole(principal, role.getName()))
    return;
  }

  // XXX - Send "forbidden" error and
  // throw InterceptorException
View Full Code Here

Examples of org.apache.tomcat.deployment.SecurityRole

  // XXX - realm = context.getRealmConnector();

  // Check each role included in this constraint
  Enumeration roles = auth.getSecurityRoles();
  while (roles.hasMoreElements()) {
      SecurityRole role = (SecurityRole) roles.nextElement();
      if (realm.hasRole(principal, role.getName()))
    return;
  }

  // XXX - Send "forbidden" error and
  // throw InterceptorException
View Full Code Here

Examples of org.apache.tomcat.deployment.SecurityRole

  // XXX - realm = context.getRealmConnector();

  // Check each role included in this constraint
  Enumeration roles = auth.getSecurityRoles();
  while (roles.hasMoreElements()) {
      SecurityRole role = (SecurityRole) roles.nextElement();
      if (realm.hasRole(principal, role.getName()))
    return;
  }

  // XXX - Send "forbidden" error and
  // throw InterceptorException
View Full Code Here

Examples of org.jboss.metamodel.descriptor.SecurityRole

   {
      Object child = null;

      if (localName.equals("security-role"))
      {
         child = new SecurityRole();
      }
      else if (localName.equals("method-permission"))
      {
         child = new MethodPermission();
      }
View Full Code Here

Examples of org.jboss.metamodel.descriptor.SecurityRole

   {
      Object child = null;

      if (localName.equals("security-role"))
      {
         child = new SecurityRole();
      }
      else if (localName.equals("method-permission"))
      {
         child = new MethodPermission();
      }
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.