All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clickntap.api.Api Maven / Gradle / Ivy

The newest version!
package com.clickntap.api;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.json.JSONObject;

import com.clickntap.hub.App;
import com.clickntap.smart.SmartContext;

public interface Api {

  boolean handleRequest(HttpServletRequest request, HttpServletResponse response);

  void onPreAdd(BO bo, Map conf) throws Exception;

  void onAdd(BO bo, Map conf) throws Exception;

  void onEdit(BO bo, Map conf) throws Exception;

  void onAuth(BO bo, Map conf) throws Exception;

  List onSearch(Class c, List list) throws Exception;

  void onRead(BO bo, JSONObject json) throws Exception;

  JSONObject onNull(Class clazz, SmartContext context) throws Exception;

  JSONObject api(String uri, SmartContext ctx) throws Exception;

  public BO get(Class clazz, String value);

  public String getTokenCookie(App app, HttpServletResponse response, String token, boolean secure) throws Exception;

  public String addTokenCookie(App app, HttpServletResponse response, boolean secure) throws Exception;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy