Java Doc for DaemonPermission.java in  » Library » Apache-common-Daemon » org » apache » commons » daemon » 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 » Library » Apache common Daemon » org.apache.commons.daemon 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.security.Permission
      org.apache.commons.daemon.DaemonPermission

DaemonPermission
final public class DaemonPermission extends Permission (Code)
This class represents the permissions to control and query the status of a Daemon. A DaemonPermission consists of a target name and a list of actions associated with it.

In this specification version the only available target name for this permission is "control", but further releases may add more target names to fine-tune the access that needs to be granted to the caller.

Actions are defined by a string of comma-separated values, as shown in the table below. The empty string implies no permission at all, while the special "*" value implies all permissions for the given name:

Target"Name Action Description
"control" "start" The permission to call the start() method in an instance of a DaemonController interface.
"stop" The permission to call the stop() method in an instance of a DaemonController interface.
"shutdown" The permission to call the shutdown() method in an instance of a DaemonController interface.
"reload" The permission to call the reload() method in an instance of a DaemonController interface.
"*" The special wildcard action implies all above-mentioned action. This is equal to construct a permission with the "start, stop, shutdown, reload" list of actions.


author:
   Pier Fumagalli
author:
   Copyright © 2000-2001 The
author:
   Apache Software Foundation
. All rights reserved.
version:
   1.0 (CVS $Revision: 155409 $)


Field Summary
final protected static  StringCONTROL
     The target name when associated with control actions ("control").
final protected static  StringCONTROL_RELOAD
     The action name associated with the permission to call the DaemonController.reload() method.
final protected static  StringCONTROL_SHUTDOWN
     The action name associated with the permission to call the DaemonController.shutdown() method.
final protected static  StringCONTROL_START
     The action name associated with the permission to call the DaemonController.start() method.
final protected static  StringCONTROL_STOP
     The action name associated with the permission to call the DaemonController.stop() method.
final protected static  intMASK_CONTROL_RELOAD
     The action mask associated with the permission to call the DaemonController.reload() method.
final protected static  intMASK_CONTROL_SHUTDOWN
     The action mask associated with the permission to call the DaemonController.shutdown() method.
final protected static  intMASK_CONTROL_START
     The action mask associated with the permission to call the DaemonController.start() method.
final protected static  intMASK_CONTROL_STOP
     The action mask associated with the permission to call the DaemonController.stop() method.
final protected static  intTYPE_CONTROL
     The target type when associated with control actions.
final protected static  StringWILDCARD
     The "wildcard" action implying all actions for the given target name.

Constructor Summary
public  DaemonPermission(String target)
     Create a new DaemonPermission instance with a specified permission name.
public  DaemonPermission(String target, String actions)
     Create a new DaemonPermission instance with a specified permission name and a specified list of actions.

Method Summary
public  booleanequals(Object object)
     Check if a specified object equals DaemonPermission.
public  StringgetActions()
     Return the list of actions permitted by this instance of DaemonPermission in its canonical form.
public  inthashCode()
     Return the hash code for this DaemonPermission instance.
public  booleanimplies(Permission permission)
     Check if this DaemonPermission implies another Permission.
public  StringtoString()
     Return a String representation of this instance.

Field Detail
CONTROL
final protected static String CONTROL(Code)
The target name when associated with control actions ("control").



CONTROL_RELOAD
final protected static String CONTROL_RELOAD(Code)
The action name associated with the permission to call the DaemonController.reload() method.



CONTROL_SHUTDOWN
final protected static String CONTROL_SHUTDOWN(Code)
The action name associated with the permission to call the DaemonController.shutdown() method.



CONTROL_START
final protected static String CONTROL_START(Code)
The action name associated with the permission to call the DaemonController.start() method.



CONTROL_STOP
final protected static String CONTROL_STOP(Code)
The action name associated with the permission to call the DaemonController.stop() method.



MASK_CONTROL_RELOAD
final protected static int MASK_CONTROL_RELOAD(Code)
The action mask associated with the permission to call the DaemonController.reload() method.



MASK_CONTROL_SHUTDOWN
final protected static int MASK_CONTROL_SHUTDOWN(Code)
The action mask associated with the permission to call the DaemonController.shutdown() method.



MASK_CONTROL_START
final protected static int MASK_CONTROL_START(Code)
The action mask associated with the permission to call the DaemonController.start() method.



MASK_CONTROL_STOP
final protected static int MASK_CONTROL_STOP(Code)
The action mask associated with the permission to call the DaemonController.stop() method.



TYPE_CONTROL
final protected static int TYPE_CONTROL(Code)
The target type when associated with control actions.



WILDCARD
final protected static String WILDCARD(Code)
The "wildcard" action implying all actions for the given target name.




Constructor Detail
DaemonPermission
public DaemonPermission(String target) throws IllegalArgumentException(Code)
Create a new DaemonPermission instance with a specified permission name.

This constructor will create a new DaemonPermission instance that will not grant any permission to the caller.
Parameters:
  target - The target name of this permission.
exception:
  IllegalArgumentException - If the specified target name is notsupported.




DaemonPermission
public DaemonPermission(String target, String actions) throws IllegalArgumentException(Code)
Create a new DaemonPermission instance with a specified permission name and a specified list of actions.


Parameters:
  target - The target name of this permission.
Parameters:
  actions - The list of actions permitted by this permission.
exception:
  IllegalArgumentException - If the specified target name is notsupported, or the specified list of actions includes aninvalid value.




Method Detail
equals
public boolean equals(Object object)(Code)
Check if a specified object equals DaemonPermission. true or false wether the specified object equalsthis DaemonPermission instance or not.



getActions
public String getActions()(Code)
Return the list of actions permitted by this instance of DaemonPermission in its canonical form. The canonicalized list of actions.



hashCode
public int hashCode()(Code)
Return the hash code for this DaemonPermission instance. An hash code value.



implies
public boolean implies(Permission permission)(Code)
Check if this DaemonPermission implies another Permission. true or false wether the specified permissionis implied by this DaemonPermission instance ornot.



toString
public String toString()(Code)
Return a String representation of this instance. A String representing thisDaemonPermission instance.



Methods inherited from java.security.Permission
public void checkGuard(Object object) throws SecurityException(Code)(Java Doc)
abstract public boolean equals(Object obj)(Code)(Java Doc)
abstract public String getActions()(Code)(Java Doc)
final public String getName()(Code)(Java Doc)
abstract public int hashCode()(Code)(Java Doc)
abstract public boolean implies(Permission permission)(Code)(Java Doc)
public PermissionCollection newPermissionCollection()(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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