/** * Gets the ownername. * * @return the ownername * * @deprecated use {@link #getOwnerName(CmsObject)} instead */ public String getOwnerName() { return getOwnerId().toString(); }
/** * Returns the owner name.<p> * * @param cms the current cms context * * @return the owner name */ public String getOwnerName(CmsObject cms) { try { return CmsPrincipal.readPrincipalIncludingHistory(cms, getOwnerId()).getName(); } catch (CmsException e) { return getOwnerId().toString(); } }
/** * Returns the owner name.<p> * * @param cms the current cms context * * @return the owner name */ public String getOwnerName(CmsObject cms) { try { return CmsPrincipal.readPrincipalIncludingHistory(cms, getOwnerId()).getName(); } catch (CmsException e) { return getOwnerId().toString(); } }
} else if (project.getOwnerId().equals(dbc.currentUser().getId())) {
} else if (project.getOwnerId().equals(dbc.currentUser().getId())) {
/** * @see org.opencms.file.CmsProject#clone() */ @Override public Object clone() { return new CmsHistoryProject( m_publishTag, getUuid(), getName(), getDescription(), getOwnerId(), getGroupId(), getManagerGroupId(), getDateCreated(), getType(), m_datePublished, m_userPublished, m_projectResources); }
/** * @see org.opencms.file.CmsProject#clone() */ @Override public Object clone() { return new CmsHistoryProject( m_publishTag, getUuid(), getName(), getDescription(), getOwnerId(), getGroupId(), getManagerGroupId(), getDateCreated(), getType(), m_datePublished, m_userPublished, m_projectResources); }
locale)); item.getItemProperty(CmsProjectsTable.PROP_OWNER).setValue( cms.readUser(project.getOwnerId()).getName()); item.getItemProperty(CmsProjectsTable.PROP_MANAGER).setValue( cms.readGroup(project.getManagerGroupId()).getSimpleName());