Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

LPS-26261 Deprecate old methods that are referenced in JSPs in case t…

…hose are modded by a hook
  • Loading branch information...
commit 397de46a58f2ef065e36a31fea1829e2b7fe9bcc 1 parent 44a2243
@brianchandotcom brianchandotcom authored
View
9 portal-impl/src/com/liferay/portal/service/impl/LayoutPrototypeLocalServiceImpl.java
@@ -133,6 +133,15 @@ public LayoutPrototype deleteLayoutPrototype(long layoutPrototypeId)
return deleteLayoutPrototype(layoutPrototype);
}
+ /**
+ * @deprecated {@link #getLayoutPrototypeByUuidAndCompanyId(String, long)}
+ */
+ public LayoutPrototype getLayoutPrototypeByUuid(String uuid)
+ throws PortalException, SystemException {
+
+ return layoutPrototypePersistence.findByUuid_First(uuid, null);
+ }
+
public LayoutPrototype getLayoutPrototypeByUuidAndCompanyId(
String uuid, long companyId)
throws PortalException, SystemException {
View
9 portal-impl/src/com/liferay/portal/service/impl/LayoutSetPrototypeLocalServiceImpl.java
@@ -149,6 +149,15 @@ public LayoutSetPrototype deleteLayoutSetPrototype(
return deleteLayoutSetPrototype(layoutSetPrototype);
}
+ /**
+ * @deprecated {@link getLayoutSetPrototypeByUuidAndCompanyId(String, long)}
+ */
+ public LayoutSetPrototype getLayoutSetPrototypeByUuid(String uuid)
+ throws PortalException, SystemException {
+
+ return layoutSetPrototypePersistence.findByUuid_First(uuid, null);
+ }
+
public LayoutSetPrototype getLayoutSetPrototypeByUuidAndCompanyId(
String uuid, long companyId)
throws PortalException, SystemException {
View
23 portal-impl/src/com/liferay/portal/service/impl/UserLocalServiceImpl.java
@@ -2607,6 +2607,29 @@ public User getUserByScreenName(long companyId, String screenName)
/**
* Returns the user with the universally unique identifier.
*
+ * @param uuid the user's universally unique identifier
+ * @return the user with the universally unique identifier
+ * @throws PortalException if a user with the universally unique
+ * identifier could not be found
+ * @throws SystemException if a system exception occurred
+ * @deprecated {@link #getUserByUuidAndCompanyId(String, long)}
+ */
+ public User getUserByUuid(String uuid)
+ throws PortalException, SystemException {
+
+ List<User> users = userPersistence.findByUuid(uuid);
+
+ if (users.isEmpty()) {
+ throw new NoSuchUserException();
+ }
+ else {
+ return users.get(0);
+ }
+ }
+
+ /**
+ * Returns the user with the universally unique identifier.
+ *
* @param uuid the user's universally unique identifier
* @param companyId the primary key of the user's company
* @return the user with the universally unique identifier
Please sign in to comment.
Something went wrong with that request. Please try again.