1 31 32 package org.opencms.db; 33 34 import org.opencms.db.generic.CmsSqlManager; 35 import org.opencms.file.CmsDataAccessException; 36 import org.opencms.file.CmsFile; 37 import org.opencms.file.CmsFolder; 38 import org.opencms.file.CmsGroup; 39 import org.opencms.file.CmsProject; 40 import org.opencms.file.CmsResource; 41 import org.opencms.file.CmsUser; 42 import org.opencms.main.CmsException; 43 import org.opencms.report.I_CmsReport; 44 import org.opencms.util.CmsUUID; 45 import org.opencms.workflow.CmsTask; 46 47 import java.util.List ; 48 import java.util.Set ; 49 50 60 public interface I_CmsProjectDriver { 61 62 63 int DRIVER_TYPE_ID = 1; 64 65 66 String TEMP_FILE_PROJECT_NAME = "tempFileProject"; 67 68 86 CmsProject createProject( 87 CmsDbContext dbc, 88 CmsUser owner, 89 CmsGroup group, 90 CmsGroup managergroup, 91 CmsTask task, 92 String name, 93 String description, 94 int flags, 95 int type, 96 Object reservedParam) throws CmsDataAccessException; 97 98 108 void createProjectResource(CmsDbContext dbc, int projectId, String resourceName, Object reservedParam) 109 throws CmsDataAccessException; 110 111 120 void deleteAllStaticExportPublishedResources(CmsDbContext dbc, CmsProject currentProject, int linkType) 121 throws CmsDataAccessException; 122 123 132 void deleteProject(CmsDbContext dbc, CmsProject project) throws CmsDataAccessException; 133 134 143 void deleteProjectResource(CmsDbContext dbc, int projectId, String resourceName) throws CmsDataAccessException; 144 145 153 void deleteProjectResources(CmsDbContext dbc, CmsProject project) throws CmsDataAccessException; 154 155 164 void deletePublishHistory(CmsDbContext dbc, int projectId, int maxBackupTagId) throws CmsDataAccessException; 165 166 176 void deletePublishHistoryEntry( 177 CmsDbContext dbc, 178 int projectId, 179 CmsUUID publishHistoryId, 180 CmsPublishedResource publishResource) throws CmsDataAccessException; 181 182 193 void deleteStaticExportPublishedResource( 194 CmsDbContext dbc, 195 CmsProject currentProject, 196 String resourceName, 197 int linkType, 198 String linkParameter) throws CmsDataAccessException; 199 200 205 void destroy() throws Throwable ; 206 207 214 void fillDefaults(CmsDbContext dbc) throws CmsDataAccessException; 215 216 221 CmsSqlManager getSqlManager(); 222 223 233 org.opencms.db.generic.CmsSqlManager initSqlManager(String classname); 234 235 252 void publishDeletedFolder( 253 CmsDbContext dbc, 254 I_CmsReport report, 255 int m, 256 int n, 257 CmsProject onlineProject, 258 CmsFolder offlineFolder, 259 boolean backupEnabled, 260 long publishDate, 261 CmsUUID publishHistoryId, 262 int backupTagId, 263 int maxVersions) throws CmsDataAccessException; 264 265 283 void publishFile( 284 CmsDbContext dbc, 285 I_CmsReport report, 286 int m, 287 int n, 288 CmsProject onlineProject, 289 CmsResource offlineResource, 290 Set publishedContentIds, 291 boolean backupEnabled, 292 long publishDate, 293 CmsUUID publishHistoryId, 294 int backupTagId, 295 int maxVersions) throws CmsDataAccessException; 296 297 317 CmsFile publishFileContent( 318 CmsDbContext dbc, 319 CmsProject offlineProject, 320 CmsProject onlineProject, 321 CmsResource offlineFileHeader, 322 Set publishedResourceIds) throws CmsDataAccessException; 323 324 341 void publishFolder( 342 CmsDbContext dbc, 343 I_CmsReport report, 344 int m, 345 int n, 346 CmsProject onlineProject, 347 CmsFolder currentFolder, 348 boolean backupEnabled, 349 long publishDate, 350 CmsUUID publishHistoryId, 351 int backupTagId, 352 int maxVersions) throws CmsDataAccessException; 353 354 367 void publishProject( 368 CmsDbContext dbc, 369 I_CmsReport report, 370 CmsProject onlineProject, 371 CmsPublishList publishList, 372 boolean backupEnabled, 373 int backupTagId, 374 int maxVersions) throws CmsException; 375 376 386 CmsProject readProject(CmsDbContext dbc, int id) throws CmsDataAccessException; 387 388 397 CmsProject readProject(CmsDbContext dbc, String name) throws CmsDataAccessException; 398 399 411 String readProjectResource(CmsDbContext dbc, int projectId, String resourcename, Object reservedParam) 412 throws CmsDataAccessException; 413 414 424 List readProjectResources(CmsDbContext dbc, CmsProject project) throws CmsDataAccessException; 425 426 436 List readProjects(CmsDbContext dbc, int state) throws CmsDataAccessException; 437 438 447 List readProjectsForGroup(CmsDbContext dbc, CmsGroup group) throws CmsDataAccessException; 448 449 458 List readProjectsForManagerGroup(CmsDbContext dbc, CmsGroup group) throws CmsDataAccessException; 459 460 470 List readProjectsForUser(CmsDbContext dbc, CmsUser user) throws CmsDataAccessException; 471 472 483 List readProjectView(CmsDbContext dbc, int project, String filter) throws CmsDataAccessException; 484 485 496 List readPublishedResources(CmsDbContext dbc, int projectId, CmsUUID publishHistoryId) 497 throws CmsDataAccessException; 498 499 510 String readStaticExportPublishedResourceParameters(CmsDbContext dbc, CmsProject currentProject, String rfsName) 511 throws CmsDataAccessException; 512 513 525 List readStaticExportResources(CmsDbContext dbc, CmsProject currentProject, int parameterResources, long timestamp) 526 throws CmsDataAccessException; 527 528 537 void unmarkProjectResources(CmsDbContext dbc, CmsProject project) throws CmsDataAccessException; 538 539 552 void writeProject(CmsDbContext dbc, CmsProject project) throws CmsDataAccessException; 553 554 564 void writePublishHistory( 565 CmsDbContext dbc, 566 CmsProject currentProject, 567 CmsUUID publishId, 568 CmsPublishedResource resource) throws CmsDataAccessException; 569 570 584 void writeStaticExportPublishedResource( 585 CmsDbContext dbc, 586 CmsProject currentProject, 587 String resourceName, 588 int linkType, 589 String linkParameter, 590 long timestamp) throws CmsDataAccessException; 591 592 } | Popular Tags |