wt.inf.container
Class PublicDomainSet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet
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
|
| Methods inherited from interface java.util.Set |
addAll, clear, contains, containsAll, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray |