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


01:        /* Copyright 2002 The JA-SIG Collaborative.  All rights reserved.
02:         *  See license distributed with this file and
03:         *  available online at http://www.uportal.org/license.html
04:         */
05:
06:        package org.jasig.portal.layout.restrictions;
07:
08:        import org.jasig.portal.PortalException;
09:        import org.jasig.portal.layout.node.ILayoutNode;
10:
11:        /**
12:         * IUserLayoutRestriction is the base interface for UserLayout restrictions.
13:         *
14:         * @author Michael Ivanov
15:         * @version $Revision: 36684 $
16:         */
17:        // create table up_restrictions (restriction_id integer(10) primary key, restriction_name varchar(50) not null );
18:        // insert into up_restrictions (restriction_id,restriction_name) values (1,'priority');
19:        // create table up_layout_restrictions ( user_id integer(10) not null, layout_id integer(10) not null, node_id varchar(20) not null, restriction_id integer(10) not null,
20:        // restriction_value varchar(200) not null, restriction_tree_path varchar(300), constraint up_layout_restrictions_pk primary key (user_id,layout_id,node_id,restriction_id),
21:        // constraint up_layout_restrictions_fk foreign key (restriction_id) references up_restrictions (restriction_id));
22:        // insert into up_layout_restrictions ( user_id, layout_id, node_id, restriction_id, restriction_value) values (2,1,5,1,'2-5,8');
23:        // insert into up_layout_struct_aggr (user_id,layout_id,struct_id,next_struct_id,chld_struct_id,external_id,chan_id,name,type,hidden,
24:        // immutable,unremovable) select user_id,layout_id,struct_id,next_struct_id,chld_struct_id,external_id,chan_id,name,type,hidden,
25:        // immutable,unremovable from up_layout_struct;
26:        // delete from up_layout_struct_aggr where user_id != 2 or layout_id != 1;
27:
28:        public interface IUserLayoutRestriction {
29:
30:            // The local restriction path defined for every restriction by default
31:            public final static String LOCAL_RESTRICTION_PATH = "local";
32:
33:            // The parent restriction path, could be setup to a parent node
34:            public final static String PARENT_RESTRICTION_PATH = "parent";
35:
36:            // The children restriction path, could be setup to all children
37:            public final static String CHILDREN_RESTRICTION_PATH = "children";
38:
39:            /**
40:             * Returns the name of the current restriction
41:             * @return a <code>String</code> name
42:             */
43:            public String getName();
44:
45:            /**
46:             * Sets the name of the current restriction
47:             * @param name <code>String</code> name
48:             */
49:            public void setName(String name);
50:
51:            /**
52:             * Gets the unique key of the current restriction
53:             * @return a <code>String</code> unique key
54:             */
55:            public String getUniqueKey();
56:
57:            /**
58:             * Checks the restriction for the given property value
59:             * @param propertyValue a <code>String</code> property value to be checked
60:             * @return a boolean value
61:             * @exception PortalException
62:             */
63:            public boolean checkRestriction(String propertyValue)
64:                    throws PortalException;
65:
66:            /**
67:             * Checks the relative restriction on a given node
68:             * @param node a <code>ILayoutNode</code> node
69:             * @return a boolean value
70:             * @exception PortalException
71:             */
72:            public boolean checkRestriction(ILayoutNode node)
73:                    throws PortalException;
74:
75:            /**
76:             * Sets the restriction expression
77:             * @param restrictionExpression a <code>String</code> expression
78:             */
79:            public void setRestrictionExpression(String restrictionExpression);
80:
81:            /**
82:             * Gets the restriction expression
83:             * @return a <code>String</code> expression
84:             */
85:            public String getRestrictionExpression();
86:
87:            /**
88:             * Sets the restriction path
89:             * @param restrictionPath a <code>String</code> path
90:             */
91:            public void setRestrictionPath(String restrictionPath);
92:
93:            /**
94:             * Gets the tree path for the current restriction
95:             * @return a <code>String</code> tree path
96:             */
97:            public String getRestrictionPath();
98:
99:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.