1 /**
2 * Copyright 2005-2006 the original author or authors.
3 *
4 * Licensed under the Gnu General Pubic License, Version 2.0 (the
5 * "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/gpl-license.php
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the Gnu General Public License for more details.
14 */
15 package org.figure8.join.services.scripting.persistence;
16
17 import org.figure8.join.core.EntityObject;
18 import org.figure8.join.core.persistence.ObjectDao;
19
20 import java.util.List;
21 /**
22 * Data Access interface for ScriptLogInfo objects.
23 * @author <a href="mailto:laurent.broudoux@free.fr">Laurent Broudoux</a>
24 * @version $Revision: 1.2 $
25 */
26 public interface ScriptLogInfoDao extends ObjectDao{
27
28
29
30 /**
31 * Retrieve all the info beans on available script logs for script having this name
32 * @param scriptName The name of the script to retrieve log for
33 * @return A list of {@link org.figure8.join.services.scripting.ScriptLogInfo} available for script
34 */
35 public abstract List getScriptLogInfos(String scriptName);
36
37 /**
38 * Retrieve all the info beans on available script logs for script having this name and category
39 * @param scriptName The name of the script to retrieve log for
40 * @param scriptCategory The category of the script to retrive log for
41 * @return A list of {@link org.figure8.join.services.scripting.ScriptLogInfo} available for script
42 */
43 public abstract List getScriptLogInfos(String scriptName, String scriptCategory);
44
45 /**
46 * Retrieve all the info beans on available script logs for given entity
47 * @param entity The entity to retrieve ScriptLogInfo objects for
48 * @return A list of {@link org.figure8.join.services.scripting.ScriptLogInfo} available for entity
49 */
50 public abstract List getScriptLogInfosForEntity(EntityObject entity);
51
52 /**
53 * Retrieve all the info beans on available script logs for given entity
54 * @param entityId The id of entity to retrieve ScriptLogInfo objects for
55 * @param entityClass The class of entity to retrieve ScriptLogInfo objects for
56 * @return A list of {@link org.figure8.join.services.scripting.ScriptLogInfo} available for entity
57 */
58 public abstract List getScriptLogInfosForEntity(long entityId, String entityClass);
59 }