public static Map<String,Object> deactivateContentAssoc(DispatchContext dctx,Map<String,? extends Object> rcontext){
  Map<String,Object> context=UtilMisc.makeMapWritable(rcontext);
  context.put("entityOperation","_UPDATE");
  List<String> targetOperationList=ContentWorker.prepTargetOperationList(context,"_UPDATE");
  List<String> contentPurposeList=ContentWorker.prepContentPurposeList(context);
  context.put("targetOperationList",targetOperationList);
  context.put("contentPurposeList",contentPurposeList);
  context.put("skipPermissionCheck",null);
  Map<String,Object> result=deactivateContentAssocMethod(dctx,context);
  return result;
}

public static Map < String , Object > deactivateContentAssoc ( DispatchContext dctx , Map < String , ? extends Object > rcontext ) { Map < String , Object > context = UtilMisc . makeMapWritable ( rcontext ) ; context . put ( "entityOperation" , "_UPDATE" ) ; List < String > targetOperationList = ContentWorker . prepTargetOperationList ( context , "_UPDATE" ) ; List < String > contentPurposeList = ContentWorker . prepContentPurposeList ( context ) ; context . put ( "targetOperationList" , targetOperationList ) ; context . put ( "contentPurposeList" , contentPurposeList ) ; context . put ( "skipPermissionCheck" , null ) ; Map < String , Object > result = deactivateContentAssocMethod ( dctx , context ) ; return result ; }
update a contentassoc service . the work is done in a separate method so that complex services that need this functionality do not need to incur the reflection performance penalty .
