|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.security.Permission
org.systinet.security.perm.WSManagePermission
org.systinet.security.perm.WASPUndeployPermission
Permission that allows to undeploy packages from WASP. The name of the permission can be "*" to match all packages. If it is set, the undeploy action is allowed only to given package, otherwise it allows to undeploy every package.
| Field Summary |
| Fields inherited from class org.systinet.security.perm.WSManagePermission |
ALL, ALL_NAMES, GET, SET |
| Constructor Summary | |
WASPUndeployPermission()
Instantiation through this constructor is used to grant undeploy on every package. |
|
WASPUndeployPermission(java.lang.String packageName)
Instantiation through this constructor is used to grant undeploy on specified package name. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Checks two Permission objects for equality. |
java.lang.String |
getActions()
No actions supported by this permission. |
int |
hashCode()
Always return the value getName().hashCode() or 2 if getName() returns null. |
boolean |
implies(java.security.Permission permission)
A permissions is implied from this permission if given permission is instance of WASPUndeployPermission and this.getName() == null, i.e. |
java.security.PermissionCollection |
newPermissionCollection()
Returns a new PermissionCollection object for storing WASPUndeployPermission objects. |
java.lang.String |
toString()
Overriden to return complete description of this permission. |
| Methods inherited from class java.security.Permission |
checkGuard, getName |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public WASPUndeployPermission()
public WASPUndeployPermission(java.lang.String packageName)
packageName - name of the package| Method Detail |
public java.lang.String toString()
toString in class WSManagePermissionpublic java.lang.String getActions()
getActions in class WSManagePermissionnullpublic boolean implies(java.security.Permission permission)
this.getName() == null, i.e. this permission allows to undeploy every package; orthis.getName() != null && this.getName().equals(permission.getName())
implies in class WSManagePermissionpermission - the permission to check against.
true if the specified permission is implied by this object, false if not.public int hashCode()
null.
hashCode in class WSManagePermissionpublic boolean equals(java.lang.Object obj)
equals in class WSManagePermissionobj - the object we are testing for equality with this object
true if both Permission objects are equivalent.public java.security.PermissionCollection newPermissionCollection()
newPermissionCollection in class WSManagePermission
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||