Source Code Cross Referenced for CategoryManager.java in  » Content-Management-System » contelligent » de » finix » contelligent » category » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Content Management System » contelligent » de.finix.contelligent.category 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright 2001-2006 C:1 Financial Services GmbH
003:         *
004:         * This software is free software; you can redistribute it and/or
005:         * modify it under the terms of the GNU Lesser General Public
006:         * License Version 2.1, as published by the Free Software Foundation.
007:         *
008:         * This software is distributed in the hope that it will be useful,
009:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
010:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
011:         * Lesser General Public License for more details.
012:         *
013:         * You should have received a copy of the GNU Lesser General Public
014:         * License along with this library; if not, write to the Free Software
015:         * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
016:         */
017:
018:        package de.finix.contelligent.category;
019:
020:        import java.util.Collection;
021:        import java.util.Locale;
022:        import java.util.Map;
023:
024:        import de.finix.contelligent.CallData;
025:        import de.finix.contelligent.ComponentPath;
026:
027:        /**
028:         * The <code>CategoryManager</code> is responsible for handling
029:         * {@link Category categories}.
030:         */
031:        public interface CategoryManager {
032:
033:            public final static String CATEGORY_TOKEN = "*";
034:
035:            public final static char IDENTIFIER_SEPARATOR = ':';
036:
037:            public final static String IDENTIFIER_SEPARATOR_STRING = ":";
038:
039:            public final static String CHANNEL = "channel";
040:
041:            public final static String HTML_CHANNEL = "html";
042:
043:            public final static String SGML_CHANNEL = "sgml";
044:
045:            public final static String XML_CHANNEL = "xml";
046:
047:            public final static String DEFAULT_CHANNEL = HTML_CHANNEL;
048:
049:            /**
050:             * Returns a <code>String[]</code> containing the names of all currently
051:             * registered categories.
052:             * 
053:             * @return a <code>String[]</code> value
054:             */
055:            public String[] getCategoryNames();
056:
057:            /**
058:             * Returns an unmodifiable <code>Collection</code> containing all
059:             * currently registered categories, so the collection contains
060:             * {@link Category} instances only.
061:             * 
062:             * @return a <code>Collection</code>
063:             */
064:            public Collection getCategories();
065:
066:            /**
067:             * Returns the {@link Category} with the given name or null if no such
068:             * category is registered.
069:             * 
070:             * @return a <code>Category</code> value, maybe null
071:             */
072:            public Category getCategory(String categoryName);
073:
074:            public String createUniqueCategoryIdentifier(
075:                    Collection sensitiveCategories, Map categoryMap);
076:
077:            public String createUniqueCategoryIdentifier(
078:                    Collection sensitiveCategories);
079:
080:            public Map createCategoryMapForUniqueCategoryIdentifier(
081:                    Collection sensitiveCategories, String categoryIdentfier);
082:
083:            public void completeCategoryToResourceMapping(
084:                    Collection sensitiveCategories, Map categoryToResourceMap);
085:
086:            /**
087:             * Returns true if the given name is a name of an existing category and the
088:             * value is valid for this category.
089:             * 
090:             * @param categoryName
091:             *            a <code>String</code> value
092:             * @param categoryValue
093:             *            a <code>String</code> value
094:             */
095:            public boolean isValid(String categoryName, String categoryValue);
096:
097:            /**
098:             * Returns true if the given path contains a {@link #CATEGORY_TOKEN}.
099:             */
100:            public boolean containsCategory(ComponentPath path);
101:
102:            /**
103:             * If the given path {@link #containsCategory contains a category} the
104:             * {@link #CATEGORY_TOKEN category-tokens} get replaced with their current
105:             * values according to the given map.
106:             * 
107:             * @exception CategoryException
108:             *                if the map does not contain a value for a category found
109:             *                in the path.
110:             */
111:            public ComponentPath expandCategories(ComponentPath path,
112:                    Map categoryMap) throws CategoryException;
113:
114:            /**
115:             * Returns the XML representation of the category with the specified name or
116:             * null if the category is unknown.
117:             */
118:            public String categoryToXML(String categoryName);
119:
120:            /**
121:             * Returns a newly created category-map for the user specified in the
122:             * session contained in the CallData object.
123:             * 
124:             * @param callData
125:             *            a <code>CallData</code> value
126:             * @return a <code>Map</code> value
127:             * @exception de.finix.contelligent.category.CategoryException
128:             *                if an error occurs
129:             */
130:            public Map getCategoryMap(CallData callData, boolean sessionScope)
131:                    throws CategoryException;
132:
133:            /**
134:             * Select all entries from the map where the key is a valid category name.
135:             * 
136:             * @param parameterMap
137:             * @return
138:             * @throws CategoryException
139:             */
140:            public Map getCategoryMap(Map parameterMap)
141:                    throws CategoryException;
142:
143:            /**
144:             * Returns a newly created category-map for the user specified in the
145:             * session contained in the CallData object. If the given <code>Map</code>
146:             * contains any key/value pairs where the key matches an existsing category
147:             * the value is used as default for the category instead of the initially
148:             * configured one.
149:             * 
150:             * @param callData
151:             *            a <code>CallData</code> value
152:             * @param baseMap
153:             *            a <code>Map</code> used a default value for categories which
154:             *            aren't defined for this user.
155:             * @return a <code>Map</code> value
156:             * @exception de.finix.contelligent.category.CategoryException
157:             *                if an error occurs
158:             */
159:            public Map getCategoryMap(CallData callData, Map baseMap,
160:                    boolean sessionScope) throws CategoryException;
161:
162:            /**
163:             * Returns map containing (String,String) entries where every key represents
164:             * a valid category and the corresponding value is the default value of this
165:             * category.
166:             * 
167:             * @return a <code>Map</code> value
168:             */
169:            public Map getDefaultCategoryMap();
170:
171:            public Map getSensitveCategoryCombinations(
172:                    Collection sensitiveCategories);
173:
174:            public Locale getLocale(CallData callData);
175:
176:            public String getChannel(CallData callData);
177:
178:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.