Examples of PublishWorkspaceAction


Examples of org.brixcms.plugin.publishing.auth.PublishWorkspaceAction

        @Override
        public boolean isVisible() {
            Workspace workspace = PublishingPanel.this.getModelObject();
            String state = SitePlugin.get().getWorkspaceState(workspace);
            Action action = new PublishWorkspaceAction(Context.ADMINISTRATION, workspace,
                    targetState);

            return requiredState.equals(state) &&
                    Brix.get().getAuthorizationStrategy().isActionAuthorized(
                            action);
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.