com.sun.n1.sps.model.user
Interface Permission


public interface Permission

A permission object is a persistent representation of a java.security.Permission object. It contains name, class name, and action properties. Permission also contains a collection of groups to which the permission is granted.

A permission instance represents an in-memory copy of data in a repository.


Method Summary
 java.lang.String getActions()
          Returns the actions of the permission.
 java.lang.String getClassName()
          Returns the class name of the permission.
 java.lang.String getName()
          Returns the name of the permission.
 PermissionID getPermissionID()
          The ID that uniquely identifies this permission amongst all other permissions in the repository.
 

Method Detail

getPermissionID

PermissionID getPermissionID()
The ID that uniquely identifies this permission amongst all other permissions in the repository.

Returns:
The ID of this permission

getName

java.lang.String getName()
Returns the name of the permission. The name is typically used to identify the resource being guarded. For example, in the case of a java.io.FilePermission, the name represents the path name. Consult the documentation of the permissions class named by the class name property to determine how the name field is to be used.

Returns:
The name of the permission.

getActions

java.lang.String getActions()
Returns the actions of the permission. The actions field is typically used to identify an action to be performed on the resource being guarded. For example, in the case of a java.io.FilePermission, the actions may be "read" or "write". Consult the documentation of the permissions class named by the class name property to determine how the actions field is to be used.

Returns:
The actions of the permission.

getClassName

java.lang.String getClassName()
Returns the class name of the permission. The class name represents the fully-qualified name of a Java class that is an instance of the java.security.Permission class, and adheres to the Permission conventions established by the java.security package.

Returns:
The class name of the permission.