/** * Reads the owner of a project.<p> * * @param dbc the current database context * @param project the project to get the owner from * * @return the owner of a resource * @throws CmsException if something goes wrong */ public CmsUser readOwner(CmsDbContext dbc, CmsProject project) throws CmsException { return readUser(dbc, project.getOwnerId()); }
/** * Reads the owner of a project.<p> * * @param dbc the current database context * @param project the project to get the owner from * * @return the owner of a resource * @throws CmsException if something goes wrong */ public CmsUser readOwner(CmsDbContext dbc, CmsProject project) throws CmsException { return readUser(dbc, project.getOwnerId()); }
manageable = manageable || project.getOwnerId().equals(dbc.currentUser().getId());
accessible = accessible || project.getOwnerId().equals(dbc.currentUser().getId());
stmt.setLong(4, publishDate); stmt.setString(5, currentUser.getId().toString()); stmt.setString(6, currentProject.getOwnerId().toString()); stmt.setString(7, currentProject.getGroupId().toString()); stmt.setString(8, currentProject.getManagerGroupId().toString());
stmt.setLong(4, publishDate); stmt.setString(5, currentUser.getId().toString()); stmt.setString(6, currentProject.getOwnerId().toString()); stmt.setString(7, currentProject.getGroupId().toString()); stmt.setString(8, currentProject.getManagerGroupId().toString());
manageable = manageable || project.getOwnerId().equals(dbc.currentUser().getId());
accessible = accessible || project.getOwnerId().equals(dbc.currentUser().getId());
getLocale())); try { item.set(LIST_COLUMN_OWNER, getCms().readUser(project.getOwnerId()).getName()); } catch (Exception e) {
OpenCms.getOrgUnitManager().readOrganizationalUnit(cms, project.getOuFqn()).getDisplayName( locale)); item.getItemProperty(PROP_OWNER).setValue(cms.readUser(project.getOwnerId()).getName()); item.getItemProperty(PROP_MANAGER).setValue( cms.readGroup(project.getManagerGroupId()).getSimpleName());
hp.setProjectPublishDate(publishDate); hp.setProjectPublishedBy(currentUser.getId().toString()); hp.setUserId(currentProject.getOwnerId().toString()); hp.setGroupId(currentProject.getGroupId().toString()); hp.setManagerGroupId(currentProject.getManagerGroupId().toString());