Liferay 6.0.5

com.liferay.portal.service
Class PasswordTrackerLocalServiceUtil

java.lang.Object
  extended by com.liferay.portal.service.PasswordTrackerLocalServiceUtil

public class PasswordTrackerLocalServiceUtil
extends Object

The utility for the password tracker local service. This utility wraps PasswordTrackerLocalServiceImpl and is the primary access point for service operations in application layer code running on the local server.

Never modify this class directly. Add custom service methods to PasswordTrackerLocalServiceImpl and rerun ServiceBuilder to regenerate this class.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

See Also:
PasswordTrackerLocalService, PasswordTrackerLocalServiceBaseImpl, PasswordTrackerLocalServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
PasswordTrackerLocalServiceUtil()
           
 
Method Summary
static PasswordTracker addPasswordTracker(PasswordTracker passwordTracker)
          Adds the password tracker to the database.
static PasswordTracker createPasswordTracker(long passwordTrackerId)
          Creates a new password tracker with the primary key.
static void deletePasswordTracker(long passwordTrackerId)
          Deletes the password tracker with the primary key from the database.
static void deletePasswordTracker(PasswordTracker passwordTracker)
          Deletes the password tracker from the database.
static void deletePasswordTrackers(long userId)
           
static List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
static long dynamicQueryCount(DynamicQuery dynamicQuery)
          Counts the number of rows that match the dynamic query.
static PasswordTracker getPasswordTracker(long passwordTrackerId)
          Gets the password tracker with the primary key.
static List<PasswordTracker> getPasswordTrackers(int start, int end)
          Gets a range of all the password trackers.
static int getPasswordTrackersCount()
          Gets the number of password trackers.
static PasswordTrackerLocalService getService()
           
static boolean isSameAsCurrentPassword(long userId, String newClearTextPwd)
           
static boolean isValidPassword(long userId, String newClearTextPwd)
           
 void setService(PasswordTrackerLocalService service)
           
static void trackPassword(long userId, String encPassword)
           
static PasswordTracker updatePasswordTracker(PasswordTracker passwordTracker)
          Updates the password tracker in the database.
static PasswordTracker updatePasswordTracker(PasswordTracker passwordTracker, boolean merge)
          Updates the password tracker in the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordTrackerLocalServiceUtil

public PasswordTrackerLocalServiceUtil()
Method Detail

addPasswordTracker

public static PasswordTracker addPasswordTracker(PasswordTracker passwordTracker)
                                          throws SystemException
Adds the password tracker to the database. Also notifies the appropriate model listeners.

Parameters:
passwordTracker - the password tracker to add
Returns:
the password tracker that was added
Throws:
SystemException - if a system exception occurred

createPasswordTracker

public static PasswordTracker createPasswordTracker(long passwordTrackerId)
Creates a new password tracker with the primary key. Does not add the password tracker to the database.

Parameters:
passwordTrackerId - the primary key for the new password tracker
Returns:
the new password tracker

deletePasswordTracker

public static void deletePasswordTracker(long passwordTrackerId)
                                  throws PortalException,
                                         SystemException
Deletes the password tracker with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
passwordTrackerId - the primary key of the password tracker to delete
Throws:
PortalException - if a password tracker with the primary key could not be found
SystemException - if a system exception occurred

deletePasswordTracker

public static void deletePasswordTracker(PasswordTracker passwordTracker)
                                  throws SystemException
Deletes the password tracker from the database. Also notifies the appropriate model listeners.

Parameters:
passwordTracker - the password tracker to delete
Throws:
SystemException - if a system exception occurred

dynamicQuery

public static List dynamicQuery(DynamicQuery dynamicQuery)
                         throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public static List dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end)
                         throws SystemException
Performs a dynamic query on the database and returns a range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public static List dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                         throws SystemException
Performs a dynamic query on the database and returns an ordered range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery)
                              throws SystemException
Counts the number of rows that match the dynamic query.

Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

getPasswordTracker

public static PasswordTracker getPasswordTracker(long passwordTrackerId)
                                          throws PortalException,
                                                 SystemException
Gets the password tracker with the primary key.

Parameters:
passwordTrackerId - the primary key of the password tracker to get
Returns:
the password tracker
Throws:
PortalException - if a password tracker with the primary key could not be found
SystemException - if a system exception occurred

getPasswordTrackers

public static List<PasswordTracker> getPasswordTrackers(int start,
                                                        int end)
                                                 throws SystemException
Gets a range of all the password trackers.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of password trackers to return
end - the upper bound of the range of password trackers to return (not inclusive)
Returns:
the range of password trackers
Throws:
SystemException - if a system exception occurred

getPasswordTrackersCount

public static int getPasswordTrackersCount()
                                    throws SystemException
Gets the number of password trackers.

Returns:
the number of password trackers
Throws:
SystemException - if a system exception occurred

updatePasswordTracker

public static PasswordTracker updatePasswordTracker(PasswordTracker passwordTracker)
                                             throws SystemException
Updates the password tracker in the database. Also notifies the appropriate model listeners.

Parameters:
passwordTracker - the password tracker to update
Returns:
the password tracker that was updated
Throws:
SystemException - if a system exception occurred

updatePasswordTracker

public static PasswordTracker updatePasswordTracker(PasswordTracker passwordTracker,
                                                    boolean merge)
                                             throws SystemException
Updates the password tracker in the database. Also notifies the appropriate model listeners.

Parameters:
passwordTracker - the password tracker to update
merge - whether to merge the password tracker with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the password tracker that was updated
Throws:
SystemException - if a system exception occurred

deletePasswordTrackers

public static void deletePasswordTrackers(long userId)
                                   throws SystemException
Throws:
SystemException

isSameAsCurrentPassword

public static boolean isSameAsCurrentPassword(long userId,
                                              String newClearTextPwd)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

isValidPassword

public static boolean isValidPassword(long userId,
                                      String newClearTextPwd)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

trackPassword

public static void trackPassword(long userId,
                                 String encPassword)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getService

public static PasswordTrackerLocalService getService()

setService

public void setService(PasswordTrackerLocalService service)

Liferay 6.0.5