public class OAuthApplicationLocalServiceUtil
extends java.lang.Object
com.liferay.oauth.service.impl.OAuthApplicationLocalServiceImpl 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.OAuthApplicationLocalService| Constructor and Description |
|---|
OAuthApplicationLocalServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static OAuthApplication |
addOAuthApplication(long userId,
java.lang.String name,
java.lang.String description,
int accessLevel,
boolean shareableAccessToken,
java.lang.String callbackURI,
java.lang.String websiteURL,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Athanasius (7.3.x), replaced by
#addOAuthApplication(long, String, String, String, int
boolean, String, String, ServiceContext) |
static OAuthApplication |
addOAuthApplication(long userId,
java.lang.String name,
java.lang.String description,
java.lang.String token,
int accessLevel,
boolean shareableAccessToken,
java.lang.String callbackURI,
java.lang.String websiteURL,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static OAuthApplication |
addOAuthApplication(OAuthApplication oAuthApplication)
Adds the o auth application to the database.
|
static OAuthApplication |
createOAuthApplication(long oAuthApplicationId)
Creates a new o auth application with the primary key.
|
static com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
static void |
deleteLogo(long oAuthApplicationId) |
static OAuthApplication |
deleteOAuthApplication(long oAuthApplicationId)
Deletes the o auth application with the primary key from the database.
|
static OAuthApplication |
deleteOAuthApplication(OAuthApplication oAuthApplication)
Deletes the o auth application from the database.
|
static com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
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 OAuthApplication |
fetchOAuthApplication(long oAuthApplicationId) |
static OAuthApplication |
fetchOAuthApplication(java.lang.String consumerKey) |
static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static OAuthApplication |
getOAuthApplication(long oAuthApplicationId)
Returns the o auth application with the primary key.
|
static OAuthApplication |
getOAuthApplication(java.lang.String consumerKey) |
static java.util.List<OAuthApplication> |
getOAuthApplications(int start,
int end)
Returns a range of all the o auth applications.
|
static java.util.List<OAuthApplication> |
getOAuthApplications(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator) |
static int |
getOAuthApplicationsCount()
Returns the number of o auth applications.
|
static int |
getOAuthApplicationsCount(long companyId) |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
static OAuthApplicationLocalService |
getService() |
static java.util.List<OAuthApplication> |
search(long companyId,
java.lang.String keywords,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator) |
static int |
searchCount(long companyId,
java.lang.String keywords,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params) |
static OAuthApplication |
updateLogo(long oAuthApplicationId,
java.io.InputStream inputStream) |
static OAuthApplication |
updateOAuthApplication(long oAuthApplicationId,
java.lang.String name,
java.lang.String description,
boolean shareableAccessToken,
java.lang.String callbackURI,
java.lang.String websiteURL,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static OAuthApplication |
updateOAuthApplication(OAuthApplication oAuthApplication)
Updates the o auth application in the database or adds it if it does not yet exist.
|
@Deprecated public static OAuthApplication addOAuthApplication(long userId, java.lang.String name, java.lang.String description, int accessLevel, boolean shareableAccessToken, java.lang.String callbackURI, java.lang.String websiteURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
#addOAuthApplication(long, String, String, String, int
boolean, String, String, ServiceContext)com.liferay.portal.kernel.exception.PortalExceptionpublic static OAuthApplication addOAuthApplication(long userId, java.lang.String name, java.lang.String description, java.lang.String token, int accessLevel, boolean shareableAccessToken, java.lang.String callbackURI, java.lang.String websiteURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static OAuthApplication addOAuthApplication(OAuthApplication oAuthApplication)
Important: Inspect OAuthApplicationLocalServiceImpl 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.
oAuthApplication - the o auth applicationpublic static OAuthApplication createOAuthApplication(long oAuthApplicationId)
oAuthApplicationId - the primary key for the new o auth applicationpublic static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static void deleteLogo(long oAuthApplicationId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static OAuthApplication deleteOAuthApplication(long oAuthApplicationId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect OAuthApplicationLocalServiceImpl 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.
oAuthApplicationId - the primary key of the o auth applicationcom.liferay.portal.kernel.exception.PortalException - if a o auth application with the primary key could not be foundpublic static OAuthApplication deleteOAuthApplication(OAuthApplication oAuthApplication) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect OAuthApplicationLocalServiceImpl 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.
oAuthApplication - the o auth applicationcom.liferay.portal.kernel.exception.PortalExceptionpublic 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.PortalExceptionpublic 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.oauth.model.impl.OAuthApplicationModelImpl.
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.oauth.model.impl.OAuthApplicationModelImpl.
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 OAuthApplication fetchOAuthApplication(long oAuthApplicationId)
public static OAuthApplication fetchOAuthApplication(java.lang.String consumerKey)
public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static OAuthApplication getOAuthApplication(long oAuthApplicationId) throws com.liferay.portal.kernel.exception.PortalException
oAuthApplicationId - the primary key of the o auth applicationcom.liferay.portal.kernel.exception.PortalException - if a o auth application with the primary key could not be foundpublic static OAuthApplication getOAuthApplication(java.lang.String consumerKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static java.util.List<OAuthApplication> getOAuthApplications(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.oauth.model.impl.OAuthApplicationModelImpl.
start - the lower bound of the range of o auth applicationsend - the upper bound of the range of o auth applications (not inclusive)public static java.util.List<OAuthApplication> getOAuthApplications(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
public static int getOAuthApplicationsCount()
public static int getOAuthApplicationsCount(long companyId)
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.PortalExceptionpublic static java.util.List<OAuthApplication> search(long companyId, java.lang.String keywords, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuthApplication> orderByComparator)
public static int searchCount(long companyId,
java.lang.String keywords,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
public static OAuthApplication updateLogo(long oAuthApplicationId, java.io.InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static OAuthApplication updateOAuthApplication(long oAuthApplicationId, java.lang.String name, java.lang.String description, boolean shareableAccessToken, java.lang.String callbackURI, java.lang.String websiteURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static OAuthApplication updateOAuthApplication(OAuthApplication oAuthApplication)
Important: Inspect OAuthApplicationLocalServiceImpl 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.
oAuthApplication - the o auth applicationpublic static OAuthApplicationLocalService getService()