Package org.jboss.metadata.web.spec

Examples of org.jboss.metadata.web.spec.WebResourceCollectionsMetaData


                  for (String role : acmd.getRoleNames())
                  {
                     constraint.addAuthRole(role);
                  }
            }
            WebResourceCollectionsMetaData wrcs = value.getResourceCollections();
            if (wrcs != null)
            {
               for (WebResourceCollectionMetaData wrc : wrcs)
               {
                  org.apache.catalina.deploy.SecurityCollection collection2 = new org.apache.catalina.deploy.SecurityCollection();
View Full Code Here


      List<SecurityConstraintMetaData> constraints = metaData.getSecurityConstraints();
      if(constraints != null)
      {
         for(SecurityConstraintMetaData sc : constraints)
         {
            WebResourceCollectionsMetaData resources = sc.getResourceCollections();
            TransportGuaranteeType transport = sc.getTransportGuarantee();
            if( sc.isExcluded() || sc.isUnchecked() )
            {
               // Process the permissions for the excluded/unchecked resources
               if(resources != null)
View Full Code Here

      List<SecurityConstraintMetaData> constraints = metaData.getSecurityConstraints();
      if(constraints != null)
      {
         for(SecurityConstraintMetaData sc : constraints)
         {
            WebResourceCollectionsMetaData resources = sc.getResourceCollections();
            for(WebResourceCollectionMetaData wrc : resources)
            {
               List<String> urlPatterns = wrc.getUrlPatterns();
               int length = urlPatterns != null ? urlPatterns.size() : 0;
               for(int n = 0; n < length; n ++)
View Full Code Here

    * @param securityConstraintMD security constraint meta data
    */
   private void setWebResources(final JSESecurityMetaData jseSecurityMD,
         final SecurityConstraintMetaData securityConstraintMD)
   {
      final WebResourceCollectionsMetaData webResources = securityConstraintMD.getResourceCollections();

      for (final WebResourceCollectionMetaData webResourceMD : webResources)
      {
         final JSEResourceCollection jseResource = jseSecurityMD.addWebResource(webResourceMD.getName());

View Full Code Here

    * @param securityConstraintMD security constraint meta data
    * @return web resource collections meta data
    */
   public static WebResourceCollectionsMetaData getWebResourceCollections(final SecurityConstraintMetaData securityConstraintMD)
   {
      WebResourceCollectionsMetaData webResourceCollectionsMD = securityConstraintMD.getResourceCollections();

      if (webResourceCollectionsMD == null)
      {
         webResourceCollectionsMD = new WebResourceCollectionsMetaData();
         securityConstraintMD.setResourceCollections(webResourceCollectionsMD);
      }

      return webResourceCollectionsMD;
   }
View Full Code Here

            // security-constraint
            final SecurityConstraintMetaData securityConstraint = WebMetaDataHelper
                  .newSecurityConstraint(securityConstraints);

            // web-resource-collection
            final WebResourceCollectionsMetaData webResourceCollections = WebMetaDataHelper
                  .getWebResourceCollections(securityConstraint);
            final String endpointName = ejbEndpoint.getShortName();
            final String urlPattern = ejbEndpoint.getURLPattern();
            this.log.debug("Creating web resource collection for endpoint: " + endpointName + ", URL pattern: "
                  + urlPattern);
View Full Code Here

                // security-constraint
                final SecurityConstraintMetaData securityConstraint = WebMetaDataHelper
                        .newSecurityConstraint(securityConstraints);

                // web-resource-collection
                final WebResourceCollectionsMetaData webResourceCollections = WebMetaDataHelper
                        .getWebResourceCollections(securityConstraint);
                final String endpointName = ejbEndpoint.getShortName();
                final String urlPattern = ((HttpEndpoint) ejbEndpoint).getURLPattern();
                ROOT_LOGGER.creatingWebResourceCollection(endpointName, urlPattern);
                WebMetaDataHelper.newWebResourceCollection(endpointName, urlPattern, secureWsdlAccess,
View Full Code Here

     *
     * @param securityConstraintMD security constraint meta data
     * @return web resource collections meta data
     */
    public static WebResourceCollectionsMetaData getWebResourceCollections(final SecurityConstraintMetaData securityConstraintMD) {
        WebResourceCollectionsMetaData webResourceCollectionsMD = securityConstraintMD.getResourceCollections();

        if (webResourceCollectionsMD == null) {
            webResourceCollectionsMD = new WebResourceCollectionsMetaData();
            securityConstraintMD.setResourceCollections(webResourceCollectionsMD);
        }

        return webResourceCollectionsMD;
    }
View Full Code Here

     *
     * @param jseSecurityMD universal JSE security meta data model
     * @param securityConstraintMD security constraint meta data
     */
    private void setWebResources(final JSESecurityMetaData jseSecurityMD, final SecurityConstraintMetaData securityConstraintMD) {
        final WebResourceCollectionsMetaData webResources = securityConstraintMD.getResourceCollections();

        for (final WebResourceCollectionMetaData webResourceMD : webResources) {
            final JSEResourceCollection jseResource = jseSecurityMD.addWebResource(webResourceMD.getName());

            for (final String webResourceUrlPatterns : webResourceMD.getUrlPatterns()) {
View Full Code Here

                    if (acmd.getRoleNames() != null)
                        for (String role : acmd.getRoleNames()) {
                            constraint.addAuthRole(role);
                        }
                }
                WebResourceCollectionsMetaData wrcs = value.getResourceCollections();
                if (wrcs != null) {
                    for (WebResourceCollectionMetaData wrc : wrcs) {
                        org.apache.catalina.deploy.SecurityCollection collection2 = new org.apache.catalina.deploy.SecurityCollection();
                        collection2.setName(wrc.getName());
                        List<String> methods = wrc.getHttpMethods();
View Full Code Here

TOP

Related Classes of org.jboss.metadata.web.spec.WebResourceCollectionsMetaData

Copyright © 2018 www.massapicom. 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.