![](https://seccdn.libravatar.org/avatar/9df286bd635cdacb23a5bed82b5dc6f1.jpg?s=120&d=mm&r=g)
Hello Java Team, can you please give me a jump start on the Java code? I can't figure it out. Where are the packages/the number calculated and populated at /rhn/systems/SystemList.do. I found "rhn/frontend/dto/SystemOverview.java" and "BaseDto" but they contain no loading logic. "setOutdatedPackages" from SystemOverview.java is not being used anywhere. I want to have a look if/how it is feasible to (conditionally?) filter out modular packages to make the overview look nicer. Thank you and best wishes, Stefan
![](https://seccdn.libravatar.org/avatar/e6d0c9f42625f8f9f45b6bd11ffbb77b.jpg?s=120&d=mm&r=g)
Hi
Let's do a deep dive how to follow the java path
Starting point is the URL /rhn/systems/SystemList.do
- check struts config: java/code/webapp/WEB-INF/struts-config.xml
=> you can find action path:
<action path="/systems/SystemList"
scope="request"
input="/WEB-INF/pages/systems/systemlist.jsp"
type="com.redhat.rhn.frontend.action.systems.SystemListSetupAction"
className="com.redhat.rhn.frontend.struts.RhnActionMapping">
<set-property property="postRequiredIfSubmitted" value="true" />
<forward name="default"
path="/WEB-INF/pages/systems/systemlist.jsp"/>
</action>
"type" is the java class which is called when this page is shown. Look now in SystemListSetupAction.
- This class has only 1 function getDataResult() which is calling SystemManager.systemList()
- Looking into com.redhat.rhn.manager.system.SystemManager systemList() method you can find:
SelectMode m = ModeFactory.getMode("System_queries", "visible_to_user");
Map
Hello Java Team,
can you please give me a jump start on the Java code? I can't figure it out.
Where are the packages/the number calculated and populated at /rhn/systems/SystemList.do. I found "rhn/frontend/dto/SystemOverview.java" and "BaseDto" but they contain no loading logic. "setOutdatedPackages" from SystemOverview.java is not being used anywhere.
I want to have a look if/how it is feasible to (conditionally?) filter out modular packages to make the overview look nicer.
Thank you and best wishes,
Stefan
-- Regards Michael Calmer -------------------------------------------------------------------------- Michael Calmer SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, D-90409 Nuernberg T: +49 (0) 911 74053 0 F: +49 (0) 911 74053575 - e-mail: Michael.Calmer@suse.com -------------------------------------------------------------------------- SUSE Software Solutions Germany GmbH, GF: Ivo Totev (HRB 36809, AG Nürnberg)
![](https://seccdn.libravatar.org/avatar/9df286bd635cdacb23a5bed82b5dc6f1.jpg?s=120&d=mm&r=g)
Big Thank You Michael for taking the time and doing all the thinking for me!
This really helps!
----- Ursprüngliche Mail -----
Von: "Michael Calmer"
An: "devel"
Hello Java Team,
can you please give me a jump start on the Java code? I can't figure it out.
Where are the packages/the number calculated and populated at /rhn/systems/SystemList.do. I found "rhn/frontend/dto/SystemOverview.java" and "BaseDto" but they contain no loading logic. "setOutdatedPackages" from SystemOverview.java is not being used anywhere.
I want to have a look if/how it is feasible to (conditionally?) filter out modular packages to make the overview look nicer.
Thank you and best wishes,
Stefan
-- Regards Michael Calmer -------------------------------------------------------------------------- Michael Calmer SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, D-90409 Nuernberg T: +49 (0) 911 74053 0 F: +49 (0) 911 74053575 - e-mail: Michael.Calmer@suse.com -------------------------------------------------------------------------- SUSE Software Solutions Germany GmbH, GF: Ivo Totev (HRB 36809, AG Nürnberg)
participants (2)
-
Michael Calmer
-
Stefan Bluhm