JBoss Server 4.0.5 GA MySQL JBoss Portal 2.4
My Custom Portlet is trying to determine if an object should be available to a user. Currently, it is always returning true... In my jboss-portal.xml | | <portlet> | <portlet-name>MyPortlet</portlet-name> | <transaction> | <trans-attribute>Required</trans-attribute> | </transaction> | </portlet> | | <service> | <service-name>PortalObjectContainer</service-name> <service-class>org.jboss.portal.core.model.portal.PortalObjectContainer</service-class> | <service-ref>:container=PortalObject</service-ref> | </service> | <service> | <service-name>InstanceContainer</service-name> | <service-class>org.jboss.portal.core.model.instance.InstanceContainer</service-class> | <service-ref>:container=Instance</service-ref> | </service> | <service> | <service-name>ThemeService</service-name> | <service-class>org.jboss.portal.theme.ThemeService</service-class> | <service-ref>:service=ThemeService</service-ref> | </service> | <service> | <service-name>LayoutService</service-name> | <service-class>org.jboss.portal.theme.LayoutService</service-class> | <service-ref>:service=LayoutService</service-ref> | </service> | <service> | <service-name>CMS</service-name> | <service-class>org.jboss.portal.cms.CMS</service-class> | <service-ref>:service=CMS</service-ref> | </service> | <service> | <service-name>UserModule</service-name> | <service-class>org.jboss.portal.identity.UserModule</service-class> | <service-ref>:service=Module,type=User</service-ref> | </service> | <service> | <service-name>RoleModule</service-name> | <service-class>org.jboss.portal.identity.RoleModule</service-class> | <service-ref>:service=Module,type=Role</service-ref> | </service> | <service> | <service-name>MailModule</service-name> | <service-class>org.jboss.portal.core.modules.MailModule</service-class> | <service-ref>:service=Module,type=Mail</service-ref> | </service> | <service> | <service-name>PortalAuthorizationManagerFactory</service-name> | <service-class>org.jboss.portal.security.spi.auth.PortalAuthorizationManagerFactory</service-class> | <service-ref>:service=PortalAuthorizationManagerFactory</service-ref> | </service> | <service> | <service-name>AuthorizationDomainRegistry</service-name> | <service-class>org.jboss.portal.security.AuthorizationDomainRegistry</service-class> | <service-ref>:service=AuthorizationDomainRegistry</service-ref> | </service> | <service> | <service-name>FederatingPortletInvoker</service-name> | <service-class>org.jboss.portal.federation.FederatingPortletInvoker</service-class> | <service-ref>:service=PortletInvoker,type=Federating</service-ref> | </service> | Inside my portlet I have the following... | | portalAuthorizationManagerFactory = (PortalAuthorizationManagerFactory)getPortletContext().getAttribute("PortalAuthorizationManagerFactory"); | | | PortalObjectPermission perm = new PortalObjectPermission(node.getRef(), PortalObjectPermission.VIEW_MASK); | return portalAuthorizationManagerFactory.getManager().checkPermission(perm); | | I think I am missing the JTA connection but I dont really understand how to do it... Can someone please help... Thanks Indy View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017217#4017217 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017217 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user