atg.svc.repository.beans.methods
Class UserFieldDefinitionMethods

java.lang.Object
  extended by atg.svc.repository.beans.methods.BaseMethods
      extended by atg.svc.repository.beans.methods.UserFieldDefinitionMethods

public class UserFieldDefinitionMethods
extends BaseMethods

Defines extension methods for the UserFieldDefinition object.


Field Summary
static java.lang.String CLASS_VERSION
           
 
Constructor Summary
UserFieldDefinitionMethods()
           
 
Method Summary
 java.util.List getUsersInSegments(UserFieldDefinition pFieldDefinition)
          Gets all user profiles that are members of the groups in the segments property of the given field definition.
 boolean hasSegmentFilter(UserFieldDefinition pFieldDefinition)
          Returns true if a segment filter has been set on the given UserFieldDefinition.
 
Methods inherited from class atg.svc.repository.beans.methods.BaseMethods
getServiceFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
See Also:
Constant Field Values
Constructor Detail

UserFieldDefinitionMethods

public UserFieldDefinitionMethods()
Method Detail

getUsersInSegments

public java.util.List getUsersInSegments(UserFieldDefinition pFieldDefinition)
Gets all user profiles that are members of the groups in the segments property of the given field definition.

Parameters:
pFieldDefinition - The UserType field definition that has the list of group names.
Returns:
A List of RepositoryItem for each group member sorted and with duplicates removed.

hasSegmentFilter

public boolean hasSegmentFilter(UserFieldDefinition pFieldDefinition)
Returns true if a segment filter has been set on the given UserFieldDefinition.

Parameters:
pFieldDefinition - The field definition to check.
Returns:
True if a segment filter has been set else false.