com.jalios.jcms
Class PublicationIndexManager

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

public class PublicationIndexManager
extends AbstractIndexManager


Field Summary
 
Fields inherited from class com.jalios.jcms.AbstractIndexManager
channel
 
Method Summary
 boolean addWeakReferrer(Publication pub, Publication weakReferrer)
          Adds the given weak referrer to the given publication.
 boolean addWorkCopy(Publication pub, Publication workCopy)
          Adds the given work copy to the given publication.
 void clearPstatusAlarmEntryMap(Publication pub)
          Clears the AlarmEntry map associated to the given publication.
 void clearWeakReferrerSet(Publication pub)
          Clears the weak referrer set associated to the given publication.
 void clearWorkCopySet(Publication pub)
          Clears the work copy set associated to the given publication.
static PublicationIndexManager getInstance()
           
 AlarmEntry getPstatusAlarmEntry(Publication pub, int pstatus)
           
 Map<Integer,AlarmEntry> getPstatusAlarmEntryMap(Publication pub)
          Returns the AlarmEntry map associated to the given publication.
 Set<Publication> getWeakReferrerSet(Publication pub)
          Returns the weak referrer set associated to the given publication.
 Set<Publication> getWorkCopySet(Publication pub)
          Returns the work copy set associated to the given publication.
 void putPstatusAlarmEntry(Publication pub, int pstatus, AlarmEntry alarmEntry)
          Binds the given AlarmEntry to the given pstatus for the given publication.
 AlarmEntry removePstatusAlarmEntry(Publication pub, int pstatus)
          Removes the alarm entry of the given pstatus for the given publication.
 boolean removeWeakReferrer(Publication pub, Publication weakReferrer)
          Removes the given weak referrer for the given publication.
 boolean removeWorkCopy(Publication pub, Publication workCopy)
          Removes the given work copy for the given publication.
 void setWeakReferrerSet(Publication pub, Set<Publication> set)
          Set the weak referrer set associated to the given publication.
 void setWorkCopySet(Publication pub, Set<Publication> set)
          Set the work copy set associated to the given publication.
 
Methods inherited from class com.jalios.jcms.AbstractIndexManager
addIndexWithSet, clearIndex, getIndexWithMap, getIndexWithMap, getIndexWithSet, isUndefinedIndexWithSet, putIndexWithMap, removeIndexWithMap, removeIndexWithSet, setIndexWithSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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:
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:
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
Since:
jcms-6.0.0


Copyright © 2001-2010 Jalios SA. All Rights Reserved.