atg.svc.repository.beans.methods
Class SegmentMethods

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

public class SegmentMethods
extends BaseMethods

Defines extension methods for the Segment object.


Field Summary
static java.lang.String CLASS_VERSION
           
 
Constructor Summary
SegmentMethods()
           
 
Method Summary
 atg.repository.RepositoryItemGroup getGroup(atg.svc.repository.beans.Segment pSegment)
          Returns a RepositoryItemGroup for the given Segment.
 boolean getIsVisible(atg.svc.repository.beans.Segment pSegment)
          Returns true if the Segment is visible for the current internal user.
 
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

SegmentMethods

public SegmentMethods()
Method Detail

getGroup

public atg.repository.RepositoryItemGroup getGroup(atg.svc.repository.beans.Segment pSegment)
Returns a RepositoryItemGroup for the given Segment. The GroupContainer is based one the Segment.isInternal flag and the GroupName is take from the Segment.name property. If the internal flag is set to true the profile group comes from the internal profile repository else it comes from the standard profile repository as configured on the SegmentService.

Parameters:
pSegment - The Segment to get the RepositoryItemGroup for.
Returns:
The RepositoryItemGroup or null if it is not found or the needed container is not configured.

getIsVisible

public boolean getIsVisible(atg.svc.repository.beans.Segment pSegment)
Returns true if the Segment is visible for the current internal user.

Parameters:
pSegment - The Segment to get check permissions.
Returns:
True if the property is visible for the current user.