/** * Constructs a new site object without title and id information, * this is to be used for lookup purposes only.<p> * * @param siteRoot root directory of this site in the OpenCms VFS * @param siteMatcher the site matcher for this site */ public CmsSite(String siteRoot, CmsSiteMatcher siteMatcher) { this(siteRoot, CmsUUID.getNullUUID(), siteRoot, siteMatcher, ""); }
/** * Constructs a new site object without title and id information, * this is to be used for lookup purposes only.<p> * * @param siteRoot root directory of this site in the OpenCms VFS * @param siteMatcher the site matcher for this site */ public CmsSite(String siteRoot, CmsSiteMatcher siteMatcher) { this(siteRoot, CmsUUID.getNullUUID(), siteRoot, siteMatcher, ""); }
/** * @see org.opencms.ade.configuration.I_CmsGlobalConfigurationCache#clear() */ public void clear() { markForUpdate(CmsUUID.getNullUUID()); }
/** * Creates a new database context initialized with the given user request context.<p> * * @param context the current users request context */ public CmsDbContext(CmsRequestContext context) { m_requestContext = context; m_projectId = CmsUUID.getNullUUID(); if (m_requestContext != null) { m_flexRequestContextInfo = (CmsFlexRequestContextInfo)m_requestContext.getAttribute(CmsRequestUtil.HEADER_LAST_MODIFIED); } }
/** * Creates a new database context initialized with the given user request context.<p> * * @param context the current users request context */ public CmsDbContext(CmsRequestContext context) { m_requestContext = context; m_projectId = CmsUUID.getNullUUID(); if (m_requestContext != null) { m_flexRequestContextInfo = (CmsFlexRequestContextInfo)m_requestContext.getAttribute( CmsRequestUtil.HEADER_LAST_MODIFIED); } }
/** * Loads the property data with which the property dialog for the new resource should be initialized.<p> * * @return the properties bean */ public CmsPropertiesBean getPropertyData() { CmsPropertyEditorHelper helper = new PropertyEditorHelper(m_cms); try { CmsPropertiesBean data = helper.loadPropertyData(CmsUUID.getNullUUID()); return data; } catch (Exception e) { throw new RuntimeException(e); } }
/** * @see java.lang.Object#hashCode() */ @Override public int hashCode() { if (m_id != null) { return m_id.hashCode(); } return CmsUUID.getNullUUID().hashCode(); }
/** * @see java.lang.Object#hashCode() */ @Override public int hashCode() { if (m_id != null) { return m_id.hashCode(); } return CmsUUID.getNullUUID().hashCode(); }
/** * @see java.lang.Object#hashCode() */ @Override public int hashCode() { if (m_id != null) { return m_id.hashCode(); } return CmsUUID.getNullUUID().hashCode(); }
/** * @see java.lang.Object#hashCode() */ @Override public int hashCode() { if (m_id != null) { return m_id.hashCode(); } return CmsUUID.getNullUUID().hashCode(); }
/** * @see java.lang.Object#hashCode() */ @Override public int hashCode() { if (m_structureId != null) { return m_structureId.hashCode(); } return CmsUUID.getNullUUID().hashCode(); }
/** * Returns a PreparedStatement for a JDBC connection specified by the key of a SQL query.<p> * * @param con the JDBC connection * @param queryKey the key of the SQL query * @return PreparedStatement a new PreparedStatement containing the pre-compiled SQL statement * @throws SQLException if a database access error occurs */ public PreparedStatement getPreparedStatement(Connection con, String queryKey) throws SQLException { String rawSql = readQuery(CmsUUID.getNullUUID(), queryKey); return getPreparedStatementForSql(con, rawSql); }
/** * Returns a PreparedStatement for a JDBC connection specified by the key of a SQL query.<p> * * @param con the JDBC connection * @param queryKey the key of the SQL query * @return PreparedStatement a new PreparedStatement containing the pre-compiled SQL statement * @throws SQLException if a database access error occurs */ public synchronized PreparedStatement getPreparedStatement(Connection con, String queryKey) throws SQLException { String rawSql = readQuery(CmsUUID.getNullUUID(), queryKey); return getPreparedStatementForSql(con, rawSql); }
/** * @see java.lang.Object#hashCode() */ @Override public int hashCode() { if (m_permissions != null) { return m_permissions.hashCode() * m_flags; } return CmsUUID.getNullUUID().hashCode(); }
/** * 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; } }
/** * @see java.lang.Object#hashCode() */ @Override public int hashCode() { if (m_permissions != null) { return m_permissions.hashCode() * m_flags; } return CmsUUID.getNullUUID().hashCode(); }
/** * @see java.lang.Object#hashCode() */ @Override public int hashCode() { if (m_structureId != null) { return m_structureId.hashCode(); } return CmsUUID.getNullUUID().hashCode(); }
/** * 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()); }
/** * Returns a Query for a EntityManagerContext specified by the key of a JPQL query.<p> * * @param dbc the db context * @param queryKey the key of the JPQL query * @return Query a new Query containing the pre-compiled JPQL statement */ public Query createQuery(CmsDbContext dbc, String queryKey) { org.opencms.db.jpa.CmsDbContext jpaDbc = (org.opencms.db.jpa.CmsDbContext)dbc; jpaDbc.getEntityManager().flush(); String rawJpql = readQuery(CmsUUID.getNullUUID(), queryKey); return jpaDbc.getEntityManager().createQuery(prepareQueryParameters(rawJpql)); }