Package org.apache.harmony.jretools.policytool.model

Examples of org.apache.harmony.jretools.policytool.model.Permission


                    newIndex = skipWhiteSpaces( newIndex ) + 1;
            }
            else
                newIndex = skipWhiteSpaces( classNameIndices[ 1 ] ) + 1;

            final Permission permission = new Permission();
            permission.setClassName( policyText.substring( classNameIndices[ 0 ], classNameIndices[ 1 ] ) );
            if ( targetNameIndices != null )
                permission.setTargetName( policyText.substring( targetNameIndices[ 0 ] + 1, targetNameIndices[ 1 ] - 1 ) );
            if ( actionsIndices != null )
                permission.setActions( policyText.substring( actionsIndices[ 0 ] + 1, actionsIndices[ 1 ] - 1 ) );
            if ( signedByIndices != null )
                permission.setSignedBy( policyText.substring( signedByIndices[ 0 ] + 1, signedByIndices[ 1 ] - 1 ) );
            grantEntry.getPermissionList().add( permission );
        }

        newIndex = skipWhiteSpaces( newIndex ) + 1; // index of '}' + 1 (comments skipped)
        if ( peekNextNonWhiteSpaceChar( newIndex ) != PolicyEntry.TERMINATOR_CHAR )
View Full Code Here


            JOptionPane.showMessageDialog( this, errorStringBuilder.toString(), "Error!", JOptionPane.ERROR_MESSAGE );
            return;
        }
        // validation end

        final Permission permission = initialPermission == null ? new Permission() : initialPermission;

        permission.setClassName ( permissionTypeTextField.getText() );
        permission.setTargetName( targetNameTextField    .getText() );
        permission.setActions   ( actionsTextField       .getText() );
        permission.setSignedBy  ( signedByTextField      .getText() );

        if ( initialPermission == null ) {
            permissionList.add( permission );
            listModel.addElement( permission );
        }
View Full Code Here

TOP

Related Classes of org.apache.harmony.jretools.policytool.model.Permission

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.