KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > content > PageContentEntryInfosSet


1 //
2
// ____.
3
// __/\ ______| |__/\. _______
4
// __ .____| | \ | +----+ \
5
// _______| /--| | | - \ _ | : - \_________
6
// \\______: :---| : : | : | \________>
7
// |__\---\_____________:______: :____|____:_____\
8
// /_____|
9
//
10
// . . . i n j a h i a w e t r u s t . . .
11
//
12

13 package org.jahia.content;
14
15 import java.util.SortedSet JavaDoc;
16
17 import org.jahia.services.usermanager.JahiaUser;
18 import org.jahia.services.version.EntryLoadRequest;
19
20 /**
21  *
22  * <p>Title: Abstract content object entry info set </p>
23  * <p>Description: </p>
24  * <p>Copyright: Copyright (c) 2002</p>
25  * <p>Company: </p>
26  * @author Khue Nguyen
27  * @version 1.0
28  */

29 public abstract class PageContentEntryInfosSet extends AbstractEntryInfosSet {
30
31     private static final String JavaDoc CLASS_NAME =
32             AbstractEntryInfosSet.class.getName();
33
34     /**
35      * The sorted set of ContentObjectEntryStateInfo
36      */

37     private SortedSet JavaDoc entryStates;
38
39     /** lower revision date limit **/
40     private long fromRevisionDate;
41
42     /** upper revision date limit **/
43     private long toRevisionDate;
44
45     /** the number max of last revisions to display **/
46     private int nbMaxOfRevisions = 10;
47
48
49     public void setFromRevisionDate(long date){
50         this.fromRevisionDate = date;
51     }
52
53     public long getFromRevisionDate(){
54         return this.fromRevisionDate;
55     }
56
57     public void setToRevisionDate(long date){
58         this.toRevisionDate = date;
59     }
60
61     public long getToRevisionDate(){
62         return this.toRevisionDate;
63     }
64
65     public int getNbMaxOfRevisions(){
66         return this.nbMaxOfRevisions;
67     }
68
69     public void setNbMaxOfRevisions(int value){
70         this.nbMaxOfRevisions = value;
71     }
72
73     public SortedSet JavaDoc getEntryStates(){
74         return this.entryStates;
75     }
76
77     public abstract void loadEntryStates(ContentObject contentObject,
78                                          EntryLoadRequest loadRequest,
79                                          JahiaUser user, int operation );
80 }
81
82
Popular Tags