/** * @see java.lang.Comparable#compareTo(java.lang.Object) */ public int compareTo(I_CmsPrincipal obj) { if ((this == obj) || equals(obj)) { return 0; } return getName().compareTo(obj.getName()); }
/** * @see java.lang.Comparable#compareTo(java.lang.Object) */ public int compareTo(Object obj) { if ((this == obj) || this.equals(obj)) { return 0; } I_CmsPrincipal that = (I_CmsPrincipal)obj; return this.getName().compareTo(that.getName()); }
/** * Returns the name of the user who last modified the given resource.<p> * * @return the name of the user who last modified the given resource */ public String getUserLastModified() { String user = m_resource.getUserLastModified().toString(); try { user = getCurrentOuRelativeName( CmsPrincipal.readPrincipalIncludingHistory(getCms(), m_resource.getUserLastModified()).getName()); } catch (Throwable e) { LOG.info(e.getLocalizedMessage()); } return user; }
/** * Returns the name of the user who created the given resource.<p> * * @return the name of the user who created the given resource */ public String getUserCreated() { String user = m_resource.getUserCreated().toString(); try { user = getCurrentOuRelativeName( CmsPrincipal.readPrincipalIncludingHistory(getCms(), m_resource.getUserCreated()).getName()); } catch (Throwable e) { LOG.info(e.getLocalizedMessage()); } return user; }
/** * Returns the project manager group name.<p> * * @param cms the current cms context * * @return the projects manager group name */ public String getGroupManagersName(CmsObject cms) { try { return CmsPrincipal.readPrincipalIncludingHistory(cms, getManagerGroupId()).getName(); } catch (CmsException e) { return getManagerGroupId().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(); } }
/** * Returns the publishers name.<p> * * @param cms the current cms context * * @return the publishers name */ public String getPublishedByName(CmsObject cms) { try { return CmsPrincipal.readPrincipalIncludingHistory(cms, getPublishedBy()).getName(); } catch (CmsException e) { return getPublishedBy().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 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 projects user group name.<p> * * @param cms the current cms context * * @return the projects user group name */ public String getGroupUsersName(CmsObject cms) { try { return CmsPrincipal.readPrincipalIncludingHistory(cms, getGroupId()).getName(); } catch (CmsException e) { return getGroupId().toString(); } }
/** * Returns the publishers name.<p> * * @param cms the current cms context * * @return the publishers name */ public String getPublishedByName(CmsObject cms) { try { return CmsPrincipal.readPrincipalIncludingHistory(cms, getPublishedBy()).getName(); } catch (CmsException e) { return getPublishedBy().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 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 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 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 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 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 project manager group name.<p> * * @param cms the current cms context * * @return the projects manager group name */ public String getGroupManagersName(CmsObject cms) { try { return CmsPrincipal.readPrincipalIncludingHistory(cms, getManagerGroupId()).getName(); } catch (CmsException e) { return getManagerGroupId().toString(); } }
/** * Returns the projects user group name.<p> * * @param cms the current cms context * * @return the projects user group name */ public String getGroupUsersName(CmsObject cms) { try { return CmsPrincipal.readPrincipalIncludingHistory(cms, getGroupId()).getName(); } catch (CmsException e) { return getGroupId().toString(); } }