Jump to content
We've recently updated our Privacy Statement, available here ×

cutesolutions

Members
  • Posts

    7
  • Joined

  • Last visited

cutesolutions's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. I got an error while filling a jasperreport with a JRCmlDataSource. Parse Error at line 1 column 8: cvc-elt.1: Cannot find the declaration of element 'users'. The XML file: <users> <user id="0"> <name>Christian</name> <nummer>2</nummer> </user> <user id="2"> <name>Hans</name> <nummer>3</nummer> </user> <user id="1"> <name>Max</name> <nummer>4</nummer> </user> </users> the source: JRXmlDataSource jrxmlds = new JRXmlDataSource(_xmlDataSource); JasperReportManager reportManager = new JasperReportManager(_reportSource, jrxmlds); I don't know what is wrong. Can somebody help me please?
  2. I am using a xml data source, so all my fields has the type java.lang.String. How can i cast them to java.lang.Number?? Thanks.
  3. Now i can use an external Database to get the userinformation for the login. But how can i add new users, roles and objectpermissions to this database. Which classes are responsible for this? Thanks.
  4. I tried this. But there is a bug. don't know where. Code: Code: Post Edited by christian ranz at 03/11/09 20:53 Code:/* * To change this template, choose Tools | Templates * and open the template in the editor. */package persis.acegisecurity.userdetails.jdbc.JdbcDaoImpl;import org.acegisecurity.GrantedAuthority;public class CustomUser implements org.acegisecurity.userdetails.UserDetails { private Object userInfo; private String username; private String password; private boolean isAccountNonExpired = true; private boolean isAccountNonLocked = true; private boolean isCredentialsNonExpired = true; private boolean isEnabled; private GrantedAuthority[] grantedAuth; public CustomUser(String username, String password, boolean isEnabled, GrantedAuthority[] authorities, Object user) { this.username = username; this.password = password; this.isEnabled = isEnabled; this.grantedAuth = authorities; this.setUserInfo(user); } public CustomUser(String username, String password, boolean isEnabled, GrantedAuthority[] arrayAuths) { this.username = username; this.password = password; this.isEnabled = isEnabled; this.grantedAuth = arrayAuths; } public Object getUserInfo() { return userInfo; } public void setUserInfo(Object userInfo) { this.userInfo = userInfo; } public GrantedAuthority[] getAuthorities() { return grantedAuth; } public String getPassword() { return password; } public String getUsername() { return username; } public boolean isAccountNonExpired() { return isAccountNonExpired; } public boolean isAccountNonLocked() { return isAccountNonLocked; } public boolean isCredentialsNonExpired() { return isCredentialsNonExpired; } public boolean isEnabled() { return isEnabled; }} Post Edited by christian ranz at 03/11/09 20:53
  5. Do you have an exemple for this? So i have to write a own DaoAuthenticationProvider and a own userDetailsService? Which type of datasource did you use? Thanks for reply.
  6. Hi, is it possible to get the ligin information (User, Role, UserRole) from another datasource. I have got a own database fro teh user cradentials. How can i connect to this? I need a JDBC datasource. I have already added a new datasource to the applicationContext-datasources.xml. How can i tell the jasperserver to get the userinformation from this datasource. Please help me. Thanks. Code: Post Edited by christian ranz at 03/10/09 08:23
  7. In my usecase not all users should access the complete provided data of a datasource. Is it possible to call a report on the server with a custom parameter, which is is processed in a custom datasource. Or is it possible to use an own ODBC driver which filters the data? Thanks. Post Edited by christian ranz at 03/03/09 14:06
×
×
  • Create New...