net.sf.jguard.core.organization
Class OrganizationUtils

java.lang.Object
  extended by net.sf.jguard.core.organization.OrganizationUtils

public class OrganizationUtils
extends java.lang.Object

utility class for Organization.

Author:
Charles Gay

Constructor Summary
OrganizationUtils()
           
 
Method Summary
static void checkSubjectTemplatePrincipals(SubjectTemplate template, java.util.Set ppals)
          like multiple role inheritance can be enabled, we should check that every Permissions Set owned by the generic candidate principal is not a superset of the Permissions Set owned by Principals of the Organization.
static Organization findOrganization(java.util.Collection organizations, java.lang.String organizationId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrganizationUtils

public OrganizationUtils()
Method Detail

findOrganization

public static Organization findOrganization(java.util.Collection organizations,
                                            java.lang.String organizationId)
Parameters:
organizations - collection used to search organization
organizationId - id of the organization
Returns:
first organization found or null if no one is found

checkSubjectTemplatePrincipals

public static void checkSubjectTemplatePrincipals(SubjectTemplate template,
                                                  java.util.Set ppals)
like multiple role inheritance can be enabled, we should check that every Permissions Set owned by the generic candidate principal is not a superset of the Permissions Set owned by Principals of the Organization. in this case, we remove principals which exceed grants owned by the organisation.

Parameters:
template - SubjectTemplate to filter


Copyright © 2004-2009. All Rights Reserved.