I've trying to write a portlet that gives the user a simplified interface to
publish portlets and immediately posts them to the page. This is a project that
Thomas Pangborn was working on earlier this year.
I'm trying to use the publishchannel function in ChannelRegistryManager, and
right now I'm supplying mostly hard-coded data just to see how it works. Here's
its declaration:
public static void publishChannel (Element channel, String[] categoryIDs,
IGroupMember[] groupMembers, IPerson publisher) throws Exception
I'm having an issue with the groupMembers parameter. I tried using the
findGroup(String) function in GroupService with the following call:
IGroupMember gm = (IGroupMember) GroupService.findGroup("local.1");
but I get the following error:
Caused by: java.lang.ExceptionInInitializerError
at
org.jasig.portal.services.GroupService.parseServiceName(GroupService.java:446)
at
org.jasig.portal.groups.ReferenceCompositeGroupService.initializeComponentServices(ReferenceCompositeGroupService.java:201)
at
org.jasig.portal.groups.ReferenceCompositeGroupServiceFactory.newGroupService(ReferenceCompositeGroupServiceFactory.java:37)
at
org.jasig.portal.services.GroupService.initializeCompositeService(GroupService.java:386)
at org.jasig.portal.services.GroupService.<init>(GroupService.java:59)
at org.jasig.portal.services.GroupService.instance(GroupService.java:397)
at org.jasig.portal.services.GroupService.findGroup(GroupService.java:70)
at
com.tridsys.portlet.CDCPublishViewController.doSubmitAction(CDCPublishViewController.java:62)
at
org.springframework.web.portlet.mvc.SimpleFormController.onSubmitAction(SimpleFormController.java:538)
at
org.springframework.web.portlet.mvc.SimpleFormController.onSubmitAction(SimpleFormController.java:503)
at
org.springframework.web.portlet.mvc.SimpleFormController.onSubmitAction(SimpleFormController.java:447)
at
org.springframework.web.portlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:322)
at
org.springframework.web.portlet.mvc.AbstractFormController.handleActionRequestInternal(AbstractFormController.java:389)
at
org.springframework.web.portlet.mvc.AbstractController.handleActionRequest(AbstractController.java:196)
at
org.springframework.web.portlet.mvc.SimpleControllerHandlerAdapter.handleAction(SimpleControllerHandlerAdapter.java:46)
at
org.springframework.web.portlet.DispatcherPortlet.doActionService(DispatcherPortlet.java:694)
Any idea what's causing this? Is my query of "local.1" not being understood by
GroupService? Should I seek a different way to obtain an IGroupMember object?
Any help or advice would be much appreciated. Thanks!
Antonio Brunson
Trident Systems. Inc.
--
You are currently subscribed to [email protected] as: [EMAIL
PROTECTED]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/uportal-dev