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

com.formkiq.server.dao.FormDao Maven / Gradle / Ivy

There is a newer version: 0.6.1
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy