com.formkiq.server.dao.ClientDao Maven / Gradle / Ivy
package com.formkiq.server.dao;
import com.formkiq.server.domain.User;
import com.formkiq.server.domain.type.ClientDTO;
import com.formkiq.server.domain.type.ClientListDTO;
/**
* Methods for retrieving Client data from the database.
*
*/
public interface ClientDao {
/** Additional Information Key. */
String CLIENT_NAME = "clientName";
/**
* Client Count.
* @return int
*/
int clientCount();
/**
* Find Client.
* @param user {@link User}
* @param client {@link String}
* @return {@link ClientDTO}
*/
ClientDTO findClient(User user, String client);
/**
* Find Clients.
* @param token {@link String}
* @return {@link ClientListDTO}
*/
ClientListDTO findClients(final String token);
/**
* Gets the client name from string.
* @param s {@link String}
* @return {@link String}
*/
String getClientnameFromString(final String s);
}