* Gets all web links.
*
* @return links
*/
public Links getAllLinks() {
Links allWebLinks = null;
try {
Subject subject;
for (Iterator x = iterator(); x.hasNext();) {
subject = (Subject) x.next();
Links subjectWebLinks = subject.getLinks();
if (allWebLinks == null) {
SelectionCriteria all = SelectionCriteria
.defineAllCriteria();
allWebLinks = (Links) subjectWebLinks.getEntities(all);
allWebLinks.setPropagateToSource(false);
} else {
Link link;
for (Iterator y = subjectWebLinks.iterator(); y.hasNext();) {
link = (Link) y.next();
allWebLinks.add(link);
}
}
}