mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-2028 Create a rest API to get classification reasons
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@101049 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -44,10 +44,12 @@
|
|||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
<!-- FIXME: We have to restrict methods in the classification service (with capabilities, etc.) -->
|
||||||
<bean id="ClassificationService_security" parent="baseSecurity">
|
<bean id="ClassificationService_security" parent="baseSecurity">
|
||||||
<property name="objectDefinitionSource">
|
<property name="objectDefinitionSource">
|
||||||
<value>
|
<value>
|
||||||
org.alfresco.module.org_alfresco_module_rm.classification.ClassificationService.getClassificationLevels=ACL_ALLOW
|
org.alfresco.module.org_alfresco_module_rm.classification.ClassificationService.getClassificationLevels=ACL_ALLOW
|
||||||
|
org.alfresco.module.org_alfresco_module_rm.classification.ClassificationService.getClassificationReasons=ACL_ALLOW
|
||||||
org.alfresco.module.org_alfresco_module_rm.classification.ClassificationService.*=ACL_DENY
|
org.alfresco.module.org_alfresco_module_rm.classification.ClassificationService.*=ACL_DENY
|
||||||
</value>
|
</value>
|
||||||
</property>
|
</property>
|
||||||
|
@@ -653,6 +653,6 @@
|
|||||||
<bean id="webscript.org.alfresco.rma.classification.reasons.get"
|
<bean id="webscript.org.alfresco.rma.classification.reasons.get"
|
||||||
class="org.alfresco.module.org_alfresco_module_rm.script.classification.ReasonsGet"
|
class="org.alfresco.module.org_alfresco_module_rm.script.classification.ReasonsGet"
|
||||||
parent="rmBaseWebscript">
|
parent="rmBaseWebscript">
|
||||||
<property name="classificationService" ref="classificationService" /> <!-- TODO Change to "C" -->
|
<property name="classificationService" ref="ClassificationService" />
|
||||||
</bean>
|
</bean>
|
||||||
</beans>
|
</beans>
|
@@ -22,7 +22,6 @@ import java.util.HashMap;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.alfresco.module.org_alfresco_module_rm.classification.ClassificationService;
|
import org.alfresco.module.org_alfresco_module_rm.classification.ClassificationService;
|
||||||
import org.alfresco.module.org_alfresco_module_rm.jscript.app.JSONConversionComponent;
|
|
||||||
import org.alfresco.module.org_alfresco_module_rm.script.AbstractRmWebScript;
|
import org.alfresco.module.org_alfresco_module_rm.script.AbstractRmWebScript;
|
||||||
import org.springframework.extensions.webscripts.Cache;
|
import org.springframework.extensions.webscripts.Cache;
|
||||||
import org.springframework.extensions.webscripts.Status;
|
import org.springframework.extensions.webscripts.Status;
|
||||||
@@ -42,19 +41,6 @@ public class ReasonsGet extends AbstractRmWebScript
|
|||||||
/** Classification service */
|
/** Classification service */
|
||||||
private ClassificationService classificationService;
|
private ClassificationService classificationService;
|
||||||
|
|
||||||
/** JSON conversion component */
|
|
||||||
private JSONConversionComponent jsonConversionComponent;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the JSON conversion component
|
|
||||||
*
|
|
||||||
* @return The JSON conversion component
|
|
||||||
*/
|
|
||||||
protected JSONConversionComponent getJsonConversionComponent()
|
|
||||||
{
|
|
||||||
return this.jsonConversionComponent;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the classification service
|
* Sets the classification service
|
||||||
*
|
*
|
||||||
@@ -65,16 +51,6 @@ public class ReasonsGet extends AbstractRmWebScript
|
|||||||
this.classificationService = classificationService;
|
this.classificationService = classificationService;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the JSON conversion component
|
|
||||||
*
|
|
||||||
* @param jsonConversionComponent The JSON conversion component
|
|
||||||
*/
|
|
||||||
public void setJsonConversionComponent(JSONConversionComponent jsonConversionComponent)
|
|
||||||
{
|
|
||||||
this.jsonConversionComponent = jsonConversionComponent;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see org.springframework.extensions.webscripts.DeclarativeWebScript#executeImpl(org.springframework.extensions.webscripts.WebScriptRequest,
|
* @see org.springframework.extensions.webscripts.DeclarativeWebScript#executeImpl(org.springframework.extensions.webscripts.WebScriptRequest,
|
||||||
* org.springframework.extensions.webscripts.Status,
|
* org.springframework.extensions.webscripts.Status,
|
||||||
|
Reference in New Issue
Block a user