public Customization getCustomization() { CategoryDefinition category = getCategory(); POMSession session = category.registry.mopManager.getSession(); Workspace workspace = session.getWorkspace(); String name = getName(); return workspace.getCustomizationContext().getCustomization(name); }
public Collection<Page> getPages() { POMSession session = pomManager.getSession(); Workspace workspace = session.getWorkspace(); Collection<Site> sites = workspace.getSites(ObjectType.PORTAL_SITE); List<Page> pages = new ArrayList<Page>(sites.size() * 10); for (Site site : sites) { Page pagesRoot = getPagesFrom(site); if (pagesRoot != null) { Collection<Page> children = pagesRoot.getChildren(); for (Page child : children) { pages.add(child); } } } return pages; }