wt.inf.container
Class PublicDomainSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet
          extended by wt.inf.container.PublicDomainSet
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, 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 wt.inf.container.PublicDomainSet.PublicDomainInfo
           
 
Method Summary
 
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