use of org.alfresco.rm.rest.api.model.RMSiteCompliance in project records-management by Alfresco.
the class RMSitesImpl method getCompliance.
/**
* Obtain compliance from site info
*
* @param siteInfo
* @return
*/
private RMSiteCompliance getCompliance(SiteInfo siteInfo) {
NodeRef nodeRef = siteInfo.getNodeRef();
QName siteType = nodeService.getType(nodeRef);
RMSiteCompliance compliance;
if (RecordsManagementModel.TYPE_RM_SITE.equals(siteType)) {
compliance = RMSiteCompliance.STANDARD;
} else {
compliance = RMSiteCompliance.DOD5015;
}
return compliance;
}
use of org.alfresco.rm.rest.api.model.RMSiteCompliance in project records-management by Alfresco.
the class RMSitesImpl method getRMSite.
@Override
public RMSite getRMSite(String siteId) {
Site site = getSite(siteId);
SiteInfo siteInfo = siteService.getSite(siteId);
RMSiteCompliance compliance = getCompliance(siteInfo);
return new RMSite(site, compliance);
}
use of org.alfresco.rm.rest.api.model.RMSiteCompliance in project records-management by Alfresco.
the class RMSitesImpl method createRMSite.
@Override
public RMSite createRMSite(RMSite rmSite, Parameters parameters) {
RMSiteCompliance compliance = rmSite.getCompliance();
if (compliance == null) {
compliance = RMSiteCompliance.STANDARD;
}
Site site = createSite(rmSite, parameters);
return new RMSite(site, compliance);
}
use of org.alfresco.rm.rest.api.model.RMSiteCompliance in project records-management by Alfresco.
the class RMSitesImpl method updateRMSite.
/**
* Updates the RM site
*/
public RMSite updateRMSite(String siteId, SiteUpdate update, Parameters parameters) {
Site updatedSite = updateSite(siteId, update, parameters);
SiteInfo siteInfo = siteService.getSite(siteId);
RMSiteCompliance compliance = getCompliance(siteInfo);
return new RMSite(updatedSite, compliance);
}
Aggregations