Examples of CategoryPathType


Examples of org.drools.guvnor.server.security.CategoryPathType

                try {
                    RuleAsset ruleAsset = loadAsset( asset );

                    if ( ruleAsset.metaData.categories.length == 0 ) {
                        Identity.instance().checkPermission( new CategoryPathType( null ),
                                                             RoleTypes.ANALYST_READ );
                    } else {

                        // Check category permissions
                        boolean passed = false;
                        RuntimeException exception = null;

                        for ( String cat : ruleAsset.metaData.categories ) {
                            try {
                                Identity.instance().checkPermission( new CategoryPathType( cat ),
                                                                     RoleTypes.ANALYST );
                                passed = true;
                            } catch ( RuntimeException e ) {
                                exception = e;
                            }
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.