Class PublicationIndexManager

java.lang.Object
com.jalios.jcms.AbstractIndexManager
com.jalios.jcms.PublicationIndexManager

public class PublicationIndexManager extends AbstractIndexManager
  • Method Details

    • getInstance

      public static PublicationIndexManager getInstance()
    • getWorkCopySet

      public Set<Publication> getWorkCopySet(Publication pub)
      Returns the work copy set associated to the given publication.
      Parameters:
      pub - the publication
      Returns:
      the review set associated to the given publication.
      Since:
      jcms-6.0.0
    • setWorkCopySet

      public void setWorkCopySet(Publication pub, Set<Publication> set)
      Set the work copy set associated to the given publication.
      Parameters:
      pub - the publication
      set - the set
      Since:
      jcms-6.0.0
    • clearWorkCopySet

      public void clearWorkCopySet(Publication pub)
      Clears the work copy set associated to the given publication.
      Parameters:
      pub - the publication
      Since:
      jcms-6.0.0
    • addWorkCopy

      public boolean addWorkCopy(Publication pub, Publication workCopy)
      Adds the given work copy to the given publication.
      Parameters:
      pub - publication with which this work copy must be added.
      workCopy - the work copy
      Returns:
      true if this set did not already contain the specified element.
      Since:
      jcms-6.0.0
    • removeWorkCopy

      public boolean removeWorkCopy(Publication pub, Publication workCopy)
      Removes the given work copy for the given publication.
      Parameters:
      pub - publications with which this content must be removed.
      workCopy - work copy to be removed from this set, if present.
      Returns:
      true if the set contained the specified element.
      Since:
      jcms-6.0.0
    • getWeakReferrerSet

      public Set<Publication> getWeakReferrerSet(Publication pub)
      Returns the weak referrer set associated to the given publication.
      Parameters:
      pub - the publication
      Returns:
      the review set associated to the given publication.
      Since:
      jcms-6.0.0
    • setWeakReferrerSet

      public void setWeakReferrerSet(Publication pub, Set<Publication> set)
      Set the weak referrer set associated to the given publication.
      Parameters:
      pub - the publication
      set - the set
      Since:
      jcms-6.0.0
    • clearWeakReferrerSet

      public void clearWeakReferrerSet(Publication pub)
      Clears the weak referrer set associated to the given publication.
      Parameters:
      pub - the publication
      Since:
      jcms-6.0.0
    • addWeakReferrer

      public boolean addWeakReferrer(Publication pub, Publication weakReferrer)
      Adds the given weak referrer to the given publication.
      Parameters:
      pub - publication with which this weak referrer must be added.
      weakReferrer - the weak referrer
      Returns:
      true if this set did not already contain the specified element.
      Since:
      jcms-6.0.0
    • removeWeakReferrer

      public boolean removeWeakReferrer(Publication pub, Publication weakReferrer)
      Removes the given weak referrer for the given publication.
      Parameters:
      pub - publication with which this content must be removed.
      weakReferrer - weak referrer to be removed from this set, if present.
      Returns:
      true if the set contained the specified element.
      Since:
      jcms-6.0.0
    • getPstatusAlarmEntryMap

      public Map<Integer,AlarmEntry> getPstatusAlarmEntryMap(Publication pub)
      Returns the AlarmEntry map associated to the given publication.
      Parameters:
      pub - the publication
      Returns:
      the AlarmEntry map associated to the given publication.
      Since:
      jcms-6.0.0
    • getPstatusAlarmEntry

      public AlarmEntry getPstatusAlarmEntry(Publication pub, int pstatus)
    • clearPstatusAlarmEntryMap

      public void clearPstatusAlarmEntryMap(Publication pub)
      Clears the AlarmEntry map associated to the given publication.
      Parameters:
      pub - the publication
      Since:
      jcms-6.0.0
    • putPstatusAlarmEntry

      public void putPstatusAlarmEntry(Publication pub, int pstatus, AlarmEntry alarmEntry)
      Binds the given AlarmEntry to the given pstatus for the given publication.
      Parameters:
      pub - the publication
      pstatus - the pstatus
      alarmEntry - the AlarmEntry
      Since:
      jcms-6.0.0
    • removePstatusAlarmEntry

      public AlarmEntry removePstatusAlarmEntry(Publication pub, int pstatus)
      Removes the alarm entry of the given pstatus for the given publication.
      Parameters:
      pub - the publication
      pstatus - the pstatus
      Returns:
      true if the set contained the specified element.
      Since:
      jcms-6.0.0