Skip to content

Commit

Permalink
LPS-107130 Regenerate service
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-savinov committed Jan 15, 2020
1 parent b2e0bd6 commit ad023d8
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,44 @@ public static com.liferay.portal.kernel.model.Repository getRepository(
}
}

public static com.liferay.portal.kernel.model.Repository getRepository(
HttpPrincipal httpPrincipal, long groupId, String portletId)
throws com.liferay.portal.kernel.exception.PortalException {

try {
MethodKey methodKey = new MethodKey(
RepositoryServiceUtil.class, "getRepository",
_getRepositoryParameterTypes4);

MethodHandler methodHandler = new MethodHandler(
methodKey, groupId, portletId);

Object returnObj = null;

try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof
com.liferay.portal.kernel.exception.PortalException) {

throw (com.liferay.portal.kernel.exception.PortalException)
e;
}

throw new com.liferay.portal.kernel.exception.SystemException(
e);
}

return (com.liferay.portal.kernel.model.Repository)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);

throw se;
}
}

public static com.liferay.portal.kernel.util.UnicodeProperties
getTypeSettingsProperties(
HttpPrincipal httpPrincipal, long repositoryId)
Expand All @@ -209,7 +247,7 @@ public static com.liferay.portal.kernel.model.Repository getRepository(
try {
MethodKey methodKey = new MethodKey(
RepositoryServiceUtil.class, "getTypeSettingsProperties",
_getTypeSettingsPropertiesParameterTypes4);
_getTypeSettingsPropertiesParameterTypes5);

MethodHandler methodHandler = new MethodHandler(
methodKey, repositoryId);
Expand Down Expand Up @@ -248,7 +286,7 @@ public static void updateRepository(
try {
MethodKey methodKey = new MethodKey(
RepositoryServiceUtil.class, "updateRepository",
_updateRepositoryParameterTypes5);
_updateRepositoryParameterTypes6);

MethodHandler methodHandler = new MethodHandler(
methodKey, repositoryId, name, description);
Expand Down Expand Up @@ -291,9 +329,11 @@ public static void updateRepository(
new Class[] {long.class};
private static final Class<?>[] _getRepositoryParameterTypes3 =
new Class[] {long.class};
private static final Class<?>[] _getTypeSettingsPropertiesParameterTypes4 =
private static final Class<?>[] _getRepositoryParameterTypes4 =
new Class[] {long.class, String.class};
private static final Class<?>[] _getTypeSettingsPropertiesParameterTypes5 =
new Class[] {long.class};
private static final Class<?>[] _updateRepositoryParameterTypes5 =
private static final Class<?>[] _updateRepositoryParameterTypes6 =
new Class[] {long.class, String.class, String.class};

}
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,24 @@ public static com.liferay.portal.kernel.model.RepositorySoap getRepository(
}
}

public static com.liferay.portal.kernel.model.RepositorySoap getRepository(
long groupId, String portletId)
throws RemoteException {

try {
com.liferay.portal.kernel.model.Repository returnValue =
RepositoryServiceUtil.getRepository(groupId, portletId);

return com.liferay.portal.kernel.model.RepositorySoap.toSoapModel(
returnValue);
}
catch (Exception e) {
_log.error(e, e);

throw new RemoteException(e.getMessage());
}
}

public static com.liferay.portal.kernel.util.UnicodeProperties
getTypeSettingsProperties(long repositoryId)
throws RemoteException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ public Repository addRepository(
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public Repository getRepository(long repositoryId) throws PortalException;

@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public Repository getRepository(long groupId, String portletId)
throws PortalException;

@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public UnicodeProperties getTypeSettingsProperties(long repositoryId)
throws PortalException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ public static com.liferay.portal.kernel.model.Repository getRepository(
return getService().getRepository(repositoryId);
}

public static com.liferay.portal.kernel.model.Repository getRepository(
long groupId, String portletId)
throws com.liferay.portal.kernel.exception.PortalException {

return getService().getRepository(groupId, portletId);
}

public static com.liferay.portal.kernel.util.UnicodeProperties
getTypeSettingsProperties(long repositoryId)
throws com.liferay.portal.kernel.exception.PortalException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ public com.liferay.portal.kernel.model.Repository getRepository(
return _repositoryService.getRepository(repositoryId);
}

@Override
public com.liferay.portal.kernel.model.Repository getRepository(
long groupId, java.lang.String portletId)
throws com.liferay.portal.kernel.exception.PortalException {

return _repositoryService.getRepository(groupId, portletId);
}

@Override
public com.liferay.portal.kernel.util.UnicodeProperties
getTypeSettingsProperties(long repositoryId)
Expand Down

0 comments on commit ad023d8

Please sign in to comment.