Source Code Cross Referenced for ALFragment.java in  » Portal » uPortal_rel-2-6-1-GA » org » jasig » portal » layout » alm » 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 » Portal » uPortal_rel 2 6 1 GA » org.jasig.portal.layout.alm 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /* Copyright 2004 The JA-SIG Collaborative.  All rights reserved.
002:         *  See license distributed with this file and
003:         *  available online at http://www.uportal.org/license.html
004:         */
005:
006:        package org.jasig.portal.layout.alm;
007:
008:        import org.jasig.portal.PortalException;
009:
010:        import java.util.Set;
011:        import java.util.HashSet;
012:
013:        /**
014:         * The implementation of the user layout fragment.
015:         * 
016:         * Prior to uPortal 2.5, this class existed in the package org.jasig.portal.layout.
017:         * It was moved to its present package to reflect that it is part of Aggregated
018:         * Layouts.
019:         *
020:         * @author <a href="mailto:mvi@immagic.com">Michael Ivanov</a>
021:         * @version $Revision: 35724 $
022:         */
023:        public class ALFragment extends AggregatedLayout implements 
024:                ILayoutFragment {
025:
026:            protected String functionalName;
027:            protected String description;
028:            protected boolean pushedFragment = false;
029:
030:            public ALFragment(String fragmentId,
031:                    IAggregatedUserLayoutManager layoutManager)
032:                    throws PortalException {
033:                super (fragmentId, layoutManager);
034:            }
035:
036:            public ALFragment(String fragmentId) throws PortalException {
037:                super (fragmentId);
038:            }
039:
040:            /**
041:             * Answers whether the fragment is pushed or pulled
042:             *
043:             * @return an boolean value
044:             */
045:            public boolean isPushedFragment() {
046:                return pushedFragment;
047:            }
048:
049:            /**
050:             * Marks the fragment as pushed
051:             */
052:            public void setPushedFragment() {
053:                pushedFragment = true;
054:            }
055:
056:            /**
057:             * Marks the fragment as pulled
058:             */
059:            public void setPulledFragment() {
060:                pushedFragment = false;
061:            }
062:
063:            /**
064:             * Returns a fragment functional name
065:             *
066:             * @return an <code>String</code> fragment name
067:             */
068:            public String getFunctionalName() {
069:                return functionalName;
070:            }
071:
072:            /**
073:             * Sets a fragment functional name
074:             * @param functionalName a <code>String</code> value
075:             */
076:            public void setFunctionalName(String functionalName) {
077:                this .functionalName = functionalName;
078:            }
079:
080:            /**
081:             * Returns a fragment name
082:             *
083:             * @return an <code>String</code> fragment name
084:             */
085:            public String getName() {
086:                return getFunctionalName();
087:            }
088:
089:            /**
090:             * Returns a fragment description
091:             *
092:             * @return an <code>String</code> fragment description
093:             */
094:            public String getDescription() {
095:                return description;
096:            }
097:
098:            /**
099:             * Sets a fragment name
100:             * @param name a <code>String</code> value
101:             */
102:            public void setName(String name) {
103:                setFunctionalName(name);
104:            }
105:
106:            /**
107:             * Sets a fragment description
108:             * @param description a <code>String</code> value
109:             */
110:            public void setDescription(String description) {
111:                this .description = description;
112:            }
113:
114:            /**
115:             * Returns a list of fragment Ids existing in the layout.
116:             *
117:             * @return a <code>Set</code> of <code>String</code> fragment Ids.
118:             * @exception PortalException if an error occurs
119:             */
120:            public Set getFragmentIds() throws PortalException {
121:                Set set = new HashSet();
122:                set.add(getId());
123:                return set;
124:            }
125:
126:            /**
127:             * Returns an fragment Id for a given node.
128:             * Returns null if the node is not part of any fragments.
129:             *
130:             * @param nodeId a <code>String</code> value
131:             * @return a <code>String</code> fragment Id
132:             * @exception PortalException if an error occurs
133:             */
134:            public String getFragmentId(String nodeId) throws PortalException {
135:                return getId();
136:            }
137:
138:            /**
139:             * Returns the fragment root Id.
140:             *
141:             * @return a <code>String</code> fragment root Id
142:             * @exception PortalException if an error occurs
143:             */
144:            public String getFragmentRootId() throws PortalException {
145:                return getFragmentRootId(getId());
146:            }
147:
148:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.