@Test(expected = ApiException.class) public void createSite_Faulty() { runWithFault(new Runnable() { @Override public void run() { portal.createSite(new SiteId("newsite"), "basic"); } }); }
@Override public Site createSite(SiteId siteId) { String template = userPortalConfigService.getDefaultPortalTemplate(); if (template == null) { template = ""; } return createSite(siteId, template); }
PortalImpl implements Portal { @Override public Site createSite(SiteId siteId) { String template = userPortalConfigService.getDefaultPortalTemplate(); if (template == null) { template = ""; } return createSite(siteId, template); } }
PortalImpl implements Portal { @Override public Site createSite(SiteId siteId) { String template = userPortalConfigService.getDefaultPortalTemplate(); if (template == null) { template = ""; } return createSite(siteId, template); } PortalImpl(DataStorage dataStorage, PageService pageService, NavigationService navigationService,
                      DescriptionService descriptionService, ResourceBundleManager bundleManager, Authenticator authenticator,
                      IdentityRegistry identityRegistry, UserACL acl, UserPortalConfigService userPortalConfigService,
                      OAuthProviderAccessor oauthProviderAccessor); }
PortalImpl implements Portal { @Override public Site createSite(SiteId siteId) { String template = userPortalConfigService.getDefaultPortalTemplate(); if (template == null) { template = ""; } return createSite(siteId, template); } PortalImpl(DataStorage dataStorage, PageService pageService, NavigationService navigationService,
                      DescriptionService descriptionService, ResourceBundleManager bundleManager, Authenticator authenticator,
                      IdentityRegistry identityRegistry, UserACL acl, UserPortalConfigService userPortalConfigService,
                      OAuthProviderAccessor oauthProviderAccessor); @Override Site getSite(SiteId siteId); @Override Site createSite(SiteId siteId); @Override Site createSite(SiteId siteId, String templateName); @Override List<Site> findSites(SiteQuery query); @Override void saveSite(Site site); @Override boolean removeSite(SiteId siteId); @Override Navigation getNavigation(SiteId siteId); @Override PageBuilder newPageBuilder(); @Override ApplicationRegistry getApplicationRegistry(); @Override Page getPage(PageId pageId); List<ContainerItem> getPageRootContainer(PageContext pageContext); @Override Page createPage(PageId pageId); @Override List<Page> findPages(PageQuery query); @Override void savePage(Page page); @Override boolean removePage(PageId pageId); @Override boolean hasPermission(User user, Permission permission); @Override OAuthProvider getOAuthProvider(String oauthProviderKey); }
PortalImpl implements Portal { @Override public Site createSite(SiteId siteId) { String template = userPortalConfigService.getDefaultPortalTemplate(); if (template == null) { template = ""; } return createSite(siteId, template); } PortalImpl(DataStorage dataStorage, PageService pageService, NavigationService navigationService,
                      DescriptionService descriptionService, ResourceBundleManager bundleManager, Authenticator authenticator,
                      IdentityRegistry identityRegistry, UserACL acl, UserPortalConfigService userPortalConfigService,
                      OAuthProviderAccessor oauthProviderAccessor); @Override Site getSite(SiteId siteId); @Override Site createSite(SiteId siteId); @Override Site createSite(SiteId siteId, String templateName); @Override List<Site> findSites(SiteQuery query); @Override void saveSite(Site site); @Override boolean removeSite(SiteId siteId); @Override Navigation getNavigation(SiteId siteId); @Override PageBuilder newPageBuilder(); @Override ApplicationRegistry getApplicationRegistry(); @Override Page getPage(PageId pageId); List<ContainerItem> getPageRootContainer(PageContext pageContext); @Override Page createPage(PageId pageId); @Override List<Page> findPages(PageQuery query); @Override void savePage(Page page); @Override boolean removePage(PageId pageId); @Override boolean hasPermission(User user, Permission permission); @Override OAuthProvider getOAuthProvider(String oauthProviderKey);  }