Package com.jalios.jcms
Class PublicationIndexManager
- java.lang.Object
-
- com.jalios.jcms.AbstractIndexManager
-
- com.jalios.jcms.PublicationIndexManager
-
public class PublicationIndexManager extends AbstractIndexManager
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.jalios.jcms.AbstractIndexManager
AbstractIndexManager.DataIndex<D extends Data,C>, AbstractIndexManager.DataIndexMap<D extends Data,K,V>, AbstractIndexManager.DataIndexSet<D extends Data,E>
-
-
Field Summary
-
Fields inherited from class com.jalios.jcms.AbstractIndexManager
channel
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
java.util.Map<java.lang.Integer,AlarmEntry>
getPstatusAlarmEntryMap(Publication pub)
Returns the AlarmEntry map associated to the given publication.java.util.Set<Publication>
getWeakReferrerSet(Publication pub)
Returns the weak referrer set associated to the given publication.java.util.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, java.util.Set<Publication> set)
Set the weak referrer set associated to the given publication.void
setWorkCopySet(Publication pub, java.util.Set<Publication> set)
Set the work copy set associated to the given publication.-
Methods inherited from class com.jalios.jcms.AbstractIndexManager
addIndexWithSet, addIndexWithSet, clearIndex, getIndexWithMap, getIndexWithMap, getIndexWithSet, getOriginalData, isUndefinedIndexWithSet, putIndexWithMap, removeIndexWithMap, removeIndexWithSet, removeIndexWithSet, setIndexWithSet
-
-
-
-
Method Detail
-
getInstance
public static PublicationIndexManager getInstance()
-
getWorkCopySet
public java.util.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, java.util.Set<Publication> set)
Set the work copy set associated to the given publication.- Parameters:
pub
- the publicationset
- 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 java.util.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, java.util.Set<Publication> set)
Set the weak referrer set associated to the given publication.- Parameters:
pub
- the publicationset
- 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 java.util.Map<java.lang.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 publicationpstatus
- the pstatusalarmEntry
- 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 publicationpstatus
- the pstatus- Returns:
- true if the set contained the specified element.
- Since:
- jcms-6.0.0
-
-