@ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface RememberMeTokenLocalService extends BaseLocalService, PersistedModelLocalService
RememberMeTokenLocalServiceUtil| Modifier and Type | Method and Description |
|---|---|
RememberMeToken |
addRememberMeToken(long companyId,
long userId,
Date expirationDate,
Consumer<String> valueConsumer) |
RememberMeToken |
addRememberMeToken(RememberMeToken rememberMeToken)
Adds the remember me token to the database.
|
PersistedModel |
createPersistedModel(Serializable primaryKeyObj) |
RememberMeToken |
createRememberMeToken(long rememberMeTokenId)
Creates a new remember me token with the primary key.
|
void |
deleteExpiredRememberMeTokens(Date expirationDate) |
void |
deleteExpiredRememberMeTokens(long userId) |
PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
RememberMeToken |
deleteRememberMeToken(long rememberMeTokenId)
Deletes the remember me token with the primary key from the database.
|
RememberMeToken |
deleteRememberMeToken(RememberMeToken rememberMeToken)
Deletes the remember me token from the database.
|
<T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
int |
dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
DynamicQuery |
dynamicQuery() |
<T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows matching the dynamic query.
|
RememberMeToken |
fetchRememberMeToken(long rememberMeTokenId) |
RememberMeToken |
fetchRememberMeToken(long rememberMeTokenId,
String value) |
ActionableDynamicQuery |
getActionableDynamicQuery() |
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
RememberMeToken |
getRememberMeToken(long rememberMeTokenId)
Returns the remember me token with the primary key.
|
List<RememberMeToken> |
getRememberMeTokens(int start,
int end)
Returns a range of all the remember me tokens.
|
int |
getRememberMeTokensCount()
Returns the number of remember me tokens.
|
RememberMeToken |
updateRememberMeToken(RememberMeToken rememberMeToken)
Updates the remember me token in the database or adds it if it does not yet exist.
|
fetchPersistedModel, getBasePersistenceRememberMeToken addRememberMeToken(long companyId, long userId, Date expirationDate, Consumer<String> valueConsumer) throws PwdEncryptorException
PwdEncryptorException@Indexable(type=REINDEX) RememberMeToken addRememberMeToken(RememberMeToken rememberMeToken)
Important: Inspect RememberMeTokenLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
rememberMeToken - the remember me tokenPersistedModel createPersistedModel(Serializable primaryKeyObj) throws PortalException
createPersistedModel in interface PersistedModelLocalServicePortalException@Transactional(enabled=false) RememberMeToken createRememberMeToken(long rememberMeTokenId)
rememberMeTokenId - the primary key for the new remember me tokenvoid deleteExpiredRememberMeTokens(Date expirationDate)
void deleteExpiredRememberMeTokens(long userId)
PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel in interface PersistedModelLocalServicePortalException@Indexable(type=DELETE) RememberMeToken deleteRememberMeToken(long rememberMeTokenId) throws PortalException
Important: Inspect RememberMeTokenLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
rememberMeTokenId - the primary key of the remember me tokenPortalException - if a remember me token with the primary key could not be found@Indexable(type=DELETE) RememberMeToken deleteRememberMeToken(RememberMeToken rememberMeToken)
Important: Inspect RememberMeTokenLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
rememberMeToken - the remember me token@Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery in interface PersistedModelLocalService@Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount in interface PersistedModelLocalService@Transactional(propagation=SUPPORTS, readOnly=true) DynamicQuery dynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.RememberMeTokenModelImpl.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.RememberMeTokenModelImpl.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery - the dynamic queryprojection - the projection to apply to the query@Transactional(propagation=SUPPORTS, readOnly=true) RememberMeToken fetchRememberMeToken(long rememberMeTokenId)
@Transactional(propagation=SUPPORTS, readOnly=true) RememberMeToken fetchRememberMeToken(long rememberMeTokenId, String value) throws PwdEncryptorException
PwdEncryptorException@Transactional(propagation=SUPPORTS, readOnly=true) ActionableDynamicQuery getActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
getPersistedModel in interface PersistedModelLocalServicePortalException@Transactional(propagation=SUPPORTS, readOnly=true) RememberMeToken getRememberMeToken(long rememberMeTokenId) throws PortalException
rememberMeTokenId - the primary key of the remember me tokenPortalException - if a remember me token with the primary key could not be found@Transactional(propagation=SUPPORTS, readOnly=true) List<RememberMeToken> getRememberMeTokens(int start, int end)
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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.RememberMeTokenModelImpl.
start - the lower bound of the range of remember me tokensend - the upper bound of the range of remember me tokens (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) int getRememberMeTokensCount()
@Indexable(type=REINDEX) RememberMeToken updateRememberMeToken(RememberMeToken rememberMeToken)
Important: Inspect RememberMeTokenLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
rememberMeToken - the remember me token