/** * Returns the manager group of a project.<p> * * @param project the id of the project to return the manager group for * @return the manager group of the project * @throws Exception if something goes wrong */ public CmsGroup readManagerGroup(CmsUUID project) throws Exception { return m_cms.readManagerGroup(m_cms.readProject(project)); }
/** * Returns the users group of a project.<p> * * @param project the id of the project to return the users group for * @return the users group of the project * @throws Exception if something goes wrong */ public CmsGroup readGroupOfProject(CmsUUID project) throws Exception { return m_cms.readGroup(m_cms.readProject(project)); }
/** * Returns the manager group of a project.<p> * * @param project the id of the project to return the manager group for * @return the manager group of the project * @throws Exception if something goes wrong */ public CmsGroup readManagerGroup(CmsUUID project) throws Exception { return m_cms.readManagerGroup(m_cms.readProject(project)); }
/** * Returns the users group of a project.<p> * * @param project the id of the project to return the users group for * @return the users group of the project * @throws Exception if something goes wrong */ public CmsGroup readGroupOfProject(CmsUUID project) throws Exception { return m_cms.readGroup(m_cms.readProject(project)); }
/** * Returns the owner of a project.<p> * * @param project the id of the project * @return the owner of the project * @throws Exception if something goes wrong */ public CmsUser readOwnerOfProject(CmsUUID project) throws Exception { return m_cms.readOwner(m_cms.readProject(project)); }
/** * Returns the owner of a project.<p> * * @param project the id of the project * @return the owner of the project * @throws Exception if something goes wrong */ public CmsUser readOwnerOfProject(CmsUUID project) throws Exception { return m_cms.readOwner(m_cms.readProject(project)); }
public Boolean apply(CmsUUID projectId) { try { CmsProject project = m_cms.readProject(projectId); return new Boolean(project.isWorkflowProject()); } catch (CmsException e) { getLog().warn(e.getLocalizedMessage(), e); return Boolean.FALSE; } }
/** * Sets the current project to the provided project name.<p> * * @param name the project name to set * @return the project set * @throws Exception if something goes wrong */ public CmsProject setCurrentProject(String name) throws Exception { return m_cms.getRequestContext().setCurrentProject(m_cms.readProject(name)); }
/** * Deletes a project by name.<p> * * @param name the name of the project to delete * @throws Exception if something goes wrong * * @see CmsObject#deleteProject(CmsUUID) */ public void deleteProject(String name) throws Exception { m_cms.deleteProject(m_cms.readProject(name).getUuid()); }
/** * Sets the current project to the provided project name.<p> * * @param name the project name to set * @return the project set * @throws Exception if something goes wrong */ public CmsProject setCurrentProject(String name) throws Exception { return m_cms.getRequestContext().setCurrentProject(m_cms.readProject(name)); }
/** * Sets the current project to the provided project id.<p> * * @param id the project id to set * @return the project set * @throws Exception if something goes wrong */ public CmsProject setCurrentProject(CmsUUID id) throws Exception { return m_cms.getRequestContext().setCurrentProject(m_cms.readProject(id)); }
/** * Deletes a project by name.<p> * * @param name the name of the project to delete * @throws Exception if something goes wrong * * @see CmsObject#deleteProject(CmsUUID) */ public void deleteProject(String name) throws Exception { m_cms.deleteProject(m_cms.readProject(name).getUuid()); }
/** * Sets the current project to the provided project id.<p> * * @param id the project id to set * @return the project set * @throws Exception if something goes wrong */ public CmsProject setCurrentProject(CmsUUID id) throws Exception { return m_cms.getRequestContext().setCurrentProject(m_cms.readProject(id)); }
/** * Helper method to change back from the temporary project to the current project.<p> * * @throws CmsException if switching back fails */ protected void switchToCurrentProject() throws CmsException { if (m_currentProjectId != null) { // switch back to the current users project getCms().getRequestContext().setCurrentProject(getCms().readProject(m_currentProjectId)); } }
/** * @see org.opencms.workplace.list.A_CmsListExplorerDialog#getProject() */ @Override protected CmsProject getProject() { CmsUUID projectId = new CmsUUID(getParamProjectid()); try { return getCms().readProject(projectId); } catch (CmsException e) { return super.getProject(); } }
/** * Helper method to change back from the temporary project to the current project.<p> * * @throws CmsException if switching back fails */ protected void switchToCurrentProject() throws CmsException { if (m_currentProjectId != null) { // switch back to the current users project getCms().getRequestContext().setCurrentProject(getCms().readProject(m_currentProjectId)); } }
/** * @see org.opencms.workplace.list.A_CmsListExplorerDialog#getProject() */ @Override protected CmsProject getProject() { CmsUUID projectId = new CmsUUID(getParamProjectid()); try { return getCms().readProject(projectId); } catch (CmsException e) { return super.getProject(); } }
/** * @see org.opencms.workplace.CmsWidgetDialog#validateParamaters() */ @Override protected void validateParamaters() throws Exception { if (!isNewProject()) { // test the needed parameters getCms().readProject(new CmsUUID(getParamProjectid())).getName(); } }
/** * @see org.opencms.repository.I_CmsRepository#initializeCms(org.opencms.file.CmsObject) */ public void initializeCms(CmsObject cms) throws CmsException { m_cms = cms; m_project = m_cms.readProject(m_projectName); m_device = new DiskSharedDevice(getName(), getDiskInterface(), getDeviceContext(), 0); m_device.addAccessControl(new CmsRepositoryAccessControl(this)); }
/** * @see org.opencms.workplace.list.A_CmsListDialog#validateParamaters() */ @Override protected void validateParamaters() throws Exception { try { getCms().readProject(new CmsUUID(getParamProjectid())); } catch (Exception e) { m_paramProjectid = getCms().getRequestContext().getCurrentProject().getUuid().toString(); } } }