org.imixs.workflow.jee.ejb
Class ReportServiceBean

java.lang.Object
  extended by org.imixs.workflow.jee.ejb.ReportServiceBean
All Implemented Interfaces:
org.imixs.workflow.jee.ejb.ReportService

@DeclareRoles(value={"org.imixs.ACCESSLEVEL.NOACCESS","org.imixs.ACCESSLEVEL.READERACCESS","org.imixs.ACCESSLEVEL.AUTHORACCESS","org.imixs.ACCESSLEVEL.EDITORACCESS","org.imixs.ACCESSLEVEL.MANAGERACCESS"})
@RolesAllowed(value={"org.imixs.ACCESSLEVEL.NOACCESS","org.imixs.ACCESSLEVEL.READERACCESS","org.imixs.ACCESSLEVEL.AUTHORACCESS","org.imixs.ACCESSLEVEL.EDITORACCESS","org.imixs.ACCESSLEVEL.MANAGERACCESS"})
public class ReportServiceBean
extends Object
implements org.imixs.workflow.jee.ejb.ReportService

The WebService Implementation class uses the corresponding stateless session ejb Implementation class. This class must match the corresponding WSDL file. Therefore the necessary elements (name,targetNamespace,serviceName,portName) are named in the WebService annotation. The WSDL file have to be supported in the META-INF/wsdl directory. For basic authentification this EJB is defined additional in the sun-ejb-jar.xml

Author:
Ralph Soika

Constructor Summary
ReportServiceBean()
           
 
Method Summary
 org.imixs.workflow.ItemCollection getReport(String aReportName)
          returns a QueryEntity Object identified by the attribute txtname
 Collection<org.imixs.workflow.ItemCollection> getReportList(int startpos, int count)
          This method returns a collection of reports (ItemCollection).
 Collection<org.imixs.workflow.ItemCollection> processReport(String aReportName)
          Process a QueryEntity Object identified by the attribute txtname.
 void updateReport(org.imixs.workflow.ItemCollection aReport)
          updates a Entity Report Object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportServiceBean

public ReportServiceBean()
Method Detail

getReport

public org.imixs.workflow.ItemCollection getReport(String aReportName)
                                            throws Exception
returns a QueryEntity Object identified by the attribute txtname

Specified by:
getReport in interface org.imixs.workflow.jee.ejb.ReportService
Parameters:
aID -
Returns:
entity object representing the Report
Throws:
Exception

getReportList

public Collection<org.imixs.workflow.ItemCollection> getReportList(int startpos,
                                                                   int count)
                                                            throws Exception
This method returns a collection of reports (ItemCollection). The method should return a subset of a collection if the start and count parameters differ form the value -1. The method returns only ItemCollections the call has sufficient read access for.

Specified by:
getReportList in interface org.imixs.workflow.jee.ejb.ReportService
Throws:
Exception

updateReport

public void updateReport(org.imixs.workflow.ItemCollection aReport)
                  throws Exception
updates a Entity Report Object. The Entity representing a report must have at least the attributes : txtQuery, numMaxCount, numStartPost, txtName. txtName is the unique key to be use to get a query. The method checks if a report with the same key allready exists. If so this report will be updated. If no report exists the new report will be created

Specified by:
updateReport in interface org.imixs.workflow.jee.ejb.ReportService
Parameters:
report -
Throws:
Exception

processReport

public Collection<org.imixs.workflow.ItemCollection> processReport(String aReportName)
                                                            throws Exception
Process a QueryEntity Object identified by the attribute txtname. All informations about the Query are stored in the QueryObject these attributes are: txtQuery, numMaxCount, numStartPost, txtName

Specified by:
processReport in interface org.imixs.workflow.jee.ejb.ReportService
Parameters:
aID -
Returns:
Throws:
Exception


Copyright © 2006-2012 Imixs Software Solutions GmbH. All Rights Reserved.