wt.inf.container
Class PublicDomainSet

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractSet
          extended bywt.inf.container.PublicDomainSet
All Implemented Interfaces:
Cloneable, Collection, Serializable, Set, SortedSet

public final class PublicDomainSet
extends AbstractSet
implements SortedSet, Cloneable, Serializable

A Set of all the public domains in a given container. The set is sorted by domain path. The values in the set are instances of an inner class, PublicDomainSet.PublicDomainInfo. The PublicDomainInfo class provides an API to get display values for a given public domain. The display value of the public domain "/HR/Sales", for example, is: "HR : Sales". The display value for the base public domain is localized, by default it is "Default".

To display the oid and display value for a set of public domains, one could do:

 PublicDomainSet pubs = WTContainerHelper.service.getPublicDomains(orgcontainer,
 container_class);
 for (Iterator i = pubs.iterator(); i.hasNext();) {
   PublicDomainSet.PublicDomainInfo next = (PublicDomainSet.PublicDomainInfo)i.next();
   System.out.println(next.getDomainRef());
   System.out.println(next.getDisplay()); //will return display localized
 to current VM
   System.out.println(next.getDisplay(a_Locale));
 }
 


Supported API: true

Extendable: false

See Also:
Serialized Form

Nested Class Summary
 class PublicDomainSet.PublicDomainInfo
           
 
Field Summary
private  PublicDomainSet.PublicDomainInfo baseInfo
           
private static String CLASSNAME
           
private  Class containerClass
           
private  SortedSet data
           
private static String RESOURCE
           
 
Constructor Summary
  PublicDomainSet()
          

Supported API: false
protected PublicDomainSet(Class container_class, AdminDomainRef base_domain)
          

Supported API: false
 
Method Summary
 boolean add(Object o)
          

Supported API: false
 Comparator comparator()
          

Supported API: false
 boolean containsDomain(AdminDomainRef domain_ref)
           
 boolean equals(Object o)
          

Supported API: false
 Object first()
          

Supported API: false
 Class getContainerClass()
          Gets the value of the attribute: containerClass.
 SortedSet headSet(Object o)
          

Supported API: false
 Iterator iterator()
          

Supported API: false
 Object last()
          

Supported API: false
 int size()
          

Supported API: false
 SortedSet subSet(Object o1, Object o2)
          

Supported API: false
 SortedSet tailSet(Object o)
          

Supported API: false
 
Methods inherited from class java.util.AbstractSet
hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, clear, contains, containsAll, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

containerClass

private Class containerClass

data

private SortedSet data

baseInfo

private PublicDomainSet.PublicDomainInfo baseInfo
Constructor Detail

PublicDomainSet

protected PublicDomainSet(Class container_class,
                          AdminDomainRef base_domain)


Supported API: false

Parameters:
container_class -
base_domain -

PublicDomainSet

public PublicDomainSet()


Supported API: false

Method Detail

getContainerClass

public Class getContainerClass()
Gets the value of the attribute: containerClass.

Supported API: false

Returns:
Class

add

public boolean add(Object o)


Supported API: false

Specified by:
add in interface Set
Parameters:
o -
Returns:
boolean

comparator

public Comparator comparator()


Supported API: false

Specified by:
comparator in interface SortedSet
Returns:
Comparator

equals

public boolean equals(Object o)


Supported API: false

Specified by:
equals in interface Set
Parameters:
o -
Returns:
boolean

first

public Object first()


Supported API: false

Specified by:
first in interface SortedSet
Returns:
Object

headSet

public SortedSet headSet(Object o)


Supported API: false

Specified by:
headSet in interface SortedSet
Parameters:
o -
Returns:
SortedSet

iterator

public Iterator iterator()


Supported API: false

Specified by:
iterator in interface Set
Returns:
Iterator

last

public Object last()


Supported API: false

Specified by:
last in interface SortedSet
Returns:
Object

size

public int size()


Supported API: false

Specified by:
size in interface Set
Returns:
int

subSet

public SortedSet subSet(Object o1,
                        Object o2)


Supported API: false

Specified by:
subSet in interface SortedSet
Parameters:
o1 -
o2 -
Returns:
SortedSet

tailSet

public SortedSet tailSet(Object o)


Supported API: false

Specified by:
tailSet in interface SortedSet
Parameters:
o -
Returns:
SortedSet

containsDomain

public boolean containsDomain(AdminDomainRef domain_ref)