Examples of BackOfficePermission


Examples of org.jboss.dashboard.security.BackOfficePermission

        List<XMLNode> children = node.getChildren();
        if (children == null || children.isEmpty()) {
            renderFragment("emptyEntry");
        } else {
            renderFragment("entryElementsOutputStart");
            BackOfficePermission createPerm = BackOfficePermission.newInstance(null, BackOfficePermission.ACTION_CREATE_WORKSPACE);
            boolean canCreate = UserStatus.lookup().hasPermission(createPerm);
            int j = 0;
            for (XMLNode childNode : children) {
                setAttribute("inputName", ExportDriver.IMPORT_PREFFIX + index + " " + j++);
                if (childNode.getObjectName().equals(ExportVisitor.WORKSPACE)) {
View Full Code Here

Examples of org.jboss.dashboard.security.BackOfficePermission

        getNavigationManager().setShowingConfig(true);
        tree.getNodeByPath(path).onEdit();
    }

    public void actionNewWorkspace(CommandRequest request) {
        BackOfficePermission workspacePerm = BackOfficePermission.newInstance(null, BackOfficePermission.ACTION_CREATE_WORKSPACE);
        getUserStatus().checkPermission(workspacePerm);
        navigateToConfigPath(newWorkspace);
    }
View Full Code Here

Examples of org.jboss.dashboard.security.BackOfficePermission

    public boolean isEditable() {
        return false;
    }

    public boolean isExpandible() {
        BackOfficePermission perm = BackOfficePermission.newInstance(null, BackOfficePermission.ACTION_USE_GRAPHIC_RESOURCES);
        return super.isExpandible() && UserStatus.lookup().hasPermission( perm);
    }
View Full Code Here

Examples of org.jboss.dashboard.security.BackOfficePermission

        }
        return true;
    }

    public boolean isEditable() {
        BackOfficePermission editPerm = BackOfficePermission.newInstance(null, BackOfficePermission.ACTION_USE_PERMISSIONS);
        return super.isEditable() && UserStatus.lookup().hasPermission(editPerm);
    }
View Full Code Here

Examples of org.jboss.dashboard.security.BackOfficePermission

                renderFragment("outputEndRow");
                n++;
            }
            renderFragment("endTable");

            BackOfficePermission workspacePerm = BackOfficePermission.newInstance(null, BackOfficePermission.ACTION_CREATE_WORKSPACE);
            if (getUserStatus().hasPermission(workspacePerm)) {
                renderFragment("outputCreateWorkspaceStart");
                setAttribute("error", workspacesPropertiesHandler.hasError("name"));
                renderFragment("outputCreateWorkspaceName");
                renderI18nInputs("name", 50, getWorkspacesPropertiesHandler().getName());
View Full Code Here

Examples of org.jboss.dashboard.security.BackOfficePermission

    public void service(HttpServletRequest request, HttpServletResponse response) throws FormatterException {
        renderFragment("outputStart");
        renderFragment("workspacesSelect");
        if (getNavigationManager().isAdminBarVisible()) try {
            Workspace currentWorkspace = getNavigationManager().getCurrentWorkspace();
            BackOfficePermission createPerm = BackOfficePermission.newInstance(null, BackOfficePermission.ACTION_CREATE_WORKSPACE);
            WorkspacePermission editPerm = WorkspacePermission.newInstance(currentWorkspace, WorkspacePermission.ACTION_EDIT);
            WorkspacePermission deletePerm = WorkspacePermission.newInstance(currentWorkspace, WorkspacePermission.ACTION_DELETE);
            boolean canAddWorkspace = getUserStatus().hasPermission(createPerm);
            if (canAddWorkspace) {
                renderFragment("createNewButton");
View Full Code Here

Examples of org.jboss.dashboard.security.BackOfficePermission

        getNavigationManager().setShowingConfig(true);
        tree.getNodeByPath(path).onEdit();
    }

    public void actionNewWorkspace(CommandRequest request) {
        BackOfficePermission workspacePerm = BackOfficePermission.newInstance(null, BackOfficePermission.ACTION_CREATE_WORKSPACE);
        getUserStatus().checkPermission(workspacePerm);
        navigateToConfigPath(newWorkspace);
    }
View Full Code Here

Examples of org.jboss.dashboard.security.BackOfficePermission

        }
    }

    public void duplicateWorkspace() throws Exception {
        WorkspaceImpl workspace = (WorkspaceImpl) UIServices.lookup().getWorkspacesManager().getWorkspace(workspaceId);
        BackOfficePermission workspacePerm = BackOfficePermission.newInstance(null, BackOfficePermission.ACTION_CREATE_WORKSPACE);
        if (!getUserStatus().hasPermission(workspacePerm)) return;
        WorkspaceImpl workspaceCopy = getCopyManager().copy(workspace);
        Map<String, String> name = workspace.getName();
        for (String lang : name.keySet()) {
            String desc = name.get(lang);
View Full Code Here

Examples of org.jboss.dashboard.security.BackOfficePermission

        List children = node.getChildren();
        if (children == null || children.isEmpty()) {
            renderFragment("emptyEntry");
        } else {
            renderFragment("entryElementsOutputStart");
            BackOfficePermission createPerm = BackOfficePermission.newInstance(null, BackOfficePermission.ACTION_CREATE_WORKSPACE);
            boolean canCreate = UserStatus.lookup().hasPermission(createPerm);
            for (int j = 0; j < children.size(); j++) {
                XMLNode childNode = (XMLNode) children.get(j);
                setAttribute("inputName", ExportDriver.IMPORT_PREFFIX + index + " " + j);
                if (childNode.getObjectName().equals(ExportVisitor.WORKSPACE)) {
View Full Code Here

Examples of org.jboss.dashboard.security.BackOfficePermission

    public String getId() {
        return "resources";
    }

    public boolean isExpandible() {
        BackOfficePermission perm = BackOfficePermission.newInstance(null, BackOfficePermission.ACTION_USE_GRAPHIC_RESOURCES);
        return super.isExpandible() && UserStatus.lookup().hasPermission( perm);
    }
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.