[Design of JBossXB] - Re: GenericObjectModelProvider not setting attributes in XML
by info@connext.co.za
Good Day,
| CHILDREN Object: class org.jboss.security.auth.login.PolicyConfig localName: application-policy
| ATTRIBUTE Object: class org.jboss.security.auth.login.AuthenticationInfo localName: name
| CHILDREN Object: class org.jboss.security.auth.login.AuthenticationInfo localName: authentication
| CHILDREN Object: class com.cibecs.brs.appserver.authentication.LoginConfigObjectModelProvider$Authentication localName: login-module
| ATTRIBUTE Object: class javax.security.auth.login.AppConfigurationEntry localName: flag
| ATTRIBUTE Object: class javax.security.auth.login.AppConfigurationEntry localName: code
| CHILDREN Object: class javax.security.auth.login.AppConfigurationEntry localName: module-option
| ATTRIBUTE Object: class com.cibecs.brs.appserver.authentication.ModuleOption localName: name
| ELEMENT Object: class com.cibecs.brs.appserver.authentication.ModuleOption localName: module-option
| ATTRIBUTE Object: class com.cibecs.brs.appserver.authentication.ModuleOption localName: name
| ELEMENT Object: class com.cibecs.brs.appserver.authentication.ModuleOption localName: module-option
| ATTRIBUTE Object: class com.cibecs.brs.appserver.authentication.ModuleOption localName: name
| ELEMENT Object: class com.cibecs.brs.appserver.authentication.ModuleOption localName: module-option
| ATTRIBUTE Object: class com.cibecs.brs.appserver.authentication.ModuleOption localName: name
| ELEMENT Object: class com.cibecs.brs.appserver.authentication.ModuleOption localName: module-option
| ATTRIBUTE Object: class com.cibecs.brs.appserver.authentication.ModuleOption localName: name
| ELEMENT Object: class com.cibecs.brs.appserver.authentication.ModuleOption localName: module-option
| ATTRIBUTE Object: class com.cibecs.brs.appserver.authentication.ModuleOption localName: name
| ELEMENT Object: class com.cibecs.brs.appserver.authentication.ModuleOption localName: module-option
| ATTRIBUTE Object: class com.cibecs.brs.appserver.authentication.ModuleOption localName: name
| ELEMENT Object: class com.cibecs.brs.appserver.authentication.ModuleOption localName: module-option
|
I am trying to make the changes made to the login-config.xml via the XMLLoginConfig MBean to be persisted. I have implemented the logic to convert between the PolicyConfig and the Configuration and AppConfigurationEntry classes and all I need is to get the PolicyConfig to be persisted.
I noticed that the JBossXB source that comes with the JBoss 4.0.4 GA is not the same that the 4.0.4 GA was compiled with since the debugger is stopping a line numbers that are out of sync with the actual code.
Regards,
Mark P Ashworth
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968357#3968357
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968357
18 years, 4 months
[Design of JBoss Portal] - setting security constraint for portal pagess
by prijken
I have a couple of questions regarding setting security for portal pages:
1)
In my *-object.xml I have the following configuration:
| ...
| <page>
| <page-name>MyPage</page-name>
| ...
| <security-constraint>
| <policy-permission>
| <role-name>User</role-name>
| <action-name>viewrecursive</action-name>
| </policy-permission>
| </security-constraint>
| </page>
| ...
|
I was hoping that with this, I could restrict access to the portal page with URL /portal/..../MyPage. But unfortunately, this does not seem to work.
I have read the JSR000168, and both the Portal reference and user manuals for 2.4.
2) Do security constraint on portlet instances overwrite those of the constraints set for the page?
3) Can I have multiple <policy-permissions> or multiple <security-constraints>? (I could find a scheme for the *-object.xml file.)
4) Is it possible to specify the security-domain for the security constraints set in *-object.xml, i.e. different from the security-domain of the portal?
Many thanks, pieter
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968354#3968354
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968354
18 years, 4 months
[Design of JBossXB] - GenericObjectModelProvider not setting attributes in XML
by info@connext.co.za
Good Day,
I am trying to use the DtdMarshaller to marshal the PolicyConfig to the login-config.xml, but the attributes are not being set in the XML. I have tried the ObjectModelProvider and here I am trying the GenericObjectModelProvider.
| public class LoginConfigObjectModelProvider implements GenericObjectModelProvider {
|
| public Object getRoot(Object o, MarshallingContext ctx, String namespaceURI, String localName) {
| return o;
| }
| public Object getChildren(Object o, MarshallingContext ctx, String namespaceURI, String localName) {
| if (o instanceof PolicyConfig) {
| if ("application-policy".equals(localName)) {
|
| List<AuthenticationInfo> infos = new ArrayList<AuthenticationInfo>();
| Set<String> keys = ((PolicyConfig) o).getConfigNames();
| for (String name : keys) {
| infos.add(((PolicyConfig) o).get(name));
| }
| return infos;
| }
| }
| return null;
| }
| public Object getAttributeValue(Object o, MarshallingContext ctx, String namespaceURI, String localName) {
|
| if (o instanceof AuthenticationInfo) {
| if ("name".equals(localName)) {
| return ((AuthenticationInfo) o).getName();
| }
| }
| return null;
| }
|
| public Object getElementValue(Object o, MarshallingContext ctx, String namespaceURI, String localName) {
| return null;
| }
| }
|
| 13:46:37,358 WARN @main [JBossEntityResolver] Cannot load publicId from resource: security_config.dtd
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE policy PUBLIC "-//JBoss//DTD JBOSS Security Config 3.0//EN" "http://www.jboss.org/j2ee/dtd/security_config.dtd">
|
| <policy>
| <application-policy></application-policy>
| <application-policy></application-policy>
| <application-policy></application-policy>
| <application-policy></application-policy>
| <application-policy></application-policy>
| <application-policy></application-policy>
| <application-policy></application-policy>
| <application-policy></application-policy>
| <application-policy></application-policy>
| <application-policy></application-policy>
| <application-policy></application-policy>
| <application-policy></application-policy>
| </policy>
|
| StringWriter xmlOutput = new StringWriter();
|
| System.setProperty(Marshaller.PROP_MARSHALLER, DtdMarshaller.class.getName());
|
| AbstractMarshaller marshaller = (AbstractMarshaller) Marshaller.FACTORY
| .getInstance();
|
| marshaller.mapPublicIdToSystemId("-//JBoss//DTD JBOSS Security Config 3.0//EN", "http://www.jboss.org/j2ee/dtd/security_config.dtd");
| LoginConfigObjectModelProvider provider = new LoginConfigObjectModelProvider();
| marshaller.marshal(
| "http://www.jboss.org/j2ee/dtd/security_config.dtd",
| provider,
| config,
| xmlOutput);
|
| System.out.println(xmlOutput.getBuffer());
|
Regards,
Mark P Ashworth
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968343#3968343
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968343
18 years, 4 months
[Design of JBoss Labs] - Re: Productization metrics for JEMS Matrix
by wrzep
Thank you, Rysiek.
"unibrew" wrote :
| Another variable in this productization statistics could be how active the project is. It could be based for example on the amount of jira tasks resolved for a month. Or maybe on that how often new versions/upgrades/or whatever are released.
| Moreover, activity on user forum and downloads per month might be good statistics.
|
Yeah, stats you mentioned are really valuable and we are considering them now. These are actually community activity metrics (compare JMM mockup proposed by Damon).
Perfectly, we would like to have 3 groups of productization metrics. Let's say:
- how easy is to start using product (Please consider name contest as open ;-) )
This would include "packed for download" metric and measuring available project documentation.
- support
Here I mean professional support services, training and (optionally) activity on user's forums.
- project popularity / customer satisfaction
The point is, how to measure it.
"unibrew" wrote :
| Maybe some predefined polls as you mentioned. With questions like: "Do you consider this project a good product?"
|
| This is mainly documentation but product should have trailblazers, tutorials and other helpful materials for people who want to start using project fast, without reading tons of manuals.
|
Yes. It came to my mind that polls could be useful not only measuring how product meets users' requirements (customer satisfaction), but these are also a good place to ask them how documentation is helpful (the first group of metrics).
What do you think?
How about google metric? Seems tempting to measure how popular project is using google search.
Cheers,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968320#3968320
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968320
18 years, 4 months