mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-4199: finalised unit tests for RMSiteEntityResource started on unit
tests for RMSitesImpl, made some minor fixes
This commit is contained in:
@@ -62,7 +62,7 @@ public class RMSite extends Site
|
||||
this.title = site.getTitle();
|
||||
this.description = site.getDescription();
|
||||
this.visibility = site.getVisibility();
|
||||
this.role = getRole();
|
||||
this.role = site.getRole();
|
||||
this.compliance = compliance;
|
||||
}
|
||||
|
||||
|
@@ -38,7 +38,6 @@ import org.alfresco.rest.framework.resource.parameters.Parameters;
|
||||
import org.alfresco.rm.rest.api.RMSites;
|
||||
import org.alfresco.rm.rest.api.model.RMSite;
|
||||
import org.alfresco.rm.rest.api.model.SiteUpdate;
|
||||
import org.alfresco.service.cmr.site.SiteVisibility;
|
||||
|
||||
/**
|
||||
* RM Site operations
|
||||
@@ -120,7 +119,7 @@ public class RMSiteEntityResource implements EntityResourceAction.Delete, Entity
|
||||
// Bind valid fields to a SiteUpdate instance.
|
||||
final String title = site.getTitle();
|
||||
final String description = site.getDescription();
|
||||
SiteUpdate update = new SiteUpdate(title, description, SiteVisibility.PUBLIC);
|
||||
SiteUpdate update = new SiteUpdate(title, description, null);
|
||||
|
||||
return sites.updateRMSite(siteId, update, parameters);
|
||||
}
|
||||
|
Reference in New Issue
Block a user