Examples of JACCConfiguration


Examples of org.hibernate.secure.JACCConfiguration

  private void parseSecurity(Element secNode) {
    String contextId = secNode.attributeValue( "context" );
      setProperty(Environment.JACC_CONTEXTID, contextId);
    log.info( "JACC contextID: " + contextId );
    JACCConfiguration jcfg = new JACCConfiguration( contextId );
    Iterator grantElements = secNode.elementIterator();
    while ( grantElements.hasNext() ) {
      Element grantElement = (Element) grantElements.next();
      String elementName = grantElement.getName();
      if ( "grant".equals( elementName ) ) {
        jcfg.addPermission(
            grantElement.attributeValue( "role" ),
            grantElement.attributeValue( "entity-name" ),
            grantElement.attributeValue( "actions" )
          );
      }
View Full Code Here

Examples of org.hibernate.secure.JACCConfiguration

  private void parseSecurity(Element secNode) {
    String contextId = secNode.attributeValue( "context" );
      setProperty(Environment.JACC_CONTEXTID, contextId);
    log.info( "JACC contextID: " + contextId );
    JACCConfiguration jcfg = new JACCConfiguration( contextId );
    Iterator grantElements = secNode.elementIterator();
    while ( grantElements.hasNext() ) {
      Element grantElement = (Element) grantElements.next();
      String elementName = grantElement.getName();
      if ( "grant".equals( elementName ) ) {
        jcfg.addPermission(
            grantElement.attributeValue( "role" ),
            grantElement.attributeValue( "entity-name" ),
            grantElement.attributeValue( "actions" )
          );
      }
View Full Code Here

Examples of org.hibernate.secure.JACCConfiguration

  private void parseSecurity(Element secNode) {
    String contextId = secNode.attributeValue( "context" );
      setProperty(Environment.JACC_CONTEXTID, contextId);
    log.info( "JACC contextID: " + contextId );
    JACCConfiguration jcfg = new JACCConfiguration( contextId );
    Iterator grantElements = secNode.elementIterator();
    while ( grantElements.hasNext() ) {
      Element grantElement = (Element) grantElements.next();
      String elementName = grantElement.getName();
      if ( "grant".equals( elementName ) ) {
        jcfg.addPermission(
            grantElement.attributeValue( "role" ),
            grantElement.attributeValue( "entity-name" ),
            grantElement.attributeValue( "actions" )
          );
      }
View Full Code Here

Examples of org.hibernate.secure.JACCConfiguration

    setProperty( Environment.JACC_CONTEXTID, contextId );

    int roleStart = AvailableSettings.JACC_PREFIX.length() + 1;

    for ( String key : keys ) {
      JACCConfiguration jaccCfg = new JACCConfiguration( contextId );
      try {
        String role = key.substring( roleStart, key.indexOf( '.', roleStart ) );
        int classStart = roleStart + role.length() + 1;
        String clazz = key.substring( classStart, key.length() );
        String actions = (String) properties.get( key );
        jaccCfg.addPermission( role, clazz, actions );
      }
      catch (IndexOutOfBoundsException e) {
        throw new PersistenceException( getExceptionHeader() +
            "Illegal usage of " + AvailableSettings.JACC_PREFIX + ": " + key );
      }
View Full Code Here

Examples of org.hibernate.secure.JACCConfiguration

  private void parseSecurity(Element secNode) {
    String contextId = secNode.attributeValue( "context" );
      setProperty(Environment.JACC_CONTEXTID, contextId);
    log.info( "JACC contextID: " + contextId );
    JACCConfiguration jcfg = new JACCConfiguration( contextId );
    Iterator grantElements = secNode.elementIterator();
    while ( grantElements.hasNext() ) {
      Element grantElement = (Element) grantElements.next();
      String elementName = grantElement.getName();
      if ( "grant".equals( elementName ) ) {
        jcfg.addPermission(
            grantElement.attributeValue( "role" ),
            grantElement.attributeValue( "entity-name" ),
            grantElement.attributeValue( "actions" )
          );
      }
View Full Code Here

Examples of org.hibernate.secure.JACCConfiguration

    setProperty( Environment.JACC_CONTEXTID, contextId );

    int roleStart = HibernatePersistence.JACC_PREFIX.length() + 1;

    for ( String key : keys ) {
      JACCConfiguration jaccCfg = new JACCConfiguration( contextId );
      try {
        String role = key.substring( roleStart, key.indexOf( '.', roleStart ) );
        int classStart = roleStart + role.length() + 1;
        String clazz = key.substring( classStart, key.length() );
        String actions = (String) properties.get( key );
        jaccCfg.addPermission( role, clazz, actions );
      }
      catch (IndexOutOfBoundsException e) {
        throw new PersistenceException( getExceptionHeader(workingVars) +
            "Illegal usage of " + HibernatePersistence.JACC_PREFIX + ": " + key );
      }
View Full Code Here

Examples of org.hibernate.secure.JACCConfiguration

    setProperty( Environment.JACC_CONTEXTID, contextId );

    int roleStart = AvailableSettings.JACC_PREFIX.length() + 1;

    for ( String key : keys ) {
      JACCConfiguration jaccCfg = new JACCConfiguration( contextId );
      try {
        String role = key.substring( roleStart, key.indexOf( '.', roleStart ) );
        int classStart = roleStart + role.length() + 1;
        String clazz = key.substring( classStart, key.length() );
        String actions = (String) properties.get( key );
        jaccCfg.addPermission( role, clazz, actions );
      }
      catch (IndexOutOfBoundsException e) {
        throw new PersistenceException( getExceptionHeader() +
            "Illegal usage of " + AvailableSettings.JACC_PREFIX + ": " + key );
      }
View Full Code Here

Examples of org.hibernate.secure.JACCConfiguration

  private void parseSecurity(Element secNode) {
    String contextId = secNode.attributeValue( "context" );
      setProperty(Environment.JACC_CONTEXTID, contextId);
    log.info( "JACC contextID: " + contextId );
    JACCConfiguration jcfg = new JACCConfiguration( contextId );
    Iterator grantElements = secNode.elementIterator();
    while ( grantElements.hasNext() ) {
      Element grantElement = (Element) grantElements.next();
      String elementName = grantElement.getName();
      if ( "grant".equals( elementName ) ) {
        jcfg.addPermission(
            grantElement.attributeValue( "role" ),
            grantElement.attributeValue( "entity-name" ),
            grantElement.attributeValue( "actions" )
          );
      }
View Full Code Here

Examples of org.hibernate.secure.JACCConfiguration

    setProperty( Environment.JACC_CONTEXTID, contextId );

    int roleStart = HibernatePersistence.JACC_PREFIX.length() + 1;

    for ( String key : keys ) {
      JACCConfiguration jaccCfg = new JACCConfiguration( contextId );
      try {
        String role = key.substring( roleStart, key.indexOf( '.', roleStart ) );
        int classStart = roleStart + role.length() + 1;
        String clazz = key.substring( classStart, key.length() );
        String actions = (String) properties.get( key );
        jaccCfg.addPermission( role, clazz, actions );
      }
      catch (IndexOutOfBoundsException e) {
        throw new PersistenceException( getExceptionHeader() +
            "Illegal usage of " + HibernatePersistence.JACC_PREFIX + ": " + key );
      }
View Full Code Here

Examples of org.hibernate.secure.JACCConfiguration

  private void parseSecurity(Element secNode) {
    String contextId = secNode.attributeValue( "context" );
      setProperty(Environment.JACC_CONTEXTID, contextId);
    log.info( "JACC contextID: " + contextId );
    JACCConfiguration jcfg = new JACCConfiguration( contextId );
    Iterator grantElements = secNode.elementIterator();
    while ( grantElements.hasNext() ) {
      Element grantElement = (Element) grantElements.next();
      String elementName = grantElement.getName();
      if ( "grant".equals( elementName ) ) {
        jcfg.addPermission(
            grantElement.attributeValue( "role" ),
            grantElement.attributeValue( "entity-name" ),
            grantElement.attributeValue( "actions" )
          );
      }
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.