[Design of JBoss Portal] - how to find a portalobject in portal 2.6?
by FredF
Hello.
I have been using jboss 2.4 for a while and built an own "portalservice package" that creates various portalobjects like pages, windows and portletinstances purely by the api (not with management portlet).
Now I have upgraded to portal 2.6 and my code breaks because when I want to fetch a portalobject i cant use Strings to the portalobjectcontainer. getObject requires an PortalObjectId.
I am having trouble to get a portalobject by its name. I have a page under default portal and when I do this
PortalObjectId id = PortalObjectId.parse(parentpage, PortalObjectId.LEGACY_FORMAT);
I get null when I do
PortalObject segmentpage = portalobjectcontainer.getObject(id);
I am expecting my page as a page direct under the default portal root.
How do I get an arbritrary portalobject from the portal object container?
knowing only the name of the page I want?
thanks,
Fredrik
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041647#4041647
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041647
17 years, 8 months
[Design of Security on JBoss] - Security Client SPI
by anil.saldhana@jboss.com
There have been usage of SecurityAssociation directly in the client code by users as well as JEMS projects. We really need to be getting a Client SPI from the security project.
The SPI should include things like passage of username/password, callback handler, jaas config name (if the SPI implementation has to do JAAS).
The SPI implementation can make use of SASL on which GSS can be placed. GSS works on the concept of tokens and can use encryption.
One concept that I have not checked out is whether SASL needs both SASL client as well as SASL server because SASL is primarily used for a challenge/response type scenario. I want to be just doing SASL client.
A rough outline of the security client spi is:
| public interface SecurityClient
| {
| public void setUserName(String username)
| public void setPrincipal(Principal p)
| public void setCredential(Object cred)
| public void setJaasConfigName(String str)
|
| //Advanced stuff for GSS
| public setEncryption(String algo)
| }
|
I will work out the SPI in the next few days.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041574#4041574
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041574
17 years, 8 months