Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Commit 814cd87

Browse files
wesleygongbrianchandotcom
authored andcommitted
LPS-49590 Renamed classes to match liferay patterns
1 parent e33d78e commit 814cd87

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

shared/alloy-mvc-shared/src/com/liferay/alloy/mvc/AlloyDataRequestHandler.java renamed to shared/alloy-mvc-shared/src/com/liferay/alloy/mvc/AlloyDataRequestProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
/**
4545
* @author Ethan Bustad
4646
*/
47-
public class AlloyDataRequestHandler {
47+
public class AlloyDataRequestProcessor {
4848

49-
public static void processRequest(
49+
public static void process(
5050
ActionRequest actionRequest, ActionResponse actionResponse,
5151
Map<String, BaseAlloyControllerImpl> alloyControllers)
5252
throws Exception {

shared/alloy-mvc-shared/src/com/liferay/alloy/mvc/AlloyNotificationProcessor.java renamed to shared/alloy-mvc-shared/src/com/liferay/alloy/mvc/AlloyNotificationEventHelper.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
/**
2727
* @author Calvin Keum
2828
*/
29-
public class AlloyNotificationProcessor {
29+
public abstract class AlloyNotificationEventHelper {
3030

31-
public void process(HttpServletRequest request) throws Exception {
32-
}
31+
public abstract void addUserNotificationEvents(HttpServletRequest request)
32+
throws Exception;
3333

34-
protected void sendNotification(
34+
protected void addUserNotificationEvent(
3535
String portletKey, long userId, int notificationType,
3636
int deliveryType, Object... attributes)
3737
throws Exception {

shared/alloy-mvc-shared/src/com/liferay/alloy/mvc/AlloyPortlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public void processAction(
122122

123123
if (actionName.equals("alloyDataRequest")) {
124124
try {
125-
AlloyDataRequestHandler.processRequest(
125+
AlloyDataRequestProcessor.process(
126126
actionRequest, actionResponse, _alloyControllers);
127127
}
128128
catch (Exception e) {

shared/alloy-mvc-shared/src/com/liferay/alloy/mvc/BaseAlloyControllerImpl.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ else if (lifecycle.equals(PortletRequest.RESOURCE_PHASE)) {
173173
executeResource(method);
174174
}
175175

176-
if (alloyNotificationProcessor != null) {
177-
alloyNotificationProcessor.process(request);
176+
if (alloyNotificationEventHelper != null) {
177+
alloyNotificationEventHelper.addUserNotificationEvents(request);
178178
}
179179
}
180180

@@ -918,10 +918,10 @@ protected AlloySearchResult search(String keywords, Sort[] sorts)
918918
return search(null, keywords, sorts);
919919
}
920920

921-
protected void setAlloyNotificationProcessor(
922-
AlloyNotificationProcessor alloyNotificationProcessor) {
921+
protected void setAlloyNotificationEventHelper(
922+
AlloyNotificationEventHelper alloyNotificationEventHelper) {
923923

924-
this.alloyNotificationProcessor = alloyNotificationProcessor;
924+
this.alloyNotificationEventHelper = alloyNotificationEventHelper;
925925
}
926926

927927
protected void setAlloyServiceInvokerClass(Class<?> clazz) {
@@ -1019,7 +1019,7 @@ else if (mimeResponse != null) {
10191019
protected String actionPath;
10201020
protected ActionRequest actionRequest;
10211021
protected ActionResponse actionResponse;
1022-
protected AlloyNotificationProcessor alloyNotificationProcessor;
1022+
protected AlloyNotificationEventHelper alloyNotificationEventHelper;
10231023
protected AlloyPortlet alloyPortlet;
10241024
protected AlloyServiceInvoker alloyServiceInvoker;
10251025
protected ClassLoader classLoader;

0 commit comments

Comments
 (0)