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:
Tuna Aksoy
2015-04-01 13:30:18 +00:00
parent 5bcfef5d8a
commit eeafedd88e
3 changed files with 3 additions and 25 deletions

View File

@@ -44,10 +44,12 @@
</property>
</bean>
<!-- FIXME: We have to restrict methods in the classification service (with capabilities, etc.) -->
<bean id="ClassificationService_security" parent="baseSecurity">
<property name="objectDefinitionSource">
<value>
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
</value>
</property>

View File

@@ -653,6 +653,6 @@
<bean id="webscript.org.alfresco.rma.classification.reasons.get"
class="org.alfresco.module.org_alfresco_module_rm.script.classification.ReasonsGet"
parent="rmBaseWebscript">
<property name="classificationService" ref="classificationService" /> <!-- TODO Change to "C" -->
<property name="classificationService" ref="ClassificationService" />
</bean>
</beans>

View File

@@ -22,7 +22,6 @@ import java.util.HashMap;
import java.util.Map;
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.springframework.extensions.webscripts.Cache;
import org.springframework.extensions.webscripts.Status;
@@ -42,19 +41,6 @@ public class ReasonsGet extends AbstractRmWebScript
/** Classification service */
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
*
@@ -65,16 +51,6 @@ public class ReasonsGet extends AbstractRmWebScript
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,
* org.springframework.extensions.webscripts.Status,