Package org.aperteworkflow.editor.ui.permission

Examples of org.aperteworkflow.editor.ui.permission.PermissionDefinition


                return permissions;
            }

            @Override
            public Collection<PermissionDefinition> getPermissionDefinitions() {
                PermissionDefinition perm1 = new PermissionDefinition();
                perm1.setKey("SEARCH");
                perm1.setDescription("editor.permissions.description.step.SEARCH");
                return Arrays.asList(perm1);
            }

            @Override
            public boolean isNewPermissionDefinitionAllowed() {
View Full Code Here


    public Collection<PermissionDefinition> getPermissionDefinitions() {
        if (definitions == null) {
            I18NSource messages = I18NSource.ThreadUtil.getThreadI18nSource();

            definitions = new ArrayList<PermissionDefinition>();
            definitions.add(new PermissionDefinition("INCLUDE", messages.getMessage("process.permission.INCLUDE")));
            definitions.add(new PermissionDefinition("RUN", messages.getMessage("process.permission.RUN")));
            definitions.add(new PermissionDefinition("SEARCH", messages.getMessage("process.permission.SEARCH")));
        }
        return definitions;
    }
View Full Code Here

            }
        }

        if (perms != null) {
            for (Permission perm : perms) {
                PermissionDefinition permissionDefinition = new PermissionDefinition();
                permissionDefinition.setKey(perm.key());
                permissionDefinition.setDescription(perm.desc());
                permissions.add(permissionDefinition);
            }

            Collections.sort(permissions);
        }
View Full Code Here

TOP

Related Classes of org.aperteworkflow.editor.ui.permission.PermissionDefinition

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.