/** * @see org.opencms.workplace.explorer.menu.I_CmsMenuItemRule#matches(org.opencms.file.CmsObject, org.opencms.workplace.explorer.CmsResourceUtil[]) */ public boolean matches(CmsObject cms, CmsResourceUtil[] resourceUtil) { return !OpenCms.getRoleManager().hasRole(cms, CmsRole.WORKPLACE_USER); }
/** * @see org.opencms.workplace.tools.A_CmsToolHandler#isEnabled(org.opencms.file.CmsObject) */ @Override public boolean isEnabled(CmsObject cms) { return OpenCms.getRoleManager().hasRole(cms, CmsRole.WORKPLACE_MANAGER); }
/** * @see org.opencms.workplace.tools.A_CmsToolHandler#isVisible(org.opencms.file.CmsObject) */ @Override public boolean isVisible(CmsObject cms) { return OpenCms.getRoleManager().hasRole(cms, CmsRole.WORKPLACE_MANAGER); } }
/** * @see org.opencms.workplace.tools.A_CmsToolHandler#isVisible(org.opencms.file.CmsObject) */ public boolean isVisible(CmsObject cms) { return OpenCms.getRoleManager().hasRole(cms, CmsRole.WORKPLACE_MANAGER); } }
/** * @see org.opencms.workplace.tools.I_CmsToolHandler#isVisible(org.opencms.file.CmsObject) */ public boolean isVisible(CmsObject cms) { return OpenCms.getRoleManager().hasRole(cms, CmsRole.ROOT_ADMIN); } }
/** * @see org.opencms.ui.apps.A_CmsWorkplaceAppConfiguration#getVisibility(org.opencms.file.CmsObject) */ @Override public CmsAppVisibilityStatus getVisibility(CmsObject cms) { CmsAppVisibilityStatus status = OpenCms.getRoleManager().hasRole(cms, CmsRole.ADMINISTRATOR) ? CmsAppVisibilityStatus.ACTIVE : CmsAppVisibilityStatus.INVISIBLE; return status; }
/** * @see org.opencms.ui.apps.A_CmsWorkplaceAppConfiguration#getVisibility(org.opencms.file.CmsObject) */ @Override public CmsAppVisibilityStatus getVisibility(CmsObject cms) { CmsAppVisibilityStatus status = OpenCms.getRoleManager().hasRole(cms, CmsRole.PROJECT_MANAGER) ? CmsAppVisibilityStatus.ACTIVE : CmsAppVisibilityStatus.INVISIBLE; return status; } }
/** * Checks whether the current user has the workplace user role.<p> * * @param cms the cms context * * @return <code>true</code> if the current user has the workplace user role */ protected boolean hasWorkplaceUserRole(CmsObject cms) { return OpenCms.getRoleManager().hasRole(cms, CmsRole.WORKPLACE_USER); }
/** * @see org.opencms.configuration.preferences.A_CmsPreference#isDisabled(org.opencms.file.CmsObject) */ @Override public boolean isDisabled(CmsObject cms) { return !OpenCms.getRoleManager().hasRole(cms, CmsRole.WORKPLACE_USER); }
/** * @see org.opencms.workplace.tools.I_CmsToolHandler#isVisible(org.opencms.file.CmsObject) */ public boolean isVisible(CmsObject cms) { return OpenCms.getRoleManager().hasRole(cms, CmsRole.ROOT_ADMIN); } }
/** * @see org.opencms.workplace.explorer.menu.I_CmsMenuItemRule#matches(org.opencms.file.CmsObject, org.opencms.workplace.explorer.CmsResourceUtil[]) */ public boolean matches(CmsObject cms, CmsResourceUtil[] resourceUtil) { return !OpenCms.getRoleManager().hasRole(cms, CmsRole.EDITOR); }
/** * @see org.opencms.workplace.tools.A_CmsToolHandler#isVisible(org.opencms.file.CmsObject) */ public boolean isVisible(CmsObject cms) { return OpenCms.getRoleManager().hasRole(cms, CmsRole.DATABASE_MANAGER); } }
/** * @see org.opencms.workplace.tools.I_CmsToolHandler#isEnabled(org.opencms.file.CmsObject) */ public boolean isEnabled(CmsObject cms) { return OpenCms.getRoleManager().hasRole(cms, CmsRole.WORKPLACE_MANAGER); }
/** * @see org.opencms.workplace.tools.A_CmsToolHandler#isVisible(org.opencms.file.CmsObject) */ public boolean isVisible(CmsObject cms) { return OpenCms.getRoleManager().hasRole(cms, CmsRole.WORKPLACE_MANAGER); } }
/** * @see org.opencms.workplace.tools.I_CmsToolHandler#isEnabled(org.opencms.file.CmsObject) */ public boolean isEnabled(CmsObject cms) { return OpenCms.getRoleManager().hasRole(cms, CmsRole.DATABASE_MANAGER); }
/** * @see org.opencms.workplace.tools.I_CmsToolHandler#isEnabled(org.opencms.file.CmsObject) */ public boolean isEnabled(CmsObject cms) { return OpenCms.getRoleManager().hasRole(cms, CmsRole.WORKPLACE_USER); }
/** * Returns true if the current user has the "DEVELOPER" role and can view the exception stacktrace.<p> * * @return true if the current user has the "DEVELOPER" role and can view the exception stacktrace */ public boolean showException() { return OpenCms.getRoleManager().hasRole(getCmsObject(), CmsRole.DEVELOPER); }
/** * @see org.opencms.ui.apps.I_CmsWorkplaceAppConfiguration#getVisibility(org.opencms.file.CmsObject) */ @Override public CmsAppVisibilityStatus getVisibility(CmsObject cms) { boolean visible = OpenCms.getRoleManager().hasRole(cms, CmsRole.WORKPLACE_MANAGER); return new CmsAppVisibilityStatus(visible, visible, ""); }
/** * Returns <code>true</code> if the current user is allowed * to delete the selected resources.<p> * * @return <code>true</code> if the current user is allowed * to delete the selected resources */ public boolean isCanDelete() { return OpenCms.getWorkplaceManager().getDefaultUserSettings().isAllowBrokenRelations() || OpenCms.getRoleManager().hasRole(getCms(), CmsRole.VFS_MANAGER); }