com.formkiq.server.dao.FormDao Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of formkiq-server Show documentation
Show all versions of formkiq-server Show documentation
Server-side integration for the FormKiQ ios application
package com.formkiq.server.dao;
import com.formkiq.server.domain.Asset;
import com.formkiq.server.domain.ClientForm;
import com.formkiq.server.domain.FormLog;
import com.formkiq.server.domain.User;
import com.formkiq.server.domain.type.FormListDTO;
import com.formkiq.server.domain.type.SyncListDTO;
/**
* FormDao methods.
*
*/
public interface FormDao extends AbstractDao {
/**
* Find Asset.
* @param assetId {@link String}
* @return {@link Asset}
*/
Asset findAsset(final String assetId);
/**
* Find Asset Data.
* @param assetId {@link String}
* @return byte[]
*/
byte[] findAssetData(final String assetId);
/**
* Find Client Form.
* @param clientId {@link String}
* @param formId {@link String}
* @return {@link ClientForm}
*/
ClientForm findForm(String clientId, String formId);
/**
* Find Form.
* @param user {@link User}
* @param client {@link String}
* @param form {@link String}
* @return {@link ClientForm}
*/
ClientForm findForm(User user, String client, String form);
/**
* Finds forms for client.
* @param client {@link String}
* @return {@link FormListDTO}
*/
FormListDTO findForms(String client);
/**
* Find Forms with parent.
* @param client {@link String}
* @param form {@link String}
* @return {@link FormListDTO}
*/
FormListDTO findForms(String client, String form);
/**
* Return Form Sync List.
* @param client {@link String}
* @param nextToken int
* @return {@link SyncListDTO}
*/
SyncListDTO findFormSyncList(final String client,
final int nextToken);
/**
* Save Asset.
* @param asset {@link Asset}
* @return {@link Asset}
*/
Asset saveAsset(final Asset asset);
/**
* Saves Form.
* @param form {@link ClientForm}
* @return {@link ClientForm}
*/
ClientForm saveForm(ClientForm form);
/**
* Save Form.
* @param form {@link FormLog}
* @return {@link FormLog}
*/
FormLog saveFormLog(final FormLog form);
}