/** * @see org.opencms.file.history.I_CmsHistoryResource#getLastModifiedByName() * * @deprecated use {@link #getUserLastModifiedName(CmsObject)} instead */ public String getLastModifiedByName() { return getUserLastModified().toString(); }
/** * Returns the name of the user that last modified this resource.<p> * * @param cms the current cms context * * @return the name of the user that last modified this resource */ public String getUserLastModifiedName(CmsObject cms) { try { return CmsPrincipal.readPrincipalIncludingHistory(cms, getUserLastModified()).getName(); } catch (CmsException e) { return getUserLastModified().toString(); } }
/** * Returns the name of the user that last modified this resource.<p> * * @param cms the current cms context * * @return the name of the user that last modified this resource */ public String getUserLastModifiedName(CmsObject cms) { try { return CmsPrincipal.readPrincipalIncludingHistory(cms, getUserLastModified()).getName(); } catch (CmsException e) { return getUserLastModified().toString(); } }
hisRes.getUserCreated(), hisRes.getDateLastModified(), hisRes.getUserLastModified(), hisRes.getDateReleased(), hisRes.getDateExpired(),
/** * 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()); }