org.apache.clerezza.permissiondescriptions
Class PermissionDescripton

java.lang.Object
  extended by org.apache.clerezza.permissiondescriptions.PermissionDescripton

public class PermissionDescripton
extends Object

The implementation of PermissionDescription used by the PersmissionDescriptionsProvider

Author:
mir

Constructor Summary
PermissionDescripton(String name, String description, URL iconUri, Class<? extends Permission> permissionClassName, String javaPermissionString)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDescription()
          Returns a description about the permission.
 URL getIcon()
          Returns an icon URI that describes pictorgraphically what the permission in its current configuration does.
 String getJavaPermissionString()
          Returns a string describing this Permission.
 String getSimpleName()
          The name of the permission in a human comprehensible form.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionDescripton

public PermissionDescripton(String name,
                            String description,
                            URL iconUri,
                            Class<? extends Permission> permissionClassName,
                            String javaPermissionString)
Method Detail

getDescription

public String getDescription()
Returns a description about the permission.

Returns:

getIcon

public URL getIcon()
Returns an icon URI that describes pictorgraphically what the permission in its current configuration does. E.g. the icon of a file read permission may depict an eye, while the icon for a file write permission might be a pencil.

Returns:

getSimpleName

public String getSimpleName()
The name of the permission in a human comprehensible form.

Returns:

getJavaPermissionString

public String getJavaPermissionString()
Returns a string describing this Permission. It has to be formated according the java.security.Permission toString()-convention. The convention is to specify the class name, the permission name, and the actions in the following format: '("ClassName" "name" "actions")'.

Returns:

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.