|
|
@@ -9,10 +9,8 @@ import com.x.base.core.project.http.EffectivePerson;
|
|
|
import com.x.base.core.project.http.HttpMediaType;
|
|
|
import com.x.base.core.project.jaxrs.ResponseFactory;
|
|
|
import com.x.base.core.project.jaxrs.StandardJaxrsAction;
|
|
|
-import com.x.base.core.project.jaxrs.proxy.StandardJaxrsActionProxy;
|
|
|
import com.x.base.core.project.logger.Logger;
|
|
|
import com.x.base.core.project.logger.LoggerFactory;
|
|
|
-import com.x.cms.assemble.control.ThisApplication;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.ws.rs.*;
|
|
|
@@ -27,7 +25,6 @@ import java.util.List;
|
|
|
@JaxrsDescribe("信息发布内容分类管理")
|
|
|
public class CategoryInfoAction extends StandardJaxrsAction{
|
|
|
|
|
|
- private StandardJaxrsActionProxy proxy = new StandardJaxrsActionProxy(ThisApplication.context());
|
|
|
private static Logger logger = LoggerFactory.getLogger( CategoryInfoAction.class );
|
|
|
|
|
|
@JaxrsMethodDescribe(value = "创建或者更新信息分类信息对象.", action = ActionSave.class)
|
|
|
@@ -40,7 +37,7 @@ public class CategoryInfoAction extends StandardJaxrsAction{
|
|
|
Boolean check = true;
|
|
|
if( check ){
|
|
|
try {
|
|
|
- result = ((ActionSave)proxy.getProxy(ActionSave.class)).execute( request, effectivePerson, jsonElement );
|
|
|
+ result = new ActionSave().execute( request, effectivePerson, jsonElement );
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
Exception exception = new ExceptionCategoryInfoProcess( e, "分类信息在保存时发生异常." );
|
|
|
@@ -62,7 +59,7 @@ public class CategoryInfoAction extends StandardJaxrsAction{
|
|
|
EffectivePerson effectivePerson = this.effectivePerson( request );
|
|
|
ActionResult<ActionSaveImportView.Wo> result = null;
|
|
|
try {
|
|
|
- result = ((ActionSaveImportView)proxy.getProxy(ActionSaveImportView.class)).execute( request, effectivePerson, categoryId, jsonElement );
|
|
|
+ result = new ActionSaveImportView().execute( request, effectivePerson, categoryId, jsonElement );
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
Exception exception = new ExceptionCategoryInfoProcess( e, "为分类绑定导入数据的列表ID时发生异常。categoryId:"+ categoryId );
|
|
|
@@ -83,7 +80,7 @@ public class CategoryInfoAction extends StandardJaxrsAction{
|
|
|
Boolean check = true;
|
|
|
if( check ){
|
|
|
try {
|
|
|
- result = ((ActionSaveExtContent)proxy.getProxy(ActionSaveExtContent.class)).execute( request, effectivePerson, jsonElement );
|
|
|
+ result = new ActionSaveExtContent().execute( request, effectivePerson, jsonElement );
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
Exception exception = new ExceptionCategoryInfoProcess( e, "分类扩展信息在保存时发生异常." );
|
|
|
@@ -104,7 +101,7 @@ public class CategoryInfoAction extends StandardJaxrsAction{
|
|
|
EffectivePerson effectivePerson = this.effectivePerson( request );
|
|
|
ActionResult<ActionDelete.Wo> result = new ActionResult<>();
|
|
|
try {
|
|
|
- result = ((ActionDelete)proxy.getProxy(ActionDelete.class)).execute( request, id, effectivePerson );
|
|
|
+ result = new ActionDelete().execute( request, id, effectivePerson );
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
Exception exception = new ExceptionCategoryInfoProcess( e, "分类信息在删除时发生异常。ID:" + id );
|
|
|
@@ -124,7 +121,7 @@ public class CategoryInfoAction extends StandardJaxrsAction{
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
ActionResult<ActionEraseDocumentWithCategory.Wo> result = new ActionResult<>();
|
|
|
try {
|
|
|
- result = ((ActionEraseDocumentWithCategory)proxy.getProxy(ActionEraseDocumentWithCategory.class)).execute(request, id, effectivePerson );
|
|
|
+ result = new ActionEraseDocumentWithCategory().execute(request, id, effectivePerson );
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
Exception exception = new ExceptionCategoryInfoProcess(e, "根据分类ID删除所有的信息文档发生未知异常,ID:" + id);
|
|
|
@@ -144,7 +141,7 @@ public class CategoryInfoAction extends StandardJaxrsAction{
|
|
|
EffectivePerson effectivePerson = this.effectivePerson( request );
|
|
|
ActionResult<List<ActionListWhatICanView_Article.Wo>> result = new ActionResult<>();
|
|
|
try {
|
|
|
- result = ((ActionListWhatICanView_Article)proxy.getProxy(ActionListWhatICanView_Article.class)).execute( request, appId, effectivePerson );
|
|
|
+ result = new ActionListWhatICanView_Article().execute( request, appId, effectivePerson );
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
Exception exception = new ExceptionCategoryInfoProcess( e, "根据指定应用栏目ID查询分类信息列表时发生异常。ID:" + appId );
|
|
|
@@ -164,7 +161,7 @@ public class CategoryInfoAction extends StandardJaxrsAction{
|
|
|
EffectivePerson effectivePerson = this.effectivePerson( request );
|
|
|
ActionResult<List<ActionListWhatICanView_Data.Wo>> result = new ActionResult<>();
|
|
|
try {
|
|
|
- result = ((ActionListWhatICanView_Data)proxy.getProxy(ActionListWhatICanView_Data.class)).execute( request, appId, effectivePerson );
|
|
|
+ result = new ActionListWhatICanView_Data().execute( request, appId, effectivePerson );
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
Exception exception = new ExceptionCategoryInfoProcess( e, "根据指定应用栏目ID查询分类信息列表时发生异常。ID:" + appId );
|
|
|
@@ -184,7 +181,7 @@ public class CategoryInfoAction extends StandardJaxrsAction{
|
|
|
EffectivePerson effectivePerson = this.effectivePerson( request );
|
|
|
ActionResult<List<ActionListWhatICanView_AllType.Wo>> result = new ActionResult<>();
|
|
|
try {
|
|
|
- result = ((ActionListWhatICanView_AllType)proxy.getProxy(ActionListWhatICanView_AllType.class)).execute( request, appId, effectivePerson );
|
|
|
+ result = new ActionListWhatICanView_AllType().execute( request, appId, effectivePerson );
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
Exception exception = new ExceptionCategoryInfoProcess( e, "根据指定应用栏目ID查询分类信息列表时发生异常。ID:" + appId );
|
|
|
@@ -204,7 +201,7 @@ public class CategoryInfoAction extends StandardJaxrsAction{
|
|
|
EffectivePerson effectivePerson = this.effectivePerson( request );
|
|
|
ActionResult<List<ActionListWhatICanPublish.Wo>> result = new ActionResult<>();
|
|
|
try {
|
|
|
- result = ((ActionListWhatICanPublish)proxy.getProxy(ActionListWhatICanPublish.class)).execute( request, appId, effectivePerson );
|
|
|
+ result = new ActionListWhatICanPublish().execute( request, appId, effectivePerson );
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
Exception exception = new ExceptionCategoryInfoProcess( e, "根据应用栏目ID查询分类信息对象时发生异常。AppId:" + appId );
|
|
|
@@ -223,7 +220,7 @@ public class CategoryInfoAction extends StandardJaxrsAction{
|
|
|
EffectivePerson effectivePerson = this.effectivePerson( request );
|
|
|
ActionResult<List<ActionListAll.Wo>> result = null;
|
|
|
try {
|
|
|
- result = ((ActionListAll)proxy.getProxy(ActionListAll.class)).execute( request, effectivePerson );
|
|
|
+ result = new ActionListAll().execute( request, effectivePerson );
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
Exception exception = new ExceptionCategoryInfoProcess( e, "查询所有分类信息对象时发生异常。" );
|
|
|
@@ -243,7 +240,7 @@ public class CategoryInfoAction extends StandardJaxrsAction{
|
|
|
EffectivePerson effectivePerson = this.effectivePerson( request );
|
|
|
ActionResult<ActionGet.Wo> result = null;
|
|
|
try {
|
|
|
- result = ((ActionGet)proxy.getProxy(ActionGet.class)).execute( request, flag, effectivePerson );
|
|
|
+ result = new ActionGet().execute( request, flag, effectivePerson );
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
Exception exception = new ExceptionCategoryInfoProcess( e, "根据ID查询分类信息对象时发生异常。flag:" + flag );
|
|
|
@@ -265,7 +262,7 @@ public class CategoryInfoAction extends StandardJaxrsAction{
|
|
|
Boolean check = true;
|
|
|
if( check ){
|
|
|
try {
|
|
|
- result = ((ActionQueryGetControl)proxy.getProxy(ActionQueryGetControl.class)).execute( request, id, effectivePerson );
|
|
|
+ result = new ActionQueryGetControl().execute( request, id, effectivePerson );
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
result.error( e );
|
|
|
@@ -285,7 +282,7 @@ public class CategoryInfoAction extends StandardJaxrsAction{
|
|
|
EffectivePerson effectivePerson = this.effectivePerson( request );
|
|
|
ActionResult<ActionGetByAlias.Wo> result = null;
|
|
|
try {
|
|
|
- result = ((ActionGetByAlias)proxy.getProxy(ActionGetByAlias.class)).execute( request, alias, effectivePerson );
|
|
|
+ result = new ActionGetByAlias().execute( request, alias, effectivePerson );
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
Exception exception = new ExceptionCategoryInfoProcess( e, "根据标识查询分类信息对象时发生异常。ALIAS:"+ alias );
|
|
|
@@ -308,7 +305,7 @@ public class CategoryInfoAction extends StandardJaxrsAction{
|
|
|
EffectivePerson effectivePerson = this.effectivePerson( request );
|
|
|
ActionResult<List<ActionListNextWithFilter.Wo>> result = null;
|
|
|
try {
|
|
|
- result = ((ActionListNextWithFilter)proxy.getProxy(ActionListNextWithFilter.class)).execute( request, effectivePerson, id, count, jsonElement);
|
|
|
+ result = new ActionListNextWithFilter().execute( request, effectivePerson, id, count, jsonElement);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
Exception exception = new ExceptionCategoryInfoProcess( e, "列示根据过滤条件的信息分类时发生异常。" );
|
|
|
@@ -331,7 +328,7 @@ public class CategoryInfoAction extends StandardJaxrsAction{
|
|
|
EffectivePerson effectivePerson = this.effectivePerson( request );
|
|
|
ActionResult<List<ActionListPrevWithFilter.Wo>> result = null;
|
|
|
try {
|
|
|
- result = ((ActionListPrevWithFilter)proxy.getProxy(ActionListPrevWithFilter.class)).execute( request, effectivePerson, id, count, jsonElement);
|
|
|
+ result = new ActionListPrevWithFilter().execute( request, effectivePerson, id, count, jsonElement);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
Exception exception = new ExceptionCategoryInfoProcess( e, "列示根据过滤条件的信息分类时发生异常。" );
|