Skip to content

Commit

Permalink
LPS-96802 Regenerate service
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-savinov authored and stian-sigvartsen committed Jun 17, 2019
1 parent a68147a commit ec2434c
Show file tree
Hide file tree
Showing 8 changed files with 1,616 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,9 @@ public OAuth2Application getOAuth2Application(
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int getOAuth2ApplicationsCount();

@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int getOAuth2ApplicationsCount(long companyId, String name);

/**
* Returns the OSGi service identifier.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,10 @@ public static int getOAuth2ApplicationsCount() {
return getService().getOAuth2ApplicationsCount();
}

public static int getOAuth2ApplicationsCount(long companyId, String name) {
return getService().getOAuth2ApplicationsCount(companyId, name);
}

/**
* Returns the OSGi service identifier.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,12 @@ public int getOAuth2ApplicationsCount() {
return _oAuth2ApplicationLocalService.getOAuth2ApplicationsCount();
}

@Override
public int getOAuth2ApplicationsCount(long companyId, String name) {
return _oAuth2ApplicationLocalService.getOAuth2ApplicationsCount(
companyId, name);
}

/**
* Returns the OSGi service identifier.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,231 @@ public OAuth2Application removeByC_C(long companyId, String clientId)
*/
public int countByC_C(long companyId, String clientId);

/**
* Returns all the o auth2 applications where companyId = ? and name = ?.
*
* @param companyId the company ID
* @param name the name
* @return the matching o auth2 applications
*/
public java.util.List<OAuth2Application> findByC_N(
long companyId, String name);

/**
* Returns a range of all the o auth2 applications where companyId = &#63; and name = &#63;.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to <code>QueryUtil#ALL_POS</code> will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not <code>QueryUtil#ALL_POS</code>), then the query will include the default ORDER BY logic from <code>OAuth2ApplicationModelImpl</code>. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param companyId the company ID
* @param name the name
* @param start the lower bound of the range of o auth2 applications
* @param end the upper bound of the range of o auth2 applications (not inclusive)
* @return the range of matching o auth2 applications
*/
public java.util.List<OAuth2Application> findByC_N(
long companyId, String name, int start, int end);

/**
* Returns an ordered range of all the o auth2 applications where companyId = &#63; and name = &#63;.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to <code>QueryUtil#ALL_POS</code> will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not <code>QueryUtil#ALL_POS</code>), then the query will include the default ORDER BY logic from <code>OAuth2ApplicationModelImpl</code>. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param companyId the company ID
* @param name the name
* @param start the lower bound of the range of o auth2 applications
* @param end the upper bound of the range of o auth2 applications (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching o auth2 applications
*/
public java.util.List<OAuth2Application> findByC_N(
long companyId, String name, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application>
orderByComparator);

/**
* Returns an ordered range of all the o auth2 applications where companyId = &#63; and name = &#63;.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to <code>QueryUtil#ALL_POS</code> will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not <code>QueryUtil#ALL_POS</code>), then the query will include the default ORDER BY logic from <code>OAuth2ApplicationModelImpl</code>. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param companyId the company ID
* @param name the name
* @param start the lower bound of the range of o auth2 applications
* @param end the upper bound of the range of o auth2 applications (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of matching o auth2 applications
*/
public java.util.List<OAuth2Application> findByC_N(
long companyId, String name, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application>
orderByComparator,
boolean retrieveFromCache);

/**
* Returns the first o auth2 application in the ordered set where companyId = &#63; and name = &#63;.
*
* @param companyId the company ID
* @param name the name
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching o auth2 application
* @throws NoSuchOAuth2ApplicationException if a matching o auth2 application could not be found
*/
public OAuth2Application findByC_N_First(
long companyId, String name,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application>
orderByComparator)
throws NoSuchOAuth2ApplicationException;

/**
* Returns the first o auth2 application in the ordered set where companyId = &#63; and name = &#63;.
*
* @param companyId the company ID
* @param name the name
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching o auth2 application, or <code>null</code> if a matching o auth2 application could not be found
*/
public OAuth2Application fetchByC_N_First(
long companyId, String name,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application>
orderByComparator);

/**
* Returns the last o auth2 application in the ordered set where companyId = &#63; and name = &#63;.
*
* @param companyId the company ID
* @param name the name
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching o auth2 application
* @throws NoSuchOAuth2ApplicationException if a matching o auth2 application could not be found
*/
public OAuth2Application findByC_N_Last(
long companyId, String name,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application>
orderByComparator)
throws NoSuchOAuth2ApplicationException;

/**
* Returns the last o auth2 application in the ordered set where companyId = &#63; and name = &#63;.
*
* @param companyId the company ID
* @param name the name
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching o auth2 application, or <code>null</code> if a matching o auth2 application could not be found
*/
public OAuth2Application fetchByC_N_Last(
long companyId, String name,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application>
orderByComparator);

/**
* Returns the o auth2 applications before and after the current o auth2 application in the ordered set where companyId = &#63; and name = &#63;.
*
* @param oAuth2ApplicationId the primary key of the current o auth2 application
* @param companyId the company ID
* @param name the name
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next o auth2 application
* @throws NoSuchOAuth2ApplicationException if a o auth2 application with the primary key could not be found
*/
public OAuth2Application[] findByC_N_PrevAndNext(
long oAuth2ApplicationId, long companyId, String name,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application>
orderByComparator)
throws NoSuchOAuth2ApplicationException;

/**
* Returns all the o auth2 applications that the user has permission to view where companyId = &#63; and name = &#63;.
*
* @param companyId the company ID
* @param name the name
* @return the matching o auth2 applications that the user has permission to view
*/
public java.util.List<OAuth2Application> filterFindByC_N(
long companyId, String name);

/**
* Returns a range of all the o auth2 applications that the user has permission to view where companyId = &#63; and name = &#63;.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to <code>QueryUtil#ALL_POS</code> will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not <code>QueryUtil#ALL_POS</code>), then the query will include the default ORDER BY logic from <code>OAuth2ApplicationModelImpl</code>. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param companyId the company ID
* @param name the name
* @param start the lower bound of the range of o auth2 applications
* @param end the upper bound of the range of o auth2 applications (not inclusive)
* @return the range of matching o auth2 applications that the user has permission to view
*/
public java.util.List<OAuth2Application> filterFindByC_N(
long companyId, String name, int start, int end);

/**
* Returns an ordered range of all the o auth2 applications that the user has permissions to view where companyId = &#63; and name = &#63;.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to <code>QueryUtil#ALL_POS</code> will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not <code>QueryUtil#ALL_POS</code>), then the query will include the default ORDER BY logic from <code>OAuth2ApplicationModelImpl</code>. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param companyId the company ID
* @param name the name
* @param start the lower bound of the range of o auth2 applications
* @param end the upper bound of the range of o auth2 applications (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching o auth2 applications that the user has permission to view
*/
public java.util.List<OAuth2Application> filterFindByC_N(
long companyId, String name, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application>
orderByComparator);

/**
* Returns the o auth2 applications before and after the current o auth2 application in the ordered set of o auth2 applications that the user has permission to view where companyId = &#63; and name = &#63;.
*
* @param oAuth2ApplicationId the primary key of the current o auth2 application
* @param companyId the company ID
* @param name the name
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next o auth2 application
* @throws NoSuchOAuth2ApplicationException if a o auth2 application with the primary key could not be found
*/
public OAuth2Application[] filterFindByC_N_PrevAndNext(
long oAuth2ApplicationId, long companyId, String name,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Application>
orderByComparator)
throws NoSuchOAuth2ApplicationException;

/**
* Removes all the o auth2 applications where companyId = &#63; and name = &#63; from the database.
*
* @param companyId the company ID
* @param name the name
*/
public void removeByC_N(long companyId, String name);

/**
* Returns the number of o auth2 applications where companyId = &#63; and name = &#63;.
*
* @param companyId the company ID
* @param name the name
* @return the number of matching o auth2 applications
*/
public int countByC_N(long companyId, String name);

/**
* Returns the number of o auth2 applications that the user has permission to view where companyId = &#63; and name = &#63;.
*
* @param companyId the company ID
* @param name the name
* @return the number of matching o auth2 applications that the user has permission to view
*/
public int filterCountByC_N(long companyId, String name);

/**
* Caches the o auth2 application in the entity cache if it is enabled.
*
Expand Down
Loading

0 comments on commit ec2434c

Please sign in to comment.