Ejemplo n.º 1
0
  public static void save(org.sakaiproject.site.api.Site param0)
      throws org.sakaiproject.exception.IdUnusedException,
          org.sakaiproject.exception.PermissionException {
    org.sakaiproject.site.api.SiteService service = getInstance();
    if (service == null) return;

    service.save(param0);
  }
  public void setUp() throws Exception {
    userDirectoryService = getService(UserDirectoryService.class);
    siteService = getService(SiteService.class);
    authzGroupService = getService(AuthzGroupService.class);

    actAsUserEid("admin");

    // Add test users.
    addUserWithEid(NOT_IN_SITE_USER_EID);
    addUserWithEid(UNADVISED_USER_EID);
    addUserWithEid(DISPLAY_ADVISED_USER_EID);

    // Add test sites.
    Site site = siteService.addSite(STANDARD_SITE_NAME, "project");
    siteService.save(site);
    standardSiteUid = site.getReference();

    site = siteService.addSite(CONTEXTUAL_SITE_NAME, "project");
    siteService.save(site);
    contextualSiteUid = site.getReference();
  }