1 18 19 package cowsultants.itracker.ejb.client.interfaces; 20 21 import java.util.HashSet ; 22 import java.util.Locale ; 23 import javax.ejb.EJBLocalObject ; 24 25 import cowsultants.itracker.ejb.client.models.*; 26 27 public interface ProjectHandler extends EJBLocalObject { 28 public static final String JNDI_NAME = "ejb/ProjectHandler"; 29 30 public ProjectModel getProject(Integer projectId); 31 public ProjectModel[] getAllProjects(); 32 public int getNumberProjects(); 33 public ProjectModel[] getAllAvailableProjects(); 34 public ProjectModel createProject(ProjectModel model); 35 public ProjectModel updateProject(ProjectModel model); 36 public boolean deleteProject(ProjectModel model); 37 38 public ComponentModel getProjectComponent(Integer componentId); 39 public ComponentModel[] getProjectComponents(Integer projectId); 40 public ComponentModel updateProjectComponent(ComponentModel model); 41 public ComponentModel addProjectComponent(Integer projectId, ComponentModel model); 42 public boolean removeProjectComponent(Integer projectId, Integer componentId); 43 44 public VersionModel getProjectVersion(Integer versionId); 45 public VersionModel[] getProjectVersions(Integer projectId); 46 public VersionModel updateProjectVersion(VersionModel model); 47 public VersionModel addProjectVersion(Integer projectId, VersionModel model); 48 public boolean removeProjectVersion(Integer projectId, Integer componentId); 49 50 public UserModel[] getProjectOwners(Integer projectId); 51 public boolean setProjectOwners(ProjectModel project, HashSet newOwners); 52 53 public CustomFieldModel[] getProjectFields(Integer projectId); 54 public CustomFieldModel[] getProjectFields(Integer projectId, Locale locale); 55 public boolean setProjectFields(ProjectModel project, HashSet newFields); 56 57 public int getTotalNumberIssuesByComponent(Integer componentId); 58 public int getTotalNumberIssuesByProject(Integer projectId); 59 public int getTotalNumberIssuesByVersion(Integer versionId); 60 } | Popular Tags |