edu.internet2.middleware.grouper.attr
Class AttributeDefScopeDelegate

java.lang.Object
  extended by edu.internet2.middleware.grouper.attr.AttributeDefScopeDelegate

public class AttributeDefScopeDelegate
extends Object

delegate scope calls from attribute defs


Constructor Summary
AttributeDefScopeDelegate(AttributeDef attributeDef1)
           
 
Method Summary
 AttributeDefScope addScope(AttributeDefScopeType attributeDefScopeType, String scopeString, String scopeString2)
           
 AttributeDefScope assignOwnerAttributeDef(AttributeDef attributeDef)
          adds scope if not already there make sure this attributeDef is to this attribute def
 AttributeDefScope assignOwnerGroup(Group group)
          adds scope if not already there make sure this attributeDef is assigned to this group
 AttributeDefScope assignOwnerMembership(Membership membership)
          adds scope if not already there make sure this attributeDef is assigned directly in this stem
 AttributeDefScope assignOwnerNameEquals(String name)
          adds scope if not already there make sure this attributeDef is assigned to something of a given name
 AttributeDefScope assignOwnerSource(edu.internet2.middleware.subject.Source source)
          adds scope if not already there make sure this attributeDef is assigned to members in this source
 AttributeDefScope assignOwnerStem(Stem stem)
          adds scope if not already there make sure this attributeDef is assigned to this stem
 AttributeDefScope assignScope(AttributeDefScopeType attributeDefScopeType, String scopeString, String scopeString2)
          adds scope if not already there
 AttributeDefScope assignStemScope(Stem stem)
          adds scope if not already there make sure this attributeDef is assigned directly in this stem
 AttributeDefScope assignStemSubScope(Stem stem)
          adds scope if not already there make sure this attributeDef is assigned directly in this stem
 AttributeDefScope assignTypeDependence(AttributeDefName attributeDefName)
          adds scope if not already there make sure this attributeDef is assigned directly in this stem
 AttributeDefScope assignTypeDependence(AttributeDefName attributeDefName, String action)
          adds scope if not already there make sure this attributeDef is assigned to something that as another assignment
 AttributeDefScope internal_addScope(AttributeDefScopeType attributeDefScopeType, String scopeString, String scopeString2, String uuid)
           
 Set<AttributeDefScope> removeScope(AttributeDefScopeType attributeDefScopeType, String scopeString)
          remove all scopes with this type and scope string
 Set<AttributeDefScope> removeScope(AttributeDefScopeType attributeDefScopeType, String scopeString, String scopeString2)
          remove all scopes with this type, scope string, and scope string2
 AttributeDefScope retrieveAttributeDefScope(AttributeDefScopeType attributeDefScopeType, String scopeString, String scopeString2)
          find a scope and return it if there or null if not
 Set<AttributeDefScope> retrieveAttributeDefScopes()
           
 Set<AttributeDefScope> retrieveAttributeDefScopes(QueryOptions queryOptions)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeDefScopeDelegate

public AttributeDefScopeDelegate(AttributeDef attributeDef1)
Parameters:
attributeDef1 -
Method Detail

addScope

public AttributeDefScope addScope(AttributeDefScopeType attributeDefScopeType,
                                  String scopeString,
                                  String scopeString2)
Parameters:
attributeDefScopeType -
scopeString -
scopeString2 -
Returns:
attribute assign

assignScope

public AttributeDefScope assignScope(AttributeDefScopeType attributeDefScopeType,
                                     String scopeString,
                                     String scopeString2)
adds scope if not already there

Parameters:
attributeDefScopeType -
scopeString -
scopeString2 -
Returns:
attribute assign

assignStemSubScope

public AttributeDefScope assignStemSubScope(Stem stem)
adds scope if not already there make sure this attributeDef is assigned directly in this stem

Parameters:
stem -
Returns:
the attribute def scope

assignStemScope

public AttributeDefScope assignStemScope(Stem stem)
adds scope if not already there make sure this attributeDef is assigned directly in this stem

Parameters:
stem -
Returns:
the attribute def scope

assignTypeDependence

public AttributeDefScope assignTypeDependence(AttributeDefName attributeDefName)
adds scope if not already there make sure this attributeDef is assigned directly in this stem

Parameters:
attributeDefName -
Returns:
the attribute def scope

assignTypeDependence

public AttributeDefScope assignTypeDependence(AttributeDefName attributeDefName,
                                              String action)
adds scope if not already there make sure this attributeDef is assigned to something that as another assignment

Parameters:
attributeDefName -
action -
Returns:
the attribute def scope

assignOwnerNameEquals

public AttributeDefScope assignOwnerNameEquals(String name)
adds scope if not already there make sure this attributeDef is assigned to something of a given name

Parameters:
name -
Returns:
the attribute def scope

assignOwnerGroup

public AttributeDefScope assignOwnerGroup(Group group)
adds scope if not already there make sure this attributeDef is assigned to this group

Parameters:
group -
Returns:
the attribute def scope

assignOwnerStem

public AttributeDefScope assignOwnerStem(Stem stem)
adds scope if not already there make sure this attributeDef is assigned to this stem

Parameters:
stem -
Returns:
the attribute def scope

assignOwnerAttributeDef

public AttributeDefScope assignOwnerAttributeDef(AttributeDef attributeDef)
adds scope if not already there make sure this attributeDef is to this attribute def

Parameters:
attributeDef -
Returns:
the attribute def scope

assignOwnerMembership

public AttributeDefScope assignOwnerMembership(Membership membership)
adds scope if not already there make sure this attributeDef is assigned directly in this stem

Parameters:
membership -
Returns:
the attribute def scope

assignOwnerSource

public AttributeDefScope assignOwnerSource(edu.internet2.middleware.subject.Source source)
adds scope if not already there make sure this attributeDef is assigned to members in this source

Parameters:
source -
Returns:
the attribute def scope

removeScope

public Set<AttributeDefScope> removeScope(AttributeDefScopeType attributeDefScopeType,
                                          String scopeString)
remove all scopes with this type and scope string

Parameters:
attributeDefScopeType -
scopeString -
Returns:
set of attribute def scopes removes

removeScope

public Set<AttributeDefScope> removeScope(AttributeDefScopeType attributeDefScopeType,
                                          String scopeString,
                                          String scopeString2)
remove all scopes with this type, scope string, and scope string2

Parameters:
attributeDefScopeType -
scopeString -
scopeString2 -
Returns:
set of attribute def scopes removes

internal_addScope

public AttributeDefScope internal_addScope(AttributeDefScopeType attributeDefScopeType,
                                           String scopeString,
                                           String scopeString2,
                                           String uuid)
Parameters:
attributeDefScopeType -
scopeString -
scopeString2 -
uuid - is uuid or null for generated
Returns:
attribute assign

retrieveAttributeDefScope

public AttributeDefScope retrieveAttributeDefScope(AttributeDefScopeType attributeDefScopeType,
                                                   String scopeString,
                                                   String scopeString2)
find a scope and return it if there or null if not

Parameters:
attributeDefScopeType -
scopeString -
scopeString2 -
Returns:
the scope if there

retrieveAttributeDefScopes

public Set<AttributeDefScope> retrieveAttributeDefScopes()
Returns:
scopes (non null)

retrieveAttributeDefScopes

public Set<AttributeDefScope> retrieveAttributeDefScopes(QueryOptions queryOptions)
Parameters:
queryOptions -
Returns:
scopes (non null)