/** * Two sitemap change objects are considered equal, if the entry id's are equal.<p> * * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (obj instanceof CmsSitemapChange) { return m_entryId.equals(((CmsSitemapChange)obj).m_entryId); } return false; }
/** * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { return (obj instanceof CmsBrokenLinkBean) && ((CmsBrokenLinkBean)obj).m_structureId.equals(m_structureId); }
/** * Returns true if the given project id is the online project id.<p> * * @param projectId the project id to check * @return true if the given project id is the online project id */ public static boolean isOnlineProject(CmsUUID projectId) { return projectId.equals(CmsProject.ONLINE_PROJECT_ID); }
/** * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (obj instanceof CmsJobBean) { return ((CmsJobBean)obj).m_id.equals(m_id); } return false; }
/** * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj instanceof CmsPropertyDefinition) { return ((CmsPropertyDefinition)obj).m_id.equals(m_id); } return false; }
/** * Returns true if the given project id is the online project id.<p> * * @param projectId the project id to check * @return true if the given project id is the online project id */ public static boolean isOnlineProject(CmsUUID projectId) { return projectId.equals(CmsProject.ONLINE_PROJECT_ID); }
/** * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj instanceof CmsPropertyDefinition) { return ((CmsPropertyDefinition)obj).m_id.equals(m_id); } return false; }
/** * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj instanceof CmsProject) { return ((CmsProject)obj).m_id.equals(m_id); } return false; }
/** * Returns <code>true</code> if the given user is the owner of this lock.<p> * * @param user the user to compare to the owner of this lock * * @return <code>true</code> if the given user is the owner of this lock */ public boolean isOwnedBy(CmsUser user) { return m_userId.equals(user.getId()); }
/** * Returns <code>true</code> if the given user is the owner of this lock.<p> * * @param user the user to compare to the owner of this lock * * @return <code>true</code> if the given user is the owner of this lock */ public boolean isOwnedBy(CmsUser user) { return m_userId.equals(user.getId()); }
/** * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj instanceof CmsSessionInfo) { return m_userId.equals(((CmsSessionInfo)obj).getUserId()); } return false; }
/** * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj instanceof CmsSessionInfo) { return m_userId.equals(((CmsSessionInfo)obj).getUserId()); } return false; }
/** * Returns the Thread id to display in this report.<p> * * @return the Thread id to display in this report */ public String getParamThread() { if ((m_paramThread != null) && (!m_paramThread.equals(CmsUUID.getNullUUID()))) { return m_paramThread.toString(); } else { return null; } }
/** * Returns the Thread id to display in this report.<p> * * @return the Thread id to display in this report */ public String getParamThread() { if ((m_paramThread != null) && (!m_paramThread.equals(CmsUUID.getNullUUID()))) { return m_paramThread.toString(); } else { return null; } }
/** * Checks if this published resource represents a VFS resource.<p> * * If the published resource has no structure id, it is considered to be * no VFS resource.<p> * * @return true if this published resource is a VFS resource * * @deprecated no longer needed */ public boolean isVfsResource() { return !getStructureId().equals(CmsUUID.getNullUUID()); }
/** * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj instanceof CmsHistoryProject) { return ((CmsHistoryProject)obj).getUuid().equals(getUuid()); } return false; }
/** * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj instanceof CmsHistoryProject) { return ((CmsHistoryProject)obj).getUuid().equals(getUuid()); } return false; }
public boolean apply(Component input) { if (input instanceof CmsSitemapTreeNode) { CmsSitemapTreeNode node = (CmsSitemapTreeNode)input; CmsSitemapTreeNodeData data = (CmsSitemapTreeNodeData)node.getData(); if (data.getResource().getStructureId().equals(id)) { nodes.add(node); return false; } } return true; } });
/** * Checks that the resource is not locked by another user.<p> * * @param resource the resource * @return true if the resource is not locked by another user * * @throws CmsException if something goes wrong */ private boolean checkLock(CmsResource resource) throws CmsException { CmsLock lock = m_cms.getLock(resource); return lock.isUnlocked() || lock.getUserId().equals(m_cms.getRequestContext().getCurrentUser().getId()); }
/** * Enumeration class for the mode parameter in the * {@link CmsDriverManager#readChangedResourcesInsideProject(CmsDbContext, CmsUUID, CmsReadChangedProjectResourceMode)} * method.<p> */ private static class CmsReadChangedProjectResourceMode { /** * Default constructor.<p> */ protected CmsReadChangedProjectResourceMode() { // noop } }