/** * Deletes the publish list assigned to a publish job.<p> * * @param dbc the current database context * @param publishHistoryId the history id identifying the publish job * @throws CmsException if something goes wrong */ public void deletePublishList(CmsDbContext dbc, CmsUUID publishHistoryId) throws CmsException { getProjectDriver(dbc).deletePublishList(dbc, publishHistoryId); }
/** * Creates an historical entry of the current project.<p> * * @param dbc the current database context * @param publishTag the version * @param publishDate the date of publishing * * @throws CmsDataAccessException if operation was not successful */ public void writeHistoryProject(CmsDbContext dbc, int publishTag, long publishDate) throws CmsDataAccessException { getHistoryDriver(dbc).writeProject(dbc, publishTag, publishDate); }
/** * Adds a new condition to the query.<p> * * @param fragment the condition SQL * @param params the condition parameters */ public void addCondition(String fragment, Object... params) { m_conditions.add(new CmsSimpleQueryFragment(fragment, params)); }
/** * Returns the "workplace search result style" setting.<p> * * @return the "workplace search result style" setting */ public String getParamTabExWorkplaceSearchResult() { return m_userSettings.getWorkplaceSearchViewStyle().toString(); }
/** * Reads the locks that were saved to the database in the previous run of OpenCms.<p> * * @throws CmsException if something goes wrong */ public void readLocks() throws CmsException { CmsDbContext dbc = m_dbContextFactory.getDbContext(); try { m_driverManager.readLocks(dbc); } finally { dbc.clear(); } }
/** * Returns a list of available database connection pool names.<p> * * @return a list of database connection pool names */ public List getDbPoolUrls() { return CmsDbPool.getDbPoolUrls(m_driverManager.getPropertyConfiguration()); }
/** * Reads the publish report assigned to a publish job.<p> * * @param dbc the current database context * @param publishHistoryId the history id identifying the publish job * @return the content of the assigned publish report * @throws CmsException if something goes wrong */ public byte[] readPublishReportContents(CmsDbContext dbc, CmsUUID publishHistoryId) throws CmsException { return getProjectDriver(dbc).readPublishReportContents(dbc, publishHistoryId); }
/** * Creates a new publish job.<p> * * @param dbc the current database context * @param publishJob the publish job to create * * @throws CmsException if something goes wrong */ public void createPublishJob(CmsDbContext dbc, CmsPublishJobInfoBean publishJob) throws CmsException { getProjectDriver(dbc).createPublishJob(dbc, publishJob); }
/** * Deletes a publish job identified by its history id.<p> * * @param dbc the current database context * @param publishHistoryId the history id identifying the publish job * * @throws CmsException if something goes wrong */ public void deletePublishJob(CmsDbContext dbc, CmsUUID publishHistoryId) throws CmsException { getProjectDriver(dbc).deletePublishJob(dbc, publishHistoryId); }
/** * Reads a single publish job identified by its publish history id.<p> * * @param dbc the current database context * @param publishHistoryId unique id to identify the publish job in the publish history * @return an object of type <code>{@link CmsPublishJobInfoBean}</code> * * @throws CmsException if something goes wrong */ public CmsPublishJobInfoBean readPublishJob(CmsDbContext dbc, CmsUUID publishHistoryId) throws CmsException { return getProjectDriver(dbc).readPublishJob(dbc, publishHistoryId); }
/** * Deletes all entries in the published resource table.<p> * * @param dbc the current database context * @param linkType the type of resource deleted (0= non-paramter, 1=parameter) * * @throws CmsException if something goes wrong */ public void deleteAllStaticExportPublishedResources(CmsDbContext dbc, int linkType) throws CmsException { getProjectDriver(dbc).deleteAllStaticExportPublishedResources(dbc, linkType); }
/** * Returns the next publish tag for the published historical resources.<p> * * @param dbc the current database context * * @return the next available publish tag */ public int getNextPublishTag(CmsDbContext dbc) { return getHistoryDriver(dbc).readNextPublishTag(dbc); }
/** * Reads the publish list assigned to a publish job.<p> * * @param dbc the current database context * @param publishHistoryId the history id identifying the publish job * @return the assigned publish list * @throws CmsException if something goes wrong */ public CmsPublishList readPublishList(CmsDbContext dbc, CmsUUID publishHistoryId) throws CmsException { return getProjectDriver(dbc).readPublishList(dbc, publishHistoryId); }
/** * Updates a publish job.<p> * * @param dbc the current database context * @param publishJob the publish job to update * * @throws CmsException if something goes wrong */ public void writePublishJob(CmsDbContext dbc, CmsPublishJobInfoBean publishJob) throws CmsException { getProjectDriver(dbc).writePublishJob(dbc, publishJob); }
/** * Initializes the default groups for an organizational unit.<p> * * @param context the request context * @param ou the organizational unit */ public void initializeOrgUnit(CmsRequestContext context, CmsOrganizationalUnit ou) { CmsDbContext dbc = m_dbContextFactory.getDbContext(context); m_driverManager.initOrgUnit(dbc, ou); }
/** * Adds an alias entry.<p> * * @param dbc the database context * @param project the current project * @param alias the alias to add * * @throws CmsException if something goes wrong */ public void addAlias(CmsDbContext dbc, CmsProject project, CmsAlias alias) throws CmsException { I_CmsVfsDriver vfsDriver = getVfsDriver(dbc); vfsDriver.insertAlias(dbc, project, alias); }
/** * Unsubscribes all deleted resources that were deleted before the specified time stamp.<p> * * @param dbc the database context * @param poolName the name of the database pool to use * @param deletedTo the time stamp to which the resources have been deleted * * @throws CmsException if something goes wrong */ public void unsubscribeAllDeletedResources(CmsDbContext dbc, String poolName, long deletedTo) throws CmsException { getSubscriptionDriver().unsubscribeAllDeletedResources(dbc, poolName, deletedTo); }
/** * Unsubscribes all groups and users from the resource.<p> * * @param dbc the database context * @param poolName the name of the database pool to use * @param resource the resource to unsubscribe all groups and users from * * @throws CmsException if something goes wrong */ public void unsubscribeResourceForAll(CmsDbContext dbc, String poolName, CmsResource resource) throws CmsException { getSubscriptionDriver().unsubscribeResourceForAll(dbc, poolName, resource); }
/** * Returns the "workplace search result style" setting.<p> * * @return the "workplace search result style" setting */ public String getParamTabExWorkplaceSearchResult() { return m_userSettings.getWorkplaceSearchViewStyle().toString(); }
/** * Returns a list of available database connection pool names.<p> * * @return a list of database connection pool names */ public List<String> getDbPoolUrls() { return CmsDbPool.getDbPoolUrls(m_driverManager.getPropertyConfiguration()); }