public class SharepointOAuth2TokenEntryLocalServiceUtil
extends java.lang.Object
com.liferay.sharepoint.rest.oauth2.service.impl.SharepointOAuth2TokenEntryLocalServiceImpl
and
is an access point for service operations in application layer code running
on the local server. 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.SharepointOAuth2TokenEntryLocalService
Constructor and Description |
---|
SharepointOAuth2TokenEntryLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static SharepointOAuth2TokenEntry |
addSharepointOAuth2TokenEntry(long userId,
java.lang.String configurationPid,
java.lang.String accessToken,
java.lang.String refreshToken,
java.util.Date expirationDate) |
static SharepointOAuth2TokenEntry |
addSharepointOAuth2TokenEntry(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry)
Adds the sharepoint o auth2 token entry to the database.
|
static com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
static SharepointOAuth2TokenEntry |
createSharepointOAuth2TokenEntry(long sharepointOAuth2TokenEntryId)
Creates a new sharepoint o auth2 token entry with the primary key.
|
static com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
static SharepointOAuth2TokenEntry |
deleteSharepointOAuth2TokenEntry(long sharepointOAuth2TokenEntryId)
Deletes the sharepoint o auth2 token entry with the primary key from the database.
|
static void |
deleteSharepointOAuth2TokenEntry(long userId,
java.lang.String configurationPid) |
static SharepointOAuth2TokenEntry |
deleteSharepointOAuth2TokenEntry(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry)
Deletes the sharepoint o auth2 token entry from the database.
|
static void |
deleteUserSharepointOAuth2TokenEntries(long userId) |
static <T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
static int |
dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
static com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
static long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
static long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
static SharepointOAuth2TokenEntry |
fetchSharepointOAuth2TokenEntry(long sharepointOAuth2TokenEntryId) |
static SharepointOAuth2TokenEntry |
fetchSharepointOAuth2TokenEntry(long userId,
java.lang.String configurationPid) |
static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
static SharepointOAuth2TokenEntryLocalService |
getService() |
static java.util.List<SharepointOAuth2TokenEntry> |
getSharepointOAuth2TokenEntries(int start,
int end)
Returns a range of all the sharepoint o auth2 token entries.
|
static int |
getSharepointOAuth2TokenEntriesCount()
Returns the number of sharepoint o auth2 token entries.
|
static SharepointOAuth2TokenEntry |
getSharepointOAuth2TokenEntry(long sharepointOAuth2TokenEntryId)
Returns the sharepoint o auth2 token entry with the primary key.
|
static SharepointOAuth2TokenEntry |
getSharepointOAuth2TokenEntry(long userId,
java.lang.String configurationPid) |
static int |
getUserSharepointOAuth2TokenEntriesCount(long userId) |
static SharepointOAuth2TokenEntry |
updateSharepointOAuth2TokenEntry(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry)
Updates the sharepoint o auth2 token entry in the database or adds it if it does not yet exist.
|
public SharepointOAuth2TokenEntryLocalServiceUtil()
public static SharepointOAuth2TokenEntry addSharepointOAuth2TokenEntry(long userId, java.lang.String configurationPid, java.lang.String accessToken, java.lang.String refreshToken, java.util.Date expirationDate) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SharepointOAuth2TokenEntry addSharepointOAuth2TokenEntry(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry)
Important: Inspect SharepointOAuth2TokenEntryLocalServiceImpl 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.
sharepointOAuth2TokenEntry
- the sharepoint o auth2 token entrypublic static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SharepointOAuth2TokenEntry createSharepointOAuth2TokenEntry(long sharepointOAuth2TokenEntryId)
sharepointOAuth2TokenEntryId
- the primary key for the new sharepoint o auth2 token entrypublic static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SharepointOAuth2TokenEntry deleteSharepointOAuth2TokenEntry(long sharepointOAuth2TokenEntryId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect SharepointOAuth2TokenEntryLocalServiceImpl 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.
sharepointOAuth2TokenEntryId
- the primary key of the sharepoint o auth2 token entrycom.liferay.portal.kernel.exception.PortalException
- if a sharepoint o auth2 token entry with the primary key could not be foundpublic static void deleteSharepointOAuth2TokenEntry(long userId, java.lang.String configurationPid) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SharepointOAuth2TokenEntry deleteSharepointOAuth2TokenEntry(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry)
Important: Inspect SharepointOAuth2TokenEntryLocalServiceImpl 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.
sharepointOAuth2TokenEntry
- the sharepoint o auth2 token entrypublic static void deleteUserSharepointOAuth2TokenEntries(long userId)
public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
public static int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
public static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.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.sharepoint.rest.oauth2.model.impl.SharepointOAuth2TokenEntryModelImpl
.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.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.sharepoint.rest.oauth2.model.impl.SharepointOAuth2TokenEntryModelImpl
.
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
)public static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic static SharepointOAuth2TokenEntry fetchSharepointOAuth2TokenEntry(long sharepointOAuth2TokenEntryId)
public static SharepointOAuth2TokenEntry fetchSharepointOAuth2TokenEntry(long userId, java.lang.String configurationPid)
public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static java.lang.String getOSGiServiceIdentifier()
public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<SharepointOAuth2TokenEntry> getSharepointOAuth2TokenEntries(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.sharepoint.rest.oauth2.model.impl.SharepointOAuth2TokenEntryModelImpl
.
start
- the lower bound of the range of sharepoint o auth2 token entriesend
- the upper bound of the range of sharepoint o auth2 token entries (not inclusive)public static int getSharepointOAuth2TokenEntriesCount()
public static SharepointOAuth2TokenEntry getSharepointOAuth2TokenEntry(long sharepointOAuth2TokenEntryId) throws com.liferay.portal.kernel.exception.PortalException
sharepointOAuth2TokenEntryId
- the primary key of the sharepoint o auth2 token entrycom.liferay.portal.kernel.exception.PortalException
- if a sharepoint o auth2 token entry with the primary key could not be foundpublic static SharepointOAuth2TokenEntry getSharepointOAuth2TokenEntry(long userId, java.lang.String configurationPid) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getUserSharepointOAuth2TokenEntriesCount(long userId)
public static SharepointOAuth2TokenEntry updateSharepointOAuth2TokenEntry(SharepointOAuth2TokenEntry sharepointOAuth2TokenEntry)
Important: Inspect SharepointOAuth2TokenEntryLocalServiceImpl 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.
sharepointOAuth2TokenEntry
- the sharepoint o auth2 token entrypublic static SharepointOAuth2TokenEntryLocalService getService()