KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > blandware > atleap > service > core > LookupManager


1 /*
2  * Copyright 2004 Blandware (http://www.blandware.com)
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package com.blandware.atleap.service.core;
17
18 import com.blandware.atleap.model.core.Localizable;
19 import com.blandware.atleap.persistence.core.LookupDAO;
20 import com.blandware.atleap.persistence.core.LocalizableDAO;
21
22 import java.util.List JavaDoc;
23
24
25 /**
26  * <p>Business Delegate (Proxy) Interface to talk to persistence layer and
27  * retrieve values for drop-down choice lists.
28  * </p>
29  * <p><a HREF="LookupManager.java.htm"><i>View Source</i></a>
30  * </p>
31  *
32  * @author Sergey Zubtcovskii <a HREF="mailto:sergey.zubtcovskii@blandware.com">&lt;sergey.zubtcovskii@blandware.com&gt;</a>
33  * @version $Revision: 1.18 $ $Date: 2006/03/26 16:12:49 $
34  */

35 public interface LookupManager extends BaseManager {
36     //~ Methods ================================================================
37

38     /**
39      * Sets DAO for performing lookup operations
40      *
41      * @param dao the DAO to set
42      */

43     public void setLookupDAO(LookupDAO dao);
44
45     /**
46      * Sets DAO for operating with localizables
47      *
48      * @param localizableDAO the DAO to set
49      */

50     public void setLocalizableDAO(LocalizableDAO localizableDAO);
51
52     /**
53      * Retrieves all role names from persistence layer
54      *
55      * @return List of role names
56      */

57     public List JavaDoc listRoleTitles();
58
59     /**
60      * Retrieves all roles from persistence layer
61      *
62      * @return List of roles
63      */

64     public List JavaDoc listRoles();
65
66     /**
67      * Retrieves roles that are assigned to linkable items
68      *
69      * @return List of roles
70      */

71     public List JavaDoc listRolesAssignedToLinkableItems();
72
73     /**
74      * Retrieves roles that are assigned to some content pages
75      *
76      * @return List of roles
77      */

78     public List JavaDoc listRolesAssignedToContentPages();
79
80     /**
81      * Retrieves roles that are assigned to some content resources
82      *
83      * @return List of roles
84      */

85     public List JavaDoc listRolesAssignedToContentResources();
86
87     /**
88      * Retrieves roles that are assigned to some documents
89      *
90      * @return List of roles
91      */

92     public List JavaDoc listRolesAssignedToDocuments();
93
94     /**
95      * Retrieves roles that are assigned to some files
96      *
97      * @return List of roles
98      */

99     public List JavaDoc listRolesAssignedToFiles();
100
101     /**
102      * Retrieves roles that are assigned to some images
103      *
104      * @return List of roles
105      */

106     public List JavaDoc listRolesAssignedToImages();
107
108     /**
109      * Retrieves roles that are assigned to some users as free roles
110      *
111      * @return List of roles
112      */

113     public List JavaDoc listFreeRolesAssignedToUsers();
114
115     /**
116      * Retrieves roles that are assigned to some news items
117      *
118      * @return List of roles
119      */

120     public List JavaDoc listRolesAssignedToNewsItems();
121
122     /**
123      * Retrieves all groups from persistence layer
124      *
125      * @return List of groups
126      */

127     public List JavaDoc listGroups();
128
129     /**
130      * Retrieves all layout names from persistence layer
131      *
132      * @return List of layout names
133      */

134     public List JavaDoc listLayoutNames();
135
136     /**
137      * Retrieves all layouts from persistence layer
138      *
139      * @return List of layouts
140      */

141     public List JavaDoc listLayouts();
142
143     /**
144      * Retrieves all types of content resources that are currently stored in
145      * persistence layer
146      *
147      * @return List of content resource types
148      */

149     public List JavaDoc listContentResourceTypes();
150
151     /**
152      * Retrieves localizable with specified ID
153      *
154      * @param localizableId ID of localizable to retrieve
155      * @return Localizable
156      */

157     public Localizable retrieveLocalizable(Long JavaDoc localizableId);
158 }
159
Popular Tags