Klasse GroovyPolicyBrowser
java.lang.Object
de.uplanet.lucy.server.security.scripting.AbstractPolicyBrowser<PolicyEntryInfo>
de.uplanet.lucy.server.security.scripting.groovy.GroovyPolicyBrowser
- Alle implementierten Schnittstellen:
IPolicyBrowser<PolicyEntryInfo>
@Scriptable
public class GroovyPolicyBrowser
extends de.uplanet.lucy.server.security.scripting.AbstractPolicyBrowser<PolicyEntryInfo>
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic GroovyPolicyBrowsercreateInstance(de.uplanet.jdbc.JdbcConnection p_conn) Create a policy browser instance.intforEachPolicyEntry(groovy.lang.Closure<?> p_closure) Iterate over all policy entries, ordered by object name. and call the given closure for each of them.getObjectPolicy(String p_strObjectName) Get the policy for the given object.getPermissionsForContainer(String p_strName) Get the the permissions that are effectively assigned to the given container.getPermissionsForSet(String p_strName) Get the the permissions that are effectively assigned to the given set.getPermissionsForUser(String p_strName) Get the the permissions that are effectively assigned to the given user.
-
Methodendetails
-
createInstance
Create a policy browser instance.- Parameter:
p_conn- The database connection to be used.- Gibt zurück:
- The policy browser instance.
-
getObjectPolicy
Beschreibung aus Schnittstelle kopiert:IPolicyBrowserGet the policy for the given object.- Angegeben von:
getObjectPolicyin SchnittstelleIPolicyBrowser<PolicyEntryInfo>- Setzt außer Kraft:
getObjectPolicyin Klassede.uplanet.lucy.server.security.scripting.AbstractPolicyBrowser<PolicyEntryInfo>- Parameter:
p_strObjectName- The name of object.- Gibt zurück:
- The policy for the given object.
-
getPermissionsForUser
Beschreibung aus Schnittstelle kopiert:IPolicyBrowserGet the the permissions that are effectively assigned to the given user.- Angegeben von:
getPermissionsForUserin SchnittstelleIPolicyBrowser<PolicyEntryInfo>- Setzt außer Kraft:
getPermissionsForUserin Klassede.uplanet.lucy.server.security.scripting.AbstractPolicyBrowser<PolicyEntryInfo>- Parameter:
p_strName- The user's unique identifier.- Gibt zurück:
- The permissions that are effectively assigned to the given user.
-
getPermissionsForSet
Beschreibung aus Schnittstelle kopiert:IPolicyBrowserGet the the permissions that are effectively assigned to the given set.- Angegeben von:
getPermissionsForSetin SchnittstelleIPolicyBrowser<PolicyEntryInfo>- Setzt außer Kraft:
getPermissionsForSetin Klassede.uplanet.lucy.server.security.scripting.AbstractPolicyBrowser<PolicyEntryInfo>- Parameter:
p_strName- The set's unique identifier.- Gibt zurück:
- The permissions that are effectively assigned to the given set.
-
getPermissionsForContainer
Beschreibung aus Schnittstelle kopiert:IPolicyBrowserGet the the permissions that are effectively assigned to the given container.- Angegeben von:
getPermissionsForContainerin SchnittstelleIPolicyBrowser<PolicyEntryInfo>- Setzt außer Kraft:
getPermissionsForContainerin Klassede.uplanet.lucy.server.security.scripting.AbstractPolicyBrowser<PolicyEntryInfo>- Parameter:
p_strName- The container's unique identifier.- Gibt zurück:
- The permissions that are effectively assigned to the given container.
-
forEachPolicyEntry
public int forEachPolicyEntry(groovy.lang.Closure<?> p_closure) Iterate over all policy entries, ordered by object name. and call the given closure for each of them.- Parameter:
p_closure- The closure that receives thePolicyEntryInfoobjects.- Gibt zurück:
- The number of policy entries reported.
-