Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

61
Scheduling Java Objects Using the SDK Matthias Nott, Business Objects

Transcript of Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Page 1: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Scheduling Java ObjectsUsing the SDK

Scheduling Java ObjectsUsing the SDK

Matthias Nott, Business Objects

Page 2: Scheduling Java Objects Using 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

Page 3: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

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

Page 4: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

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?

Page 5: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 6

What Is BOInterface?

Page 6: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

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

Page 7: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 8

What Is Repository Explorer?

Page 8: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

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

Page 9: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 10

Repository Explorer: Repository While Developing

Page 10: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

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

Page 11: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 12

BOReport

Page 12: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 13

Use the Documentation: BOReport Package

Page 13: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 14

Use the Documentation: BOReport Class

Page 14: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 15

Use BOReport To Open a Session

Page 15: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 16

Use BOReport To Reuse a Session

Page 16: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

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

Page 17: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

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()

Page 18: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

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

Page 19: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 20

BOReportHandler

Page 20: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 21

Use BOReportHandler To Open a Document

Page 21: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

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

Page 22: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

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

Page 23: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 24

BOReportHandler

Page 24: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 25

Use BOReportHandler To Work with Documents

Page 25: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 26

Use BOReportHandler To Set Prompts

Page 26: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 27

Use BOPromptHolder For Special Prompts

Page 27: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 28

Use BOPromptHolder For Special Prompts

Page 28: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

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

Page 29: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

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

Page 30: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 31

BOReportViewer

Page 31: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 32

Use BOReportViewerPDF to get a PDF

Page 32: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

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)

Page 33: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

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

Page 34: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 35

BOReportScheduler

Page 35: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 36

Use BOReportSchedulerSMTP for Mail Schedules

Page 36: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 37

Use BOReportSchedulerSMTP for Mail Schedules

Page 37: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 38

Use BOReportSchedulerSMTP for Mail Schedules

Page 38: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 39

Use BOReportSchedulerSMTP.Metadata

Page 39: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 40

Use BOReportSchedulerSMTP.Metadata

Page 40: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 41

Use BOReportSchedulerHelper.Metadata

Page 41: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 42

Use BOReportSchedulerHelper.Metadata

Page 42: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

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)

Page 43: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

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

Page 44: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 45

Tools

Page 45: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 46

Use Tools – ProgramObject as Template

Page 46: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 47

Use Tools – ProgramObject as Template

Page 47: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 48

Use Tools – ProgramObject as Template

Page 48: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

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

Page 49: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

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

Page 50: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 51

BOAdmin

Page 51: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 52

Use the BOAdmin Package For Administration

Page 52: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 53

Use the BOAdmin Package For Administration

Page 53: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 54

Use the BOAdmin Package For Administration

Page 54: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 55

Use the BOAdmin Package For Administration

Page 55: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 56

Use the BOAdmin Package For Administration

Page 56: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 57

Use the BOAdmin Package For Administration

Page 57: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 58

Use the BOAdmin Package For Administration

Page 58: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 59

Use the BOAdmin Package For Administration

Page 59: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 60

Use the BOAdmin Package For Administration

Page 60: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

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(…)

Page 61: Scheduling Java Objects Using the SDK Matthias Nott, Business Objects.

Copyright © 2006 Business Objects S.A. All rights reserved.Slide 62

Questions Matthias Nott

Contact information Email: [email protected]

Q&A