Java Doc for PolicyManager.java in  » Collaboration » JacORB » org » jacorb » orb » policies » 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 » Collaboration » JacORB » org.jacorb.orb.policies 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jacorb.orb.policies.PolicyManager

PolicyManager
public class PolicyManager extends _PolicyManagerLocalBase (Code)
Implementation of the ORB-level policy management interface as per CORBA 2.6, p. 4-43 to 4-45: This PolicyManager has operations through which a set of Policies can be applied and the current overriding Policy settings can be obtained. Policies applied at the ORB level override any system defaults. The ORB's PolicyManager is obtained through an invocation of ORB::resolve_initial_references, specifying an identifier of "ORBPolicyManager."
author:
   Gerald Brose
version:
   $Id: PolicyManager.java,v 1.8 2006/07/07 10:55:41 alphonse.bendt Exp $



Constructor Summary
public  PolicyManager(Configuration config)
    

Method Summary
public synchronized  org.omg.CORBA.Policy[]get_policy_overrides(int[] ts)
     Returns a PolicyList containing the overridden Polices for the requested PolicyTypes.
public synchronized  voidset_policy_overrides(org.omg.CORBA.Policy[] policies, org.omg.CORBA.SetOverrideType set_add)
     Modifies the current set of overrides with the requested list of Policy overrides.


Constructor Detail
PolicyManager
public PolicyManager(Configuration config)(Code)
public c'tor




Method Detail
get_policy_overrides
public synchronized org.omg.CORBA.Policy[] get_policy_overrides(int[] ts)(Code)
Returns a PolicyList containing the overridden Polices for the requested PolicyTypes. If the specified sequence is empty, all Policy overrides at this scope will be returned. If none of the requested PolicyTypes are overridden at the target PolicyManager, an empty sequence is returned. This accessor returns only those Policy overrides that have been set at the specific scope corresponding to the target PolicyManager (no evaluation is done with respect to overrides at other scopes).
Parameters:
  ts - a sequence of overridden policy types identifying thepolicies that are to be retrieved. the list of overridden policies of the types specified by ts



set_policy_overrides
public synchronized void set_policy_overrides(org.omg.CORBA.Policy[] policies, org.omg.CORBA.SetOverrideType set_add) throws org.omg.CORBA.InvalidPolicies(Code)
Modifies the current set of overrides with the requested list of Policy overrides. The first parameter policies is a sequence of references to Policy objects. The second parameter set_add of type SetOverrideType indicates whether these policies should be added onto any other overrides that already exist (ADD_OVERRIDE) in the PolicyManager, or they should be added to a clean PolicyManager free of any other overrides (SET_OVERRIDE).

Invoking set_policy_overrides with an empty sequence of policies and a mode of SET_OVERRIDE removes all overrides from a PolicyManager. Only certain policies that pertain to the invocation of an operation at the client end can be overridden using this operation. Attempts to override any other policy will result in the raising of the CORBA::NO_PERMISSION exception. If the request would put the set of overriding policies for the target PolicyManager in an inconsistent state, no policies are changed or added, and the exception InvalidPolicies is raised. There is no evaluation of compatibility with policies set within other PolicyManagers.
Parameters:
  policies - a sequence of Policy objects that are to beassociated with the PolicyManager object.
Parameters:
  set_add - whether the association is in addition to(ADD_OVERRIDE) or as a replacement of (SET_OVERRIDE) anyexisting overrides already associated with the PolicyManagerobject. If the value of this parameter is SET_OVERRIDE, thesupplied policies completely replace all existing overridesassociated with the PolicyManager object. If the value of thisparameter is ADD_OVERRIDE, the supplied policies are added tothe existing overrides associated with the PolicyManagerobject, except that if a supplied Policy object has the samePolicyType value as an existing override, the supplied Policyobject replaces the existing override.
throws:
  org.omg.CORBA.InvalidPolicies - a list of indices identifying theposition in the input policies list that are occupied byinvalid policies
throws:
  org.omg.CORBA.BAD_PARAM - if the sequence contains two or more Policyobjects with the same PolicyType value, the operation raisesthe standard sytem exception BAD_PARAM with standard minor code30.




www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.