/** * Returns <code>true</code> if this project is the Online project.<p> * * @return <code>true</code> if this project is the Online project */ public boolean isOnlineProject() { return isOnlineProject(m_id); }
/** * Returns <code>true</code> if this project is the Online project.<p> * * @return <code>true</code> if this project is the Online project */ public boolean isOnlineProject() { return isOnlineProject(m_id); }
/** * Checks whether the cms context is in the offline project and throws an exception otherwise.<p> * * @param cms the cms context */ public void checkOffline(CmsObject cms) { if (cms.getRequestContext().getCurrentProject().isOnlineProject()) { throw new IllegalStateException(); } }
/** * Returns if the current project is the online project.<p> * * @return <code>true</code> if the current project is the online project */ public boolean getIsOnlineProject() { return m_cms.getRequestContext().getCurrentProject().isOnlineProject(); }
/** * @see org.opencms.workplace.explorer.menu.I_CmsMenuItemRule#matches(org.opencms.file.CmsObject, CmsResourceUtil[]) */ public boolean matches(CmsObject cms, CmsResourceUtil[] resourceUtil) { return cms.getRequestContext().getCurrentProject().isOnlineProject(); }
/** * Returns the DEFAULT filter in the Online project, and IGNORE_EXPIRATION otherwise.<p> * * @param cms the CMS context whose project to check * @return the resource filter based on the given CmsObject */ public static CmsResourceFilter ignoreExpirationOffline(CmsObject cms) { return cms.getRequestContext().getCurrentProject().isOnlineProject() ? DEFAULT : IGNORE_EXPIRATION; }
/** * @see org.opencms.workplace.tools.I_CmsToolHandler#isEnabled(org.opencms.file.CmsObject) */ @Override public boolean isEnabled(CmsObject cms) { return !cms.getRequestContext().getCurrentProject().isOnlineProject(); } }
/** * @see org.opencms.workplace.tools.I_CmsToolHandler#isEnabled(org.opencms.file.CmsObject) */ @Override public boolean isEnabled(CmsObject cms) { return !cms.getRequestContext().currentProject().isOnlineProject(); } }
/** * @see org.opencms.workplace.explorer.menu.I_CmsMenuItemRule#matches(org.opencms.file.CmsObject, CmsResourceUtil[]) */ public boolean matches(CmsObject cms, CmsResourceUtil[] resourceUtil) { return cms.getRequestContext().currentProject().isOnlineProject(); }
/** * @see org.opencms.workplace.explorer.menu.I_CmsMenuItemRule#matches(org.opencms.file.CmsObject, CmsResourceUtil[]) */ public boolean matches(CmsObject cms, CmsResourceUtil[] resourceUtil) { return cms.getRequestContext().getCurrentProject().isOnlineProject(); }
/** * Returns true if the project set in the CmsObject is the Online project.<p> * * @param cms the CMS context to check * * @return true if the project set in the CMS context is the Online project */ private boolean isOnline(CmsObject cms) { return cms.getRequestContext().getCurrentProject().isOnlineProject(); }
/** * Returns true if this an online configuration cache.<p> * * @return true if this is an online cache, false if it is an offline cache */ protected boolean isOnline() { return m_cms.getRequestContext().getCurrentProject().isOnlineProject(); }
/** * @see org.opencms.workplace.explorer.menu.I_CmsMenuItemRule#matches(org.opencms.file.CmsObject, CmsResourceUtil[]) */ public boolean matches(CmsObject cms, CmsResourceUtil[] resourceUtil) { return cms.getRequestContext().getCurrentProject().isOnlineProject(); }
/** * @see org.opencms.workplace.explorer.menu.I_CmsMenuItemRule#matches(org.opencms.file.CmsObject, CmsResourceUtil[]) */ public boolean matches(CmsObject cms, CmsResourceUtil[] resourceUtil) { return cms.getRequestContext().currentProject().isOnlineProject(); }
/** * @see org.opencms.workplace.explorer.menu.I_CmsMenuItemRule#matches(org.opencms.file.CmsObject, CmsResourceUtil[]) */ public boolean matches(CmsObject cms, CmsResourceUtil[] resourceUtil) { return cms.getRequestContext().currentProject().isOnlineProject(); }
/** * @see org.opencms.workplace.explorer.menu.I_CmsMenuItemRule#getVisibility(org.opencms.file.CmsObject, CmsResourceUtil[]) */ @Override public CmsMenuItemVisibilityMode getVisibility(CmsObject cms, CmsResourceUtil[] resourceUtil) { if (cms.getRequestContext().getCurrentProject().isOnlineProject()) { return CmsMenuItemVisibilityMode.VISIBILITY_INACTIVE.addMessageKey( Messages.GUI_CONTEXTMENU_TITLE_INACTIVE_ONLINEPROJECT_0); } return CmsMenuItemVisibilityMode.VISIBILITY_ACTIVE; }
/** * Returns whether the current project is the online project.<p> * * @return <code>true</code> if the current project is the online project */ public static boolean isOnlineProject() { return getCmsObject().getRequestContext().getCurrentProject().isOnlineProject(); }
/** * @see org.opencms.workplace.explorer.menu.I_CmsMenuItemRule#getVisibility(org.opencms.file.CmsObject, CmsResourceUtil[]) */ @Override public CmsMenuItemVisibilityMode getVisibility(CmsObject cms, CmsResourceUtil[] resourceUtil) { if (cms.getRequestContext().currentProject().isOnlineProject()) { return CmsMenuItemVisibilityMode.VISIBILITY_INACTIVE.addMessageKey(Messages.GUI_CONTEXTMENU_TITLE_INACTIVE_ONLINEPROJECT_0); } return CmsMenuItemVisibilityMode.VISIBILITY_ACTIVE; }
/** * Returns if direct edit is enabled.<p> * * @param cms the current cms context * * @return <code>true</code> if direct edit is enabled */ static boolean isDirectEditEnabled(CmsObject cms) { return !cms.getRequestContext().getCurrentProject().isOnlineProject() && (cms.getRequestContext().getAttribute(CmsGwtConstants.PARAM_DISABLE_DIRECT_EDIT) == null); }
/** * Gets the cached formatters.<p> * * @return the cached formatters */ public CmsFormatterConfigurationCacheState getCachedFormatters() { return OpenCms.getADEManager().getCachedFormatters( getCms().getRequestContext().getCurrentProject().isOnlineProject()); }