KickJava   Java API By Example, From Geeks To Geeks.

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


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: Content Entry Info Set for pageContent </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 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     /** the level down to sub object **/
49     private int level;
50
51
52     public void setFromRevisionDate(long date){
53         this.fromRevisionDate = date;
54     }
55
56     public long getFromRevisionDate(){
57         return this.fromRevisionDate;
58     }
59
60     public void setToRevisionDate(long date){
61         this.toRevisionDate = date;
62     }
63
64     public long getToRevisionDate(){
65         return this.toRevisionDate;
66     }
67
68     public int getNbMaxOfRevisions(){
69         return this.nbMaxOfRevisions;
70     }
71
72     public void setNbMaxOfRevisions(int value){
73         this.nbMaxOfRevisions = value;
74     }
75
76     public SortedSet JavaDoc getEntryStates(){
77         return this.entryStates;
78     }
79
80     public abstract void loadEntryStates(ContentObject contentObject,
81                                          EntryLoadRequest loadRequest,
82                                          JahiaUser user, int operation );
83 }
84
85
Popular Tags