Class GroovyPolicyBrowser

java.lang.Object
de.uplanet.lucy.server.security.scripting.AbstractPolicyBrowser<PolicyEntryInfo>
de.uplanet.lucy.server.security.scripting.groovy.GroovyPolicyBrowser
All Implemented Interfaces:
IPolicyBrowser<PolicyEntryInfo>

@Scriptable public class GroovyPolicyBrowser extends de.uplanet.lucy.server.security.scripting.AbstractPolicyBrowser<PolicyEntryInfo>
  • Method Details

    • createInstance

      public static GroovyPolicyBrowser createInstance(de.uplanet.jdbc.JdbcConnection p_conn)
      Create a policy browser instance.
      Parameters:
      p_conn - The database connection to be used.
      Returns:
      The policy browser instance.
    • getObjectPolicy

      public List<PolicyEntryInfo> getObjectPolicy(String p_strObjectName)
      Description copied from interface: IPolicyBrowser
      Get the policy for the given object.
      Specified by:
      getObjectPolicy in interface IPolicyBrowser<PolicyEntryInfo>
      Overrides:
      getObjectPolicy in class de.uplanet.lucy.server.security.scripting.AbstractPolicyBrowser<PolicyEntryInfo>
      Parameters:
      p_strObjectName - The name of object.
      Returns:
      The policy for the given object.
    • getPermissionsForUser

      public IPermissionCollectionInfo getPermissionsForUser(String p_strName)
      Description copied from interface: IPolicyBrowser
      Get the the permissions that are effectively assigned to the given user.
      Specified by:
      getPermissionsForUser in interface IPolicyBrowser<PolicyEntryInfo>
      Overrides:
      getPermissionsForUser in class de.uplanet.lucy.server.security.scripting.AbstractPolicyBrowser<PolicyEntryInfo>
      Parameters:
      p_strName - The user's unique identifier.
      Returns:
      The permissions that are effectively assigned to the given user.
    • getPermissionsForSet

      public IPermissionCollectionInfo getPermissionsForSet(String p_strName)
      Description copied from interface: IPolicyBrowser
      Get the the permissions that are effectively assigned to the given set.
      Specified by:
      getPermissionsForSet in interface IPolicyBrowser<PolicyEntryInfo>
      Overrides:
      getPermissionsForSet in class de.uplanet.lucy.server.security.scripting.AbstractPolicyBrowser<PolicyEntryInfo>
      Parameters:
      p_strName - The set's unique identifier.
      Returns:
      The permissions that are effectively assigned to the given set.
    • getPermissionsForContainer

      public IPermissionCollectionInfo getPermissionsForContainer(String p_strName)
      Description copied from interface: IPolicyBrowser
      Get the the permissions that are effectively assigned to the given container.
      Specified by:
      getPermissionsForContainer in interface IPolicyBrowser<PolicyEntryInfo>
      Overrides:
      getPermissionsForContainer in class de.uplanet.lucy.server.security.scripting.AbstractPolicyBrowser<PolicyEntryInfo>
      Parameters:
      p_strName - The container's unique identifier.
      Returns:
      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.
      Parameters:
      p_closure - The closure that receives the PolicyEntryInfo objects.
      Returns:
      The number of policy entries reported.