[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1019) Asserted objects should be handled polymorphically
by Christian Bauer (JIRA)
Asserted objects should be handled polymorphically
--------------------------------------------------
Key: JBSEAM-1019
URL: http://jira.jboss.com/jira/browse/JBSEAM-1019
Project: JBoss Seam
Issue Type: Feature Request
Components: Security
Reporter: Christian Bauer
Class hierarchy: Node(Document,Directory)
I'm asserting an instance of Document into working memory like this:
<s:link id="editDoc" styleClass="linkNavigation" action="editDoc" accesskey="E"
rendered="#{s:hasPermission('NodeHome', 'edit', currentDocument)}"><u>E</u>dit</s:link>
This doesn't fire:
rule RestrictNodeHomeEditAccess
no-loop;
activation-group "permissions"
when
c: PermissionCheck(name == "NodeHome", action == "edit");
Node(nodeWriteAccessLevel : writeAccessLevel, nodeCreator : createdBy)
Role(userAccessLevel : name -> (Integer.valueOf(userAccessLevel).intValue() >= nodeWriteAccessLevel.intValue()) )
or
User(authenticatedUserId : id -> (nodeCreator.getId().equals(authenticatedUserId)) )
then
c.grant();
modify(c);
end;
This does:
rule RestrictNodeHomeEditAccess
no-loop;
activation-group "permissions"
when
c: PermissionCheck(name == "NodeHome", action == "edit");
Document(nodeWriteAccessLevel : writeAccessLevel, nodeCreator : createdBy)
Role(userAccessLevel : name -> (Integer.valueOf(userAccessLevel).intValue() >= nodeWriteAccessLevel.intValue()) )
or
User(authenticatedUserId : id -> (nodeCreator.getId().equals(authenticatedUserId)) )
then
c.grant();
modify(c);
end;
I couldn't find anything in the Drools docs about polymorphism but it looks like Facts are not checked polymorphically. Sad language that is.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-995) Make it so that spring can be used in Seam Integration/unit tests
by youngm (JIRA)
Make it so that spring can be used in Seam Integration/unit tests
-----------------------------------------------------------------
Key: JBSEAM-995
URL: http://jira.jboss.com/jira/browse/JBSEAM-995
Project: JBoss Seam
Issue Type: Feature Request
Components: Spring
Affects Versions: 1.2.0.GA
Reporter: youngm
Fix For: 1.2.1.GA
Currently there isn't really a way to use spring in Seam integration/unit tests. Spring provides support for testing with a super class which sets up spring and seam does the same thing.
One easy way to fix this problem is to add a Seam component that installs and sets up a Spring ApplicationContext. That way the Seam super test class can be used and when it starts up the seam container will start up and configure spring.
This will also help solve the slight race condition we currently have of the spring integration work being dependent upon Seam already configured.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1027) UI component for substring/full string display
by Christian Bauer (JIRA)
UI component for substring/full string display
----------------------------------------------
Key: JBSEAM-1027
URL: http://jira.jboss.com/jira/browse/JBSEAM-1027
Project: JBoss Seam
Issue Type: Feature Request
Components: JSF
Reporter: Christian Bauer
Priority: Minor
Probably should go into RichFaces (if it isn't already there), noting it here so we won't forget.
A nice Javascript component would be a substring display component that expands the string on click. For example, in a datatable column there is only 20 characters space reserved for a particular column. If my data is longer than that, I'd like to show the first 20 characters and allow the user to display/expand the string on click, e.g. "This is a very long varchar that doesn't fit into ...". If the user clicks on "...", either a DHTML layer pops up with the full string or the datatable is actually widened to make room for the full string.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years