/** * @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(); } }
/** * Returns a clone of this Objects instance.<p> * * @return a clone of this instance */ @Override public Object clone() { return new CmsHistoryFolder( getPublishTag(), getStructureId(), getResourceId(), getRootPath(), getTypeId(), getFlags(), getProjectLastModified(), getState(), getDateCreated(), getUserCreated(), getDateLastModified(), getUserLastModified(), getDateReleased(), getDateExpired(), getVersion(), getParentId(), getResourceVersion(), getStructureVersion()); }