Skip to content

Commit

Permalink
LPD-36744 buildService
Browse files Browse the repository at this point in the history
  • Loading branch information
AliciaGarciaGarcia authored and brianchandotcom committed Oct 1, 2024
1 parent 07ba7fd commit 144857a
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
public class RepositoryServiceHttp {

public static com.liferay.portal.kernel.model.Repository addRepository(
HttpPrincipal httpPrincipal, long groupId, long classNameId,
long parentFolderId, String name, String description,
String portletId,
HttpPrincipal httpPrincipal, String externalReferenceCode,
long groupId, long classNameId, long parentFolderId, String name,
String description, String portletId,
com.liferay.portal.kernel.util.UnicodeProperties
typeSettingsUnicodeProperties,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Expand All @@ -56,9 +56,9 @@ public static com.liferay.portal.kernel.model.Repository addRepository(
_addRepositoryParameterTypes0);

MethodHandler methodHandler = new MethodHandler(
methodKey, groupId, classNameId, parentFolderId, name,
description, portletId, typeSettingsUnicodeProperties,
serviceContext);
methodKey, externalReferenceCode, groupId, classNameId,
parentFolderId, name, description, portletId,
typeSettingsUnicodeProperties, serviceContext);

Object returnObj = null;

Expand Down Expand Up @@ -323,8 +323,8 @@ public static void updateRepository(

private static final Class<?>[] _addRepositoryParameterTypes0 =
new Class[] {
long.class, long.class, long.class, String.class, String.class,
String.class,
String.class, long.class, long.class, long.class, String.class,
String.class, String.class,
com.liferay.portal.kernel.util.UnicodeProperties.class,
com.liferay.portal.kernel.service.ServiceContext.class
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ public interface RepositoryLocalService
*
* Never modify this interface directly. Add custom service methods to <code>com.liferay.portal.service.impl.RepositoryLocalServiceImpl</code> and rerun ServiceBuilder to automatically copy the method declarations to this interface. Consume the repository local service via injection or a <code>org.osgi.util.tracker.ServiceTracker</code>. Use {@link RepositoryLocalServiceUtil} if injection and service tracking are not available.
*/
public Repository addRepository(
long userId, long groupId, long classNameId, long parentFolderId,
String name, String description, String portletId,
UnicodeProperties typeSettingsUnicodeProperties, boolean hidden,
ServiceContext serviceContext)
throws PortalException;

/**
* Adds the repository to the database. Also notifies the appropriate model listeners.
Expand All @@ -85,6 +79,14 @@ public Repository addRepository(
@Indexable(type = IndexableType.REINDEX)
public Repository addRepository(Repository repository);

public Repository addRepository(
String externalReferenceCode, long userId, long groupId,
long classNameId, long parentFolderId, String name,
String description, String portletId,
UnicodeProperties typeSettingsUnicodeProperties, boolean hidden,
ServiceContext serviceContext)
throws PortalException;

public void checkRepository(long repositoryId);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,6 @@ public class RepositoryLocalServiceUtil {
*
* Never modify this class directly. Add custom service methods to <code>com.liferay.portal.service.impl.RepositoryLocalServiceImpl</code> and rerun ServiceBuilder to regenerate this class.
*/
public static Repository addRepository(
long userId, long groupId, long classNameId, long parentFolderId,
String name, String description, String portletId,
com.liferay.portal.kernel.util.UnicodeProperties
typeSettingsUnicodeProperties,
boolean hidden, ServiceContext serviceContext)
throws PortalException {

return getService().addRepository(
userId, groupId, classNameId, parentFolderId, name, description,
portletId, typeSettingsUnicodeProperties, hidden, serviceContext);
}

/**
* Adds the repository to the database. Also notifies the appropriate model listeners.
Expand All @@ -62,6 +50,21 @@ public static Repository addRepository(Repository repository) {
return getService().addRepository(repository);
}

public static Repository addRepository(
String externalReferenceCode, long userId, long groupId,
long classNameId, long parentFolderId, String name,
String description, String portletId,
com.liferay.portal.kernel.util.UnicodeProperties
typeSettingsUnicodeProperties,
boolean hidden, ServiceContext serviceContext)
throws PortalException {

return getService().addRepository(
externalReferenceCode, userId, groupId, classNameId, parentFolderId,
name, description, portletId, typeSettingsUnicodeProperties, hidden,
serviceContext);
}

public static void checkRepository(long repositoryId) {
getService().checkRepository(repositoryId);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,6 @@ public RepositoryLocalServiceWrapper(
_repositoryLocalService = repositoryLocalService;
}

@Override
public Repository addRepository(
long userId, long groupId, long classNameId, long parentFolderId,
String name, String description, String portletId,
com.liferay.portal.kernel.util.UnicodeProperties
typeSettingsUnicodeProperties,
boolean hidden, ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {

return _repositoryLocalService.addRepository(
userId, groupId, classNameId, parentFolderId, name, description,
portletId, typeSettingsUnicodeProperties, hidden, serviceContext);
}

/**
* Adds the repository to the database. Also notifies the appropriate model listeners.
*
Expand All @@ -59,6 +45,22 @@ public Repository addRepository(Repository repository) {
return _repositoryLocalService.addRepository(repository);
}

@Override
public Repository addRepository(
String externalReferenceCode, long userId, long groupId,
long classNameId, long parentFolderId, String name,
String description, String portletId,
com.liferay.portal.kernel.util.UnicodeProperties
typeSettingsUnicodeProperties,
boolean hidden, ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {

return _repositoryLocalService.addRepository(
externalReferenceCode, userId, groupId, classNameId, parentFolderId,
name, description, portletId, typeSettingsUnicodeProperties, hidden,
serviceContext);
}

@Override
public void checkRepository(long repositoryId) {
_repositoryLocalService.checkRepository(repositoryId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ public interface RepositoryService extends BaseService {
* Never modify this interface directly. Add custom service methods to <code>com.liferay.portal.service.impl.RepositoryServiceImpl</code> and rerun ServiceBuilder to automatically copy the method declarations to this interface. Consume the repository remote service via injection or a <code>org.osgi.util.tracker.ServiceTracker</code>. Use {@link RepositoryServiceUtil} if injection and service tracking are not available.
*/
public Repository addRepository(
long groupId, long classNameId, long parentFolderId, String name,
String description, String portletId,
UnicodeProperties typeSettingsUnicodeProperties,
String externalReferenceCode, long groupId, long classNameId,
long parentFolderId, String name, String description,
String portletId, UnicodeProperties typeSettingsUnicodeProperties,
ServiceContext serviceContext)
throws PortalException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,18 @@ public class RepositoryServiceUtil {
* Never modify this class directly. Add custom service methods to <code>com.liferay.portal.service.impl.RepositoryServiceImpl</code> and rerun ServiceBuilder to regenerate this class.
*/
public static Repository addRepository(
long groupId, long classNameId, long parentFolderId, String name,
String description, String portletId,
String externalReferenceCode, long groupId, long classNameId,
long parentFolderId, String name, String description,
String portletId,
com.liferay.portal.kernel.util.UnicodeProperties
typeSettingsUnicodeProperties,
ServiceContext serviceContext)
throws PortalException {

return getService().addRepository(
groupId, classNameId, parentFolderId, name, description, portletId,
typeSettingsUnicodeProperties, serviceContext);
externalReferenceCode, groupId, classNameId, parentFolderId, name,
description, portletId, typeSettingsUnicodeProperties,
serviceContext);
}

public static void checkRepository(long repositoryId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,18 @@ public RepositoryServiceWrapper(RepositoryService repositoryService) {

@Override
public Repository addRepository(
long groupId, long classNameId, long parentFolderId, String name,
String description, String portletId,
String externalReferenceCode, long groupId, long classNameId,
long parentFolderId, String name, String description,
String portletId,
com.liferay.portal.kernel.util.UnicodeProperties
typeSettingsUnicodeProperties,
ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {

return _repositoryService.addRepository(
groupId, classNameId, parentFolderId, name, description, portletId,
typeSettingsUnicodeProperties, serviceContext);
externalReferenceCode, groupId, classNameId, parentFolderId, name,
description, portletId, typeSettingsUnicodeProperties,
serviceContext);
}

@Override
Expand Down

0 comments on commit 144857a

Please sign in to comment.