Package org.hibernate.secure.spi

Examples of org.hibernate.secure.spi.GrantedPermission


    }

    if ( configurationElement.getSecurity() != null ) {
      for ( JaxbHibernateConfiguration.JaxbSecurity.JaxbGrant grant : configurationElement.getSecurity().getGrant() ) {
        grantedJaccPermissions.add(
            new GrantedPermission(
                grant.getRole(),
                grant.getEntityName(),
                grant.getActions()
            )
        );
View Full Code Here


      final int roleStart = AvailableSettings.JACC_PREFIX.length() + 1;
      final String role = key.substring( roleStart, key.indexOf( '.', roleStart ) );
      final int classStart = roleStart + role.length() + 1;
      final String clazz = key.substring( classStart, key.length() );

      grantedJaccPermissions.add( new GrantedPermission( role, clazz, (String) value ) );
    }
    catch ( IndexOutOfBoundsException e ) {
      throw persistenceException( "Illegal usage of " + AvailableSettings.JACC_PREFIX + ": " + key );
    }
  }
View Full Code Here

    while ( grantElements.hasNext() ) {
      final Element grantElement = (Element) grantElements.next();
      final String elementName = grantElement.getName();
      if ( "grant".equals( elementName ) ) {
        jaccPermissionDeclarations.addPermissionDeclaration(
            new GrantedPermission(
                grantElement.attributeValue( "role" ),
                grantElement.attributeValue( "entity-name" ),
                grantElement.attributeValue( "actions" )
            )
        );
View Full Code Here

    }

    if ( configurationElement.getSecurity() != null ) {
      for ( JaxbHibernateConfiguration.JaxbSecurity.JaxbGrant grant : configurationElement.getSecurity().getGrant() ) {
        grantedJaccPermissions.add(
            new GrantedPermission(
                grant.getRole(),
                grant.getEntityName(),
                grant.getActions()
            )
        );
View Full Code Here

      final int roleStart = AvailableSettings.JACC_PREFIX.length() + 1;
      final String role = key.substring( roleStart, key.indexOf( '.', roleStart ) );
      final int classStart = roleStart + role.length() + 1;
      final String clazz = key.substring( classStart, key.length() );

      grantedJaccPermissions.add( new GrantedPermission( role, clazz, (String) value ) );
    }
    catch ( IndexOutOfBoundsException e ) {
      throw persistenceException( "Illegal usage of " + AvailableSettings.JACC_PREFIX + ": " + key );
    }
  }
View Full Code Here

    while ( grantElements.hasNext() ) {
      final Element grantElement = (Element) grantElements.next();
      final String elementName = grantElement.getName();
      if ( "grant".equals( elementName ) ) {
        jaccPermissionDeclarations.addPermissionDeclaration(
            new GrantedPermission(
                grantElement.attributeValue( "role" ),
                grantElement.attributeValue( "entity-name" ),
                grantElement.attributeValue( "actions" )
            )
        );
View Full Code Here

    while ( grantElements.hasNext() ) {
      final Element grantElement = (Element) grantElements.next();
      final String elementName = grantElement.getName();
      if ( "grant".equals( elementName ) ) {
        jaccPermissionDeclarations.addPermissionDeclaration(
            new GrantedPermission(
                grantElement.attributeValue( "role" ),
                grantElement.attributeValue( "entity-name" ),
                grantElement.attributeValue( "actions" )
            )
        );
View Full Code Here

    while ( grantElements.hasNext() ) {
      final Element grantElement = (Element) grantElements.next();
      final String elementName = grantElement.getName();
      if ( "grant".equals( elementName ) ) {
        jaccPermissionDeclarations.addPermissionDeclaration(
            new GrantedPermission(
                grantElement.attributeValue( "role" ),
                grantElement.attributeValue( "entity-name" ),
                grantElement.attributeValue( "actions" )
            )
        );
View Full Code Here

    }

    if ( configurationElement.getSecurity() != null ) {
      for ( JaxbHibernateConfiguration.JaxbSecurity.JaxbGrant grant : configurationElement.getSecurity().getGrant() ) {
        grantedJaccPermissions.add(
            new GrantedPermission(
                grant.getRole(),
                grant.getEntityName(),
                grant.getActions()
            )
        );
View Full Code Here

      final int roleStart = AvailableSettings.JACC_PREFIX.length() + 1;
      final String role = key.substring( roleStart, key.indexOf( '.', roleStart ) );
      final int classStart = roleStart + role.length() + 1;
      final String clazz = key.substring( classStart, key.length() );

      grantedJaccPermissions.add( new GrantedPermission( role, clazz, (String) value ) );
    }
    catch ( IndexOutOfBoundsException e ) {
      throw persistenceException( "Illegal usage of " + AvailableSettings.JACC_PREFIX + ": " + key );
    }
  }
View Full Code Here

TOP

Related Classes of org.hibernate.secure.spi.GrantedPermission

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.