1 13 package org.jahia.services.pages; 14 15 import java.util.ArrayList ; 16 import java.util.Enumeration ; 17 import java.util.List ; 18 import java.util.Map ; 19 import java.util.Set ; 20 import java.util.Vector ; 21 22 import org.jahia.data.JahiaDOMObject; 23 import org.jahia.exceptions.JahiaException; 24 import org.jahia.exceptions.JahiaPageNotFoundException; 25 import org.jahia.exceptions.JahiaTemplateNotFoundException; 26 import org.jahia.params.ParamBean; 27 import org.jahia.services.JahiaInitializableService; 28 import org.jahia.services.usermanager.JahiaUser; 29 import org.jahia.services.version.ActivationTestResults; 30 import org.jahia.services.version.EntryLoadRequest; 31 import org.jahia.services.version.JahiaSaveVersion; 32 import org.jahia.services.version.StateModificationContext; 33 34 40 public abstract class JahiaPageService extends JahiaInitializableService { 41 42 45 63 public abstract JahiaPage createPage ( 64 int siteID, 65 int parentID, 66 int pageType, 67 String title, 68 int pageDefID, 69 String remoteURL, 70 int pageLinkID, 71 String creator, 72 int parentAclID, 73 ParamBean jParam) 74 throws JahiaException; 75 76 85 public abstract void deletePage (JahiaPage theVictim, ParamBean jParam) 86 throws JahiaException; 87 88 97 public abstract int findPageIDFromLevel (int pageID, int levelNb, 98 ParamBean jParams) 99 throws JahiaException; 100 101 119 public abstract Enumeration getAllPages ( 120 int siteID, 121 int loadFlag, 122 ParamBean jParam, 123 JahiaUser user) 124 throws JahiaException; 125 126 132 public abstract Vector getAllSiteIDs () 133 throws JahiaException; 134 135 146 public abstract Vector getPageIDsInSite (int siteID) 147 throws JahiaException; 148 149 161 public abstract Vector getPageIDsInSite (int siteID, int linkType) 162 throws JahiaException; 163 164 175 public abstract Vector getPageIDsWithTemplate (int templateID) 176 throws JahiaException; 177 178 188 public abstract int getPageFieldID (int pageID) 189 throws JahiaException; 190 191 199 public abstract int getActivePageFieldID (int pageID) 200 throws JahiaException; 201 202 210 public abstract int getStagedPageFieldID (int pageID) 211 throws JahiaException; 212 213 221 public abstract Vector getStagingAndActivePageFieldIDs (int pageID) 222 throws JahiaException; 223 224 232 public abstract Set getStagingPageFieldIDsInPage (int pageID) 233 throws 234 JahiaException; 235 236 255 public abstract Vector getPageChilds ( 256 int pageID, 257 int loadFlag, 258 ParamBean jParam) 259 throws JahiaException; 260 261 public abstract Vector getPageChilds (int pageID, int loadFlag, 262 EntryLoadRequest loadRequest) 263 throws JahiaException; 264 265 283 public abstract Vector getPageChilds ( 284 int pageID, 285 int loadFlag, 286 JahiaUser user) 287 throws JahiaException; 288 289 306 public abstract Vector getDirectContentPageChilds (int pageID, 307 JahiaUser user, 308 int pageInfosFlag, String languageCode) 309 throws JahiaException; 310 311 329 public abstract Vector getContentPageChilds (int pageID, JahiaUser user, 330 int pageInfosFlag, 331 String languageCode, 332 boolean directPageOnly) 333 throws JahiaException; 334 335 365 public abstract Vector getContentPageChilds (int pageID, 366 JahiaUser user, 367 int pageInfosFlag, 368 String languageCode, 369 int versionId, 370 boolean directPageOnly) throws JahiaException; 371 372 384 public abstract Vector getContentPagePath (int pageID, 385 EntryLoadRequest loadRequest, 386 String opMode, JahiaUser user) 387 throws JahiaException; 388 389 407 public abstract Vector getPagePath (int pageID, ParamBean jParams) 408 throws JahiaException; 409 410 public abstract Vector getPagePath (int pageID, 411 EntryLoadRequest loadRequest, 412 String opMode, JahiaUser user) 413 throws JahiaException; 414 415 425 public abstract Vector getContentPagePath (int pageID, ParamBean jParams) 426 throws JahiaException; 427 428 441 public abstract Vector getPagesPointingOnPage (int pageID, ParamBean jParam) 442 throws JahiaException; 443 444 454 public abstract Vector getPagesPointingOnPage (int pageID, 455 EntryLoadRequest loadRequest) 456 throws JahiaException; 457 458 473 public abstract Vector getPageSubTree ( 474 int pageID, 475 int loadFlag, 476 ParamBean jParam) 477 throws JahiaException; 478 479 497 public abstract JahiaPage lookupPage (int pageID, ParamBean jParam) 498 throws JahiaException, 499 JahiaPageNotFoundException, 500 JahiaTemplateNotFoundException; 501 502 514 public abstract JahiaPage lookupPage (int pageID, EntryLoadRequest loadRequest, 515 boolean withTemplates) 516 throws JahiaException, 517 JahiaPageNotFoundException, 518 JahiaTemplateNotFoundException; 519 520 527 public abstract JahiaPage lookupPage(int pageID, 528 EntryLoadRequest loadRequest, 529 JahiaUser user, 530 boolean withTemplates) throws 531 JahiaException, 532 JahiaPageNotFoundException, 533 JahiaTemplateNotFoundException; 534 535 545 public abstract JahiaPage lookupPage (int pageID, 546 EntryLoadRequest loadRequest) 547 throws JahiaException, 548 JahiaPageNotFoundException, 549 JahiaTemplateNotFoundException; 550 551 561 public abstract JahiaPage lookupPage (int pageID, 562 EntryLoadRequest loadRequest, 563 JahiaUser user) 564 throws JahiaException, 565 JahiaPageNotFoundException, 566 JahiaTemplateNotFoundException; 567 568 public abstract JahiaPage lookupPage (int pageID, 569 EntryLoadRequest loadRequest, 570 String operationMode, 571 JahiaUser user, 572 boolean withTemplates) 573 throws JahiaException, 574 JahiaPageNotFoundException, 575 JahiaTemplateNotFoundException; 576 577 592 public abstract ContentPage lookupContentPage (int pageID, 593 boolean withTemplates) 594 throws JahiaException, 595 JahiaPageNotFoundException, 596 JahiaTemplateNotFoundException; 597 598 614 public abstract ContentPage lookupContentPage (int pageID, 615 boolean withTemplates, boolean bypassCache) 616 throws JahiaException, 617 JahiaPageNotFoundException, 618 JahiaTemplateNotFoundException; 619 620 638 public abstract ContentPage lookupContentPage (int pageID, 639 EntryLoadRequest loadRequest, 640 boolean withTemplates) 641 throws JahiaException, 642 JahiaPageNotFoundException, 643 JahiaTemplateNotFoundException; 644 645 662 663 public abstract JahiaPage lookupPage (int pageID) 664 throws JahiaException, 665 JahiaPageNotFoundException, 666 JahiaTemplateNotFoundException; 667 668 679 public abstract JahiaPage clonePage (int newParentID, 680 int newParentAclID, 681 JahiaPage pageToClone, 682 ParamBean jParam, 683 boolean childrenCloned) 684 throws JahiaException; 685 686 692 public abstract int getNbPages () 693 throws JahiaException; 694 695 701 public abstract int getNbPages (int siteID) 702 throws JahiaException; 703 704 710 public abstract int getRealActiveNbPages () 711 throws JahiaException; 712 713 719 public abstract int getRealActiveNbPages (int siteID) 720 throws JahiaException; 721 722 730 public abstract JahiaDOMObject getPagesAsDOM (int siteID) 731 throws JahiaException; 732 733 742 public abstract Vector getAclIDs (int siteID) 743 throws JahiaException; 744 745 751 public abstract void invalidatePageCache (int pageID); 752 753 760 public abstract Map getPageProperties (int pageID) 761 throws JahiaException; 762 763 772 public abstract ArrayList getPagePropertiesByValue (String propertyValue) 773 throws JahiaException; 774 775 782 public abstract int getPageIDFromPageKeyAndSiteID( String pageKey, int siteValue )throws JahiaException; 783 784 792 public abstract boolean isKeyAlreadyUsedInSiteWithID( String key, int siteID, int currentPageID ) 793 throws JahiaException; 794 795 800 public abstract void updateContentPageCache(ContentPage contentPage); 801 802 809 public abstract Vector sortPages(List pageIDs, EntryLoadRequest loadRequest, 810 JahiaUser user, String operationMode) 811 throws JahiaException; 812 813 828 public abstract ActivationTestResults arePageFieldsValidForActivation ( 829 Set languageCodes, 830 int pageID, 831 JahiaUser user, 832 JahiaSaveVersion saveVersion, 833 ParamBean jParams, 834 StateModificationContext stateModifContext) 835 throws JahiaException; 836 } 837 | Popular Tags |