Klasse GroovyIxAccessController
java.lang.Object
groovy.lang.GroovyObjectSupport
de.uplanet.lucy.server.scripting.groovy.security.permission.GroovyIxAccessController
- Alle implementierten Schnittstellen:
groovy.lang.GroovyObject
public final class GroovyIxAccessController
extends groovy.lang.GroovyObjectSupport
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungfinal class -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidcheck(groovy.lang.Closure<?> p_closure) Check permissions using aGroovyIxAccessController.GroovyIxAccessControllerDelegateas the given closure's delegate object.voidcheckPermission(Permission p_permission) Determines whether the access request indicated by the specified permission should be allowed or denied, based on the security policy currently in effect.booleanhas(groovy.lang.Closure<?> p_closure) Test permissions using a boolean expression in the given closure.booleanhasPermission(Permission p_permission) Determines whether the access request indicated by the specified permission should be allowed or denied, based on the security policy currently in effect.Von Klasse geerbte Methoden groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClassVon Klasse geerbte Methoden java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden groovy.lang.GroovyObject
getProperty, invokeMethod, setProperty
-
Konstruktordetails
-
GroovyIxAccessController
public GroovyIxAccessController()
-
-
Methodendetails
-
checkPermission
Determines whether the access request indicated by the specified permission should be allowed or denied, based on the security policy currently in effect. This method quietly returns if the access request is permitted, or throws a suitableAccessControlExceptionotherwise.- Parameter:
p_permission- The requested permission.- Löst aus:
AccessControlException- If the specified permission is not permitted, based on the current security policy.
-
hasPermission
Determines whether the access request indicated by the specified permission should be allowed or denied, based on the security policy currently in effect.- Parameter:
p_permission- The requested permission.- Gibt zurück:
trueif the permission is granted, orfalseif the permission is denied.
-
check
public void check(groovy.lang.Closure<?> p_closure) Check permissions using aGroovyIxAccessController.GroovyIxAccessControllerDelegateas the given closure's delegate object.- Parameter:
p_closure- A closure that calls the delegate to check permissions.- Löst aus:
AccessControlException- If not all of the checked permissions are being granted.
-
has
public boolean has(groovy.lang.Closure<?> p_closure) Test permissions using a boolean expression in the given closure.The closure's delegate object is a
GroovyIxAccessController.GroovyIxAccessControllerDelegate.Note: Be sure that the boolean expression whithin the closure does not contain errors.
- Parameter:
p_closure- A closure that calls the delegate to test for permissions.- Gibt zurück:
- The boolean return value of the closure.
-