Package business.test

Examples of business.test.Story


    public void save(Map request, Map session) {

        request.put("info", "saved OK!");

        Story story = OperatFactory.getServiceObject(StoryService.class).save("OK");
        request.put("story", story);
        request.put("group", "viewStory");


View Full Code Here


    public String view(Map request, Map session) {
        try {
            PermissionManager.getUserPermission().check(Story.class, "view");

            DataWrapper wrapper = new MVCDataWrapper(request, false, "yyyy-MM-dd");
            Story story = wrapper.execute(Story.class);
            request.put("story", story);
        } catch (AppException ex) {
            Logger.getLogger(EditStory.class.getName()).log(Level.SEVERE, null, ex);
            request.put("error", ex.getMessage());
            return null;
View Full Code Here

        return FormStatics.ACTIONRETURN_FORWARD + "ViewStory.jsp";
    }

    public void settingId(Map request, Map session) {
        try {
            Story story = OperatFactory.getServiceObject(StoryService.class).save("OK");
            ActionContext.getResponse().getWriter().println(JSONObjectUtils.wrapperJSON(story));
        } catch (IOException ex) {
            Logger.getLogger(EditStory.class.getName()).log(Level.SEVERE, null, ex);
        } finally {
            try {
View Full Code Here

        }
    }

    public void settingDesc(Map request, Map session) {
        try {
            Story story = OperatFactory.getServiceObject(StoryService.class).save("OK");
            ActionContext.getResponse().getWriter().println("{\"contexts.description\":12233}");
        } catch (Exception ex) {
            Logger.getLogger(EditStory.class.getName()).log(Level.SEVERE, null, ex);
        } finally {
            try {
View Full Code Here

*/
public class StoryServiceImpl implements StoryService{

    @Override
    public Story save(String message) {
        Story story = new Story();
        story.setId("PRO_test111");
        return story;
    }
View Full Code Here

        return context1;
    }

    @Override
    public List<Story> test() {
        Story story = new Story();
        story.setId("PRO_test111");
        List<Story> result = new ArrayList<Story>(2);
        result.add(story);
        return result;
    }
View Full Code Here

TOP

Related Classes of business.test.Story

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.