KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > data > containers > ContainerFacadeInterface


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.data.containers;
14
15 import java.util.Enumeration JavaDoc;
16
17 import org.jahia.data.fields.JahiaContentFieldFacade;
18 import org.jahia.exceptions.JahiaException;
19 import org.jahia.params.ParamBean;
20 import org.jahia.services.version.EntryLoadRequest;
21
22 /**
23  * Used to hold a set of JahiaContainer instance in multiple language.
24  *
25  * @author Khue Nguyen
26  */

27 public interface ContainerFacadeInterface {
28
29     //--------------------------------------------------------------------------
30
public abstract Enumeration JavaDoc getContainers();
31
32     //--------------------------------------------------------------------------
33
public abstract Enumeration JavaDoc getFields();
34
35     //--------------------------------------------------------------------------
36
public abstract JahiaContentFieldFacade getContentFieldFacade(int fieldID);
37
38     //--------------------------------------------------------------------------
39
/**
40      * Return a container for a entryLoadRequest using resolve entry state mechanism.
41      *
42      * @param EntryLoadRequest entryLoadRequest
43      * @param boolean stagingIfActiveNotFound
44      */

45     public abstract JahiaContainer getContainer( EntryLoadRequest entryLoadRequest,
46                                         boolean activeIfStagingNotFound );
47
48     //--------------------------------------------------------------------------
49
/**
50      * Change the field type ( from undefined to another type )
51      *
52      * @param type
53      */

54     public abstract void changeType(int fieldId, int type,
55             ParamBean jParams) throws JahiaException;
56 }
57
Popular Tags