Deprecated API


Contents
Deprecated Classes
org.itracker.web.taglib.AddErrorTag
          errors should be handled by Action classes, not JSPs! 
org.itracker.web.servlets.AttachmentDownloadController
          Use org.itracker.web.actions.admin.attachment.DownloadAttachmentAction instead. 
org.itracker.web.taglib.ClearErrorsTag
          errors should be handled by Action classes, not JSPs! 
 

Deprecated Fields
org.itracker.services.util.EmailService.DEFAULT_FROM_ADDRESS
           
org.itracker.services.util.EmailService.DEFAULT_FROM_TEXT
           
org.itracker.services.util.EmailService.DEFAULT_REPLYTO_ADDRESS
           
org.itracker.services.util.EmailService.DEFAULT_SMTP_HOST
           
org.itracker.services.util.NotificationUtilities.ROLE_ANY
          use enum NotificationUtilities.Role.ANY instead 
org.itracker.services.util.NotificationUtilities.ROLE_CO
          use enum NotificationUtilities.Role.CO instead 
org.itracker.services.util.NotificationUtilities.ROLE_CONTRIBUTER
          use enum NotificationUtilities.Role.CONTRIBUTOR instead 
org.itracker.services.util.NotificationUtilities.ROLE_CREATOR
          use enum NotificationUtilities.Role.CREATOR instead 
org.itracker.services.util.NotificationUtilities.ROLE_IP
          use enum NotificationUtilities.Role.IP instead 
org.itracker.services.util.NotificationUtilities.ROLE_OWNER
          use enum NotificationUtilities.Role.OWNER instead 
org.itracker.services.util.NotificationUtilities.ROLE_PM
          use enum NotificationUtilities.Role.PM instead 
org.itracker.services.util.NotificationUtilities.ROLE_PO
          use enum NotificationUtilities.Role.PO instead 
org.itracker.services.util.NotificationUtilities.ROLE_QA
          use enum NotificationUtilities.Role.QA instead 
org.itracker.services.util.NotificationUtilities.ROLE_VO
          use enum NotificationUtilities.Role.VO instead 
org.itracker.services.util.NotificationUtilities.TYPE_ASSIGNED
          use enum NotificationUtilities.Type.ASSIGNED instead 
org.itracker.services.util.NotificationUtilities.TYPE_CLOSED
          use enum NotificationUtilities.Type.CLOSED instead 
org.itracker.services.util.NotificationUtilities.TYPE_CREATED
          use enum NotificationUtilities.Type.CREATED instead 
org.itracker.services.util.NotificationUtilities.TYPE_ISSUE_REMINDER
          use enum NotificationUtilities.Type.ISSUE_REMINDER instead 
org.itracker.services.util.NotificationUtilities.TYPE_SELF_REGISTER
          use enum NotificationUtilities.Type.SELF_REGISTER instead 
org.itracker.services.util.NotificationUtilities.TYPE_UPDATED
          use enum NotificationUtilities.Type.UPDATED instead 
 

Deprecated Methods
org.itracker.model.CustomField.addOption(String, String)
          this can not be in the entity, replace by Utility or service. 
org.itracker.web.util.AttachmentUtilities.checkFile(FormFile, ITrackerServices)
          use validate(FormFile, ITrackerServices) instead for more detailed messages 
org.itracker.persistence.dao.IssueDAO.findAll()
          don't use due to expensive memory use. 
org.itracker.model.IssueActivityType.forCode(int)
            
org.itracker.services.IssueService.getAllIssueAttachments()
            
org.itracker.services.implementations.IssueServiceImpl.getAllIssueAttachments()
          do not use this due to expensive memory use! use explicit hsqldb queries instead. 
org.itracker.services.IssueService.getAllIssues()
          Don't use due to EXPENSIVE memory use. 
org.itracker.services.implementations.IssueServiceImpl.getAllIssues()
          don't use to expensive memory use! 
org.itracker.core.resources.ITrackerResourceBundle.getContents()
            
org.itracker.services.ConfigurationService.getCustomFields(Locale)
          use CustomFieldUtilities to retrieve localization to custom fields 
org.itracker.web.actions.base.ItrackerBaseAction.getName()
          no state information is allowed in actions. use a correct pattern like request-attributes. 
org.itracker.model.Notification.getNotificationRole()
          use getRole instead 
org.itracker.model.CustomField.getOptionNameByValue(String)
          this can not be in the entity, replace by Utility or service. FIXME: Don't know, this seems not to be working. Removed use from FormatCustomFieldTag 
org.itracker.web.actions.base.ItrackerBaseAction.getPage()
          no state information is allowed in actions. use a correct pattern like request-attributes. 
org.itracker.web.actions.base.ItrackerBaseAction.getPermission()
          no state information is allowed in actions. use a correct pattern like request-attributes. 
org.itracker.services.ProjectService.getProjectStats(Integer)
          count open/closed issues with new methods: getTotalNumberOpenIssuesByProject, getTotalNumberResolvedIssuesByProject 
org.itracker.services.util.NotificationUtilities.getRoleName(int)
            
org.itracker.services.util.NotificationUtilities.getRoleName(int, Locale)
            
org.itracker.services.util.NotificationUtilities.getRoleNames()
          prefer direct use of Role enumeration 
org.itracker.services.util.NotificationUtilities.getTypeName(int)
            
org.itracker.services.util.NotificationUtilities.getTypeName(int, Locale)
            
org.itracker.services.implementations.UserServiceImpl.getUsersMapOfProjectIdsAndSetOfPermissionTypes(User, int)
           
org.itracker.model.IssueField.getValue(ResourceBundle)
          this can not be in the entity, replace by Utility or service. 
org.itracker.model.IssueField.getValue(ResourceBundle, Locale)
          use getValue(ResourceBundle bundle) instead, locale is taken from bundle 
org.itracker.web.ptos.ProjectScriptPTO.getVO()
           
org.itracker.web.actions.base.ItrackerBaseAction.isLoggedIn(HttpServletRequest, HttpServletResponse)
          move to LoginUtilities - no need for actions to check for user being logged in. 
org.itracker.services.implementations.ReportServiceImpl.outputCSV(HttpServletRequest, HttpServletResponse, ActionMapping)
          needs to be moved to static method in a new web-report-utility class 
org.itracker.services.implementations.ReportServiceImpl.outputHTML(HttpServletRequest, HttpServletResponse, ActionMapping)
          needs to be moved to static method in a new web-report-utility class 
org.itracker.services.ReportService.outputPDF(List, Report, Locale, String, HttpSession, HttpServletRequest, HttpServletResponse, ActionMapping)
          needs to be moved to static method in a new web-report-utility class 
org.itracker.services.implementations.ReportServiceImpl.outputPDF(List, Report, Locale, String, HttpSession, HttpServletRequest, HttpServletResponse, ActionMapping)
          needs to be moved to static method in a new web-report-utility class 
org.itracker.services.implementations.ReportServiceImpl.outputXLS(HttpServletRequest, HttpServletResponse, ActionMapping)
          needs to be moved to static method in a new web-report-utility class 
org.itracker.services.util.EmailService.sendEmail(HashSet, String, String)
          use method with InetAddress[] addresses instead. 
org.itracker.core.resources.ITrackerResourceBundle.setContents(List)
          should be private 
org.itracker.web.actions.base.ItrackerBaseAction.setName(String)
          no state information is allowed in actions. use a correct pattern like request-attributes. 
org.itracker.model.Notification.setNotificationRole(int)
            
org.itracker.web.actions.base.ItrackerBaseAction.setPage(String)
          no state information is allowed in actions. use a correct pattern like request-attributes. 
org.itracker.web.actions.base.ItrackerBaseAction.setPermission(int)
          no state information is allowed in actions. use a correct pattern like request-attributes. 
org.itracker.model.IssueField.setValue(String, Locale, ResourceBundle)
          locale is redundant set, in bundle and as separate parameter. use IssueField.setValue(String, ResourceBundle) instead 
 

Deprecated Constructors
org.itracker.model.CustomField(String, CustomField.Type)
           
org.itracker.core.resources.ITrackerResourceBundle(Locale, Object[][])
          used still for testing 
org.itracker.model.Notification(User, Issue, int)
          use Role instead int for role 
org.itracker.services.implementations.UserServiceImpl(ConfigurationService, ProjectService, UserDAO, ProjectDAO, ReportDAO, PermissionDAO, UserPreferencesDAO)
          use constructor without projectDA= und reportDAO instead 
 



Copyright © 2002-2012 itracker. All Rights Reserved.