This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WebReportSource reportSource = adminSession.getFactory().getReportSource(); | |
WebReportExecutionSettings webReportExecutionSettings = reportSource.newExecutionSettings(); | |
webReportExecutionSettings.setSource("your-cube-id-here", | |
EnumWebReportSourceType.WebReportSourceTypeCube); | |
WebReportInstance webReportInstance = reportSource.getNewInstance(webReportExecutionSettings); | |
webReportInstance.setAsync(false); | |
webReportInstance.pollStatus(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
webIServerSession.getFactory().getObjectSource().getUserServicesSource().getNamedUser(EnumWebNamedUsers.Everyone); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
webIServerSession.getFactory().getObjectSource().getFolderID(EnumDSSXMLFolderNames.DssXmlFolderNamePublicReports); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Find all components of a given object | |
* | |
* @return a folder containing the search results | |
*/ | |
public WebFolder searchForComponentObjects(WebObjectSource webObjectSource, WebObjectInfo objectToFindComponentsOf) | |
throws WebObjectsException { | |
// Spawn a search | |
WebSearch webSearch = webObjectSource.getNewSearchObject(); | |
// Search in the project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Finds all objects of a certain type. | |
* | |
* @return a folder containing the search results | |
*/ | |
public WebFolder searchForObjectTypes(WebObjectSource webObjectSource, int objectType) | |
throws WebObjectsException { | |
// Spawn a search | |
WebSearch webSearch = webObjectSource.getNewSearchObject(); | |
// Search in the project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<parent> | |
<artifactId>local-war-parent</artifactId> | |
<groupId>local.mstr.war</groupId> | |
<version>1.0-SNAPSHOT</version> | |
</parent> | |
<modelVersion>4.0.0</modelVersion> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Used to dynamically replace the <web:resource type="custom-style" /> custom tag with itself and custom JSP | |
<web\:resource\ type\="custom-style"\ />=<web:resource type="custom-style" />\n<% System.out.println("Hello world!"); %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<parent> | |
<artifactId>local-war-parent</artifactId> | |
<groupId>local.mstr.war</groupId> | |
<version>1.0-SNAPSHOT</version> | |
</parent> | |
<modelVersion>4.0.0</modelVersion> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%-- | |
This custom tag automatically includes the "global.css" and "{PAGENAME}Page.css" files found insite the "/style" subfolder of a | |
plugin folder. | |
It can be used to customize the look and feel of the application without modifying any configuration file or jsp. | |
--%> | |
<web:resource type="custom-style" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
password="ohNoAPlainTextPassword!" |