CPD Results
The following document contains the results of PMD's CPD 6.13.0.
Duplications
File | Line |
---|---|
org/itracker/services/implementations/UserServiceImpl.java | 849 |
org/itracker/services/implementations/UserServiceImpl.java | 877 |
org/itracker/services/implementations/UserServiceImpl.java | 905 |
org/itracker/services/implementations/UserServiceImpl.java | 933 |
return authenticator.allowProfileCreation(user, authentication, authType, (reqSource == 0 ? AuthenticationConstants.REQ_SOURCE_UNKNOWN : reqSource)); } logger.error("Unable to create new authenticator."); throw new AuthenticatorException(AuthenticatorException.SYSTEM_ERROR); } catch (IllegalAccessException iae) { logger.error("Authenticator class " + authenticatorClassName + " can not be instantiated."); throw new AuthenticatorException(AuthenticatorException.SYSTEM_ERROR); } catch (InstantiationException ie) { logger.error("Authenticator class " + authenticatorClassName + " can not be instantiated."); throw new AuthenticatorException(AuthenticatorException.SYSTEM_ERROR); } catch (ClassCastException cce) { logger.error("Authenticator class " + authenticatorClassName + " does not extend the PluggableAuthenticator class."); throw new AuthenticatorException(AuthenticatorException.SYSTEM_ERROR); } } public boolean allowProfileUpdates(User user, Object authentication, int authType, int reqSource) |
File | Line |
---|---|
org/itracker/services/implementations/UserServiceImpl.java | 789 |
org/itracker/services/implementations/UserServiceImpl.java | 849 |
org/itracker/services/implementations/UserServiceImpl.java | 877 |
org/itracker/services/implementations/UserServiceImpl.java | 905 |
org/itracker/services/implementations/UserServiceImpl.java | 933 |
return authenticator.checkLogin(login, authentication, authType, (reqSource == 0 ? AuthenticationConstants.REQ_SOURCE_UNKNOWN : reqSource)); } logger.error("Unable to create new authenticator."); throw new AuthenticatorException(AuthenticatorException.SYSTEM_ERROR); } catch (IllegalAccessException iae) { logger.error("Authenticator class " + authenticatorClassName + " can not be instantiated."); throw new AuthenticatorException(AuthenticatorException.SYSTEM_ERROR); } catch (InstantiationException ie) { logger.error("Authenticator class " + authenticatorClassName + " can not be instantiated."); throw new AuthenticatorException(AuthenticatorException.SYSTEM_ERROR); } catch (ClassCastException cce) { logger.error("Authenticator class " + authenticatorClassName + " does not extend the PluggableAuthenticator class."); throw new AuthenticatorException(AuthenticatorException.SYSTEM_ERROR); } } public boolean allowRegistration(User user, Object authentication, int authType, int reqSource) |
File | Line |
---|---|
org/itracker/services/implementations/UserServiceImpl.java | 849 |
org/itracker/services/implementations/UserServiceImpl.java | 877 |
org/itracker/services/implementations/UserServiceImpl.java | 905 |
org/itracker/services/implementations/UserServiceImpl.java | 933 |
org/itracker/services/implementations/UserServiceImpl.java | 961 |
return authenticator.allowProfileCreation(user, authentication, authType, (reqSource == 0 ? AuthenticationConstants.REQ_SOURCE_UNKNOWN : reqSource)); } logger.error("Unable to create new authenticator."); throw new AuthenticatorException(AuthenticatorException.SYSTEM_ERROR); } catch (IllegalAccessException iae) { logger.error("Authenticator class " + authenticatorClassName + " can not be instantiated."); throw new AuthenticatorException(AuthenticatorException.SYSTEM_ERROR); } catch (InstantiationException ie) { logger.error("Authenticator class " + authenticatorClassName + " can not be instantiated."); throw new AuthenticatorException(AuthenticatorException.SYSTEM_ERROR); } catch (ClassCastException cce) { logger.error("Authenticator class " + authenticatorClassName + " does not extend the PluggableAuthenticator class."); throw new AuthenticatorException(AuthenticatorException.SYSTEM_ERROR); } } |
File | Line |
---|---|
org/itracker/services/implementations/UserServiceImpl.java | 789 |
org/itracker/services/implementations/UserServiceImpl.java | 961 |
return authenticator.checkLogin(login, authentication, authType, (reqSource == 0 ? AuthenticationConstants.REQ_SOURCE_UNKNOWN : reqSource)); } logger.error("Unable to create new authenticator."); throw new AuthenticatorException(AuthenticatorException.SYSTEM_ERROR); } catch (IllegalAccessException iae) { logger.error("Authenticator class " + authenticatorClassName + " can not be instantiated."); throw new AuthenticatorException(AuthenticatorException.SYSTEM_ERROR); } catch (InstantiationException ie) { logger.error("Authenticator class " + authenticatorClassName + " can not be instantiated."); throw new AuthenticatorException(AuthenticatorException.SYSTEM_ERROR); } catch (ClassCastException cce) { logger.error("Authenticator class " + authenticatorClassName + " does not extend the PluggableAuthenticator class."); throw new AuthenticatorException(AuthenticatorException.SYSTEM_ERROR); } } |
File | Line |
---|---|
org/itracker/services/UserService.java | 282 |
org/itracker/services/authentication/PluggableAuthenticator.java | 97 |
User checkLogin(String login, Object authentication, int authType, int reqSource) throws AuthenticatorException; /** * This method checks to see if the given user is allowed to self register. * * @param user a User object that contains the data the user submitted * @param authentication the user's authentication information, if known * @param authType the type of authentication information being provided * @param reqSource the source from which the request was made (eg web, api) * @return true if the user is allowed to register * @throws AuthenticatorException an exception if an error occurs */ boolean allowRegistration(User user, Object authentication, int authType, int reqSource) throws AuthenticatorException; /** * This method checks to see if a new user profile can be created within ITracker * * @param user a User object that contains the data for the new user. If null, * then the request is being made for an unknown future user. For example, * the system may request this with an null user if it needs to know if the system * should even present the option to create a new user * @param authentication the user's authentication information, if known * @param authType the type of authentication information being provided * @param reqSource the source from which the request was made (eg web, api) * @return a boolean indicating whether new user profile can be created through ITracker * @throws AuthenticatorException an exception if an error occurs */ boolean allowProfileCreation(User user, Object authentication, int authType, int reqSource) throws AuthenticatorException; /** * This method checks to see if the given user's core user profile information * can be updated locally. * * @param user a User object that contains the data the user submitted * @param authentication the user's authentication information, if known * @param authType the type of authentication information being provided * @param reqSource the source from which the request was made (eg web, api) * @return a boolean whether the user's core profile information can be updated * @throws AuthenticatorException an exception if an error occurs */ boolean allowProfileUpdates(User user, Object authentication, int authType, int reqSource) throws AuthenticatorException; /** * This method checks to see if the given user's password can be updated locally. * * @param user a User object that contains the data the user submitted * @param authentication the user's authentication information, if known * @param authType the type of authentication information being provided * @param reqSource the source from which the request was made (eg web, api) * @return a boolean whether the user's core profile information can be updated * @throws AuthenticatorException an exception if an error occurs */ boolean allowPasswordUpdates(User user, Object authentication, int authType, int reqSource) throws AuthenticatorException; /** * This method checks to see if the given user's permission information * can be updated locally. * * @param user a User object that contains the data the user submitted * @param authentication the user's authentication information, if known * @param authType the type of authentication information being provided * @param reqSource the source from which the request was made (eg web, api) * @return a boolean whether the user's core profile information can be updated * @throws AuthenticatorException an exception if an error occurs */ boolean allowPermissionUpdates(User user, Object authentication, int authType, int reqSource) throws AuthenticatorException; /** * This method checks to see if the given user's preference information * can be updated locally. * * @param user a User object that contains the data the user submitted * @param authentication the user's authentication information, if known * @param authType the type of authentication information being provided * @param reqSource the source from which the request was made (eg web, api) * @return a boolean whether the user's core profile information can be updated * @throws AuthenticatorException an exception if an error occurs */ boolean allowPreferenceUpdates(User user, Object authentication, int authType, int reqSource) throws AuthenticatorException; |