Liferay 启动过程分析13(3)

从第3行又可以看出,它是从portlet得到其id然后传递给重载的另一个方法:

public List<String> getPortletResourceActions(String name) {         name = PortletConstants.getRootPortletId(name);          List<String> actions = getActions(_portletResourceActions, name);          if (!actions.isEmpty()) {             return actions;         }          synchronized (this) {             actions = getPortletMimeTypeActions(name);              if (!name.equals(PortletKeys.PORTAL)) {                 checkPortletActions(name, actions);             }              List<String> groupDefaultActions =                 _portletResourceGroupDefaultActions.get(name);              if (groupDefaultActions == null) {                 groupDefaultActions = new UniqueList<String>();                  checkPortletGroupDefaultActions(groupDefaultActions);                  _portletResourceGroupDefaultActions.put(                     name, new UnmodifiableList<String>(groupDefaultActions));             }              List<String> guestDefaultActions =                 _portletResourceGuestDefaultActions.get(name);              if (guestDefaultActions == null) {                 guestDefaultActions = new UniqueList<String>();                  checkPortletGuestDefaultActions(guestDefaultActions);                  _portletResourceGuestDefaultActions.put(                     name, new UnmodifiableList<String>(guestDefaultActions));             }              List<String> layoutManagerActions =                 _portletResourceLayoutManagerActions.get(name);              if (layoutManagerActions == null) {                 layoutManagerActions = new UniqueList<String>();                  checkPortletLayoutManagerActions(layoutManagerActions);                  _portletResourceLayoutManagerActions.put(                     name, new UnmodifiableList<String>(layoutManagerActions));             }              actions = setActions(_portletResourceActions, name, actions);         }          return actions;     } 

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/4d3527bb84ad6cbd1ad54c8f7d62d40b.html