Library Access List Samples

In this section:

The Library Access List sample folder contains Java Applications that show how to create and manipulate ReportCaster Access Lists using the API. As with all the samples, it uses the ReportCaster authentication and context information contained in the samples.properties directory. These sample Java applications are presented as examples for learning purposes and are not represented as production quality applications.


Top of page

x
AL1_Add_AccessList.java

This application adds a new access list containing a single user to the ReportCaster repository. It accepts four arguments: owner, access list name, access list description, and the user on the list.

Usage: java AL1_Add_AccessList <owner> <name> <description> <user>


Top of page

x
AL2_Add_AccessElement.java

This application adds a user to an existing access list in the ReportCaster repository. It accepts four arguments: owner, access list name, access list description, and the user on the list.

Usage: java AL2_Add_AccessElement <owner> <name> <description> <user>


Top of page

x
AL3_Update_AccessList.java

This application replaces an existing user and burst value in an existing access list. It accepts three arguments: the access list name, the new user, and the new burst value.

Usage: AL3_Update_AccessList <name> <user> <burst value>


Top of page

x
AL4_Update_AccessElement.java

This application adds a user and burst value to an existing access list. It accepts three arguments: the access list name, the new user, and the new burst value.

Usage: AL4_Update_AccessElement <name> <user> <burst value>


Top of page

x
AL5_Get_AccessList.java

This application prints the name, description, and owner of an existing access list. It accepts one argument: the access list name.

Usage: java AL5_Get_AccessList <name>


Top of page

x
AL6_Get_AccessElement.java

This application prints the name, description and owner of an existing access list and lists the user and burst values in the access list. It accepts one argument: the access list name.

Usage: java AL6_Get_AccessElement <name>


Top of page

x
AL7_Delete_AccessList.java

This application deletes an existing access list from the ReportCaster repository. It accepts one argument: the access list name.

Usage: java AL7_Delete_AccessList <name>


Top of page

x
AL8_Delete_AccessElement.java

This application deletes a member from an existing access list in the ReportCaster repository. It accepts two arguments: the access list name and the member to be deleted.

Usage: java AL8_Delete_AccessElement <name> <member>


WebFOCUS