/** * @see org.opencms.file.history.I_CmsHistoryResource#getCreatedByName() * * @deprecated use {@link #getUserCreatedName(CmsObject)} instead */ public String getCreatedByName() { return getUserCreated().toString(); }
/** * Returns the name of the user that created this resource.<p> * * @param cms the current cms context * * @return the name of the user that created this resource */ public String getUserCreatedName(CmsObject cms) { try { return CmsPrincipal.readPrincipalIncludingHistory(cms, getUserCreated()).getName(); } catch (CmsException e) { return getUserCreated().toString(); } }
/** * Returns the name of the user that created this resource.<p> * * @param cms the current cms context * * @return the name of the user that created this resource */ public String getUserCreatedName(CmsObject cms) { try { return CmsPrincipal.readPrincipalIncludingHistory(cms, getUserCreated()).getName(); } catch (CmsException e) { return getUserCreated().toString(); } }
hisRes.getState(), hisRes.getDateCreated(), hisRes.getUserCreated(), hisRes.getDateLastModified(), hisRes.getUserLastModified(),
/** * Returns a clone of this Objects instance.<p> * * @return a clone of this instance */ @Override public Object clone() { return new CmsHistoryFile( getPublishTag(), getStructureId(), getResourceId(), getRootPath(), getTypeId(), getFlags(), getProjectLastModified(), getState(), getDateCreated(), getUserCreated(), getDateLastModified(), getUserLastModified(), getDateReleased(), getDateExpired(), getLength(), getDateContent(), getVersion(), getParentId(), getContents(), getResourceVersion(), getStructureVersion()); }