Date post: | 20-Jan-2016 |
Category: |
Documents |
Upload: | corey-weaver |
View: | 219 times |
Download: | 2 times |
Scheduling Java ObjectsUsing the SDK
Scheduling Java ObjectsUsing the SDK
Matthias Nott, Business Objects
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 3
This Breakout…
Intended audience Java developers Those considering developing in Java
Using the SDK—the easy way BOInterface Repository Explorer
Demonstrate How to build the solution step-by-step The finished solution Where to get the finished code
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 4
What is BOInterface?
What is Repository Explorer?
Step 1 Create a Session
Step 2 Open a Document
Step 3 Set Prompts
Step 4 Get PDF
Step 5 Schedule to SMTP
Step 6 Create and Schedule Program Object
Step 7 Create User, Create Group, Associate Both
Q&A
Topics
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 5
SDK library that greatly simplifies using the SDK You do not have to worry about document types Most common SDK tasks 1 line of code Does not limit you, it helps you
Helps you to employ best practices on your projects Based on 4 years of development More than 30,000 lines of code behind the scenes Actively used by customers worldwide
Consulting solution Ask your account manager Ask local professional services contact Ask me [email protected]
What Is BOInterface?
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 6
What Is BOInterface?
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 7
What is BOInterface?
What is Repository Explorer?
Step 1 Create a Session
Step 2 Open a Document
Step 3 Set Prompts
Step 4 Get PDF
Step 5 Schedule to SMTP
Step 6 Create and Schedule Program Object
Step 7 Create User, Create Group, Associate Both
Q&A
Topics
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 8
What Is Repository Explorer?
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 9
What Is Repository Explorer?
Eclipse plug-in
Built with BOinterface
Reveals the repository content
Know everything about objects
Debug your SDK queries
See immediate effects of yourprograms
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 10
Repository Explorer: Repository While Developing
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 11
What is BOInterface?
What is Repository Explorer?
Step 1 Create a Session
Step 2 Open a Document
Step 3 Set Prompts
Step 4 Get PDF
Step 5 Schedule to SMTP
Step 6 Create and Schedule Program Object
Step 7 Create User, Create Group, Associate Both
Q&A
Topics
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 12
BOReport
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 13
Use the Documentation: BOReport Package
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 14
Use the Documentation: BOReport Class
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 15
Use BOReport To Open a Session
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 16
Use BOReport To Reuse a Session
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 17
Recap: Creating a Session
You need a BOReport objectSecurity requires the following information: Username Password CMS name Authentication type
Open the session with
initSession(…)
You get a session ID in return
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 18
Recap: Reusing a Session
You need a BOReport object
You can reuse a session createdin a completely different JVM
This is a very simple way to usesingle sign-on scenarios Create a simple web application A link points to InfoView for
“Power Users” A simple JSP in front of InfoView
recycles the session using
useSession(sessionId)
getCESession()
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 19
What is BOInterface?
What is Repository Explorer?
Step 1 Create a Session
Step 2 Open a Document
Step 3 Set Prompts
Step 4 Get PDF
Step 5 Schedule to SMTP
Step 6 Create and Schedule Program Object
Step 7 Create User, Create Group, Associate Both
Q&A
Topics
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 20
BOReportHandler
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 21
Use BOReportHandler To Open a Document
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 22
Recap: Opening a Document
You need a BOReportHandler object
Instantiate it with
new BOReportHandler(boReport)
To open a document, use
getStorageToken(…)
A storage token is a handle to a document
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 23
What is BOInterface?
What is Repository Explorer?
Step 1 Create a Session
Step 2 Open a Document
Step 3 Set Prompts
Step 4 Get PDF
Step 5 Schedule to SMTP
Step 6 Create and Schedule Program Object
Step 7 Create User, Create Group, Associate Both
Q&A
Topics
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 24
BOReportHandler
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 25
Use BOReportHandler To Work with Documents
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 26
Use BOReportHandler To Set Prompts
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 27
Use BOPromptHolder For Special Prompts
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 28
Use BOPromptHolder For Special Prompts
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 29
Recap: Setting Prompts
You again need the BOReportHandler Object
You also need a BOPromptHolder
For special Prompts see Javadocof BOPromptHolder
To set the prompts, use
setPrompts(storageToken, prompts)
A new storage token is returned
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 30
What is BOInterface?
What is Repository Explorer?
Step 1 Create a Session
Step 2 Open a Document
Step 3 Set Prompts
Step 4 Get PDF
Step 5 Schedule to SMTP
Step 6 Create and Schedule Program Object
Step 7 Create User, Create Group, Associate Both
Q&A
Topics
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 31
BOReportViewer
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 32
Use BOReportViewerPDF to get a PDF
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 33
Recap: Getting a Report in PDF
You need a BOReportViewerPDF Object
Instantiate it with
new BOReportViewerPDF(boReport)
To get a document in PDF, use
getDocumentPDF(storageToken)
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 34
What is BOInterface?
What is Repository Explorer?
Step 1 Create a Session
Step 2 Open a Document
Step 3 Set Prompts
Step 4 Get PDF
Step 5 Schedule to SMTP
Step 6 Create and Schedule Program Object
Step 7 Create User, Create Group, Associate Both
Q&A
Topics
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 35
BOReportScheduler
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 36
Use BOReportSchedulerSMTP for Mail Schedules
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 37
Use BOReportSchedulerSMTP for Mail Schedules
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 38
Use BOReportSchedulerSMTP for Mail Schedules
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 39
Use BOReportSchedulerSMTP.Metadata
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 40
Use BOReportSchedulerSMTP.Metadata
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 41
Use BOReportSchedulerHelper.Metadata
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 42
Use BOReportSchedulerHelper.Metadata
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 43
Recap: Scheduling a Report To SMTP
You need a BOReportSchedulerSMTP object
Instantiate it with
new BOReportSchedulerSMTP(boReport)
Use metadata to specify what to do
To schedule, use
scheduleReport(storageToken, metadata)
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 44
What is BOInterface?
What is Repository Explorer?
Step 1 Create a Session
Step 2 Open a Document
Step 3 Set Prompts
Step 4 Get PDF
Step 5 Schedule to SMTP
Step 6 Create and Schedule Program Object
Step 7 Create User, Create Group, Associate Both
Q&A
Topics
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 45
Tools
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 46
Use Tools – ProgramObject as Template
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 47
Use Tools – ProgramObject as Template
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 48
Use Tools – ProgramObject as Template
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 49
Recap: Scheduling a Program Object
You use Tools – ProgramObject as template
Run it from the command line for testing
Schedule it to the enterprise system
Runs with the credentials of the userfor whom it was scheduled
You automatically have Parameters from properties file Command line parameters All SDK objects
Anything you can program with BOInterface, you can schedule
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 50
What is BOInterface?
What is Repository Explorer?
Step 1 Create a Session
Step 2 Open a Document
Step 3 Set Prompts
Step 4 Get PDF
Step 5 Schedule to SMTP
Step 6 Create and Schedule Program Object
Step 7 Create User, Create Group, Associate Both
Q&A
Topics
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 51
BOAdmin
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 52
Use the BOAdmin Package For Administration
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 53
Use the BOAdmin Package For Administration
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 54
Use the BOAdmin Package For Administration
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 55
Use the BOAdmin Package For Administration
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 56
Use the BOAdmin Package For Administration
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 57
Use the BOAdmin Package For Administration
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 58
Use the BOAdmin Package For Administration
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 59
Use the BOAdmin Package For Administration
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 60
Use the BOAdmin Package For Administration
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 61
Recap: Administrating Users and Groups
You need a BOAdmin object
Instantiate it with
new BOAdmin(boReport)
You can also extend the metadataof any object in the repositorye.g. use
setUserProperty(…)
Copyright © 2006 Business Objects S.A. All rights reserved.Slide 62
Questions Matthias Nott
Contact information Email: [email protected]
Q&A