Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@
<version>${revision}</version>
</parent>
<artifactId>org.eclipse.daanse.xmla.api</artifactId>
<name>Daanse XMLA API</name>
<description>Core API interfaces and data structures for XML for Analysis (XMLA) protocol implementation. This module defines the fundamental contracts and types used for XMLA communication between clients and OLAP servers.</description>
</project>
2 changes: 2 additions & 0 deletions client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
</parent>
<artifactId>org.eclipse.daanse.xmla.client</artifactId>
<packaging>pom</packaging>
<name>Daanse XMLA Client</name>
<description>Parent module for XMLA client implementations. Contains client-side components for communicating with XMLA servers, including SOAP message handling and web service client utilities.</description>
<modules>
<module>soapmessage</module>
</modules>
Expand Down
2 changes: 2 additions & 0 deletions client/soapmessage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<version>${revision}</version>
</parent>
<artifactId>org.eclipse.daanse.xmla.client.soapmessage</artifactId>
<name>Daanse XMLA Client SOAP Message</name>
<description>SOAP message-based XMLA client implementation. Provides SOAP message handling, serialization, and communication capabilities for connecting to XMLA servers using web service protocols.</description>

<dependencies>
<dependency>
Expand Down
2 changes: 2 additions & 0 deletions model.jakarta.xml.bind.xmla/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>org.eclipse.daanse.xmla.model.jakarta.xml.bind.xmla</artifactId>
<name>Daanse XMLA Jakarta XML Bind Model</name>
<description>Jakarta XML Binding (JAXB) model for XMLA protocol. Provides JAXB-annotated classes and XML binding support for XMLA request/response structures and data types.</description>
<dependencies>
<dependency>
<groupId>org.osgi</groupId>
Expand Down
2 changes: 2 additions & 0 deletions model.jakarta.xml.bind.xsd/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<version>${revision}</version>
</parent>
<artifactId>org.eclipse.daanse.xmla.model.jakarta.xml.bind.xsd</artifactId>
<name>Daanse XMLA Jakarta XML Bind XSD Model</name>
<description>XSD-based Jakarta XML Binding model for XMLA protocol. Generates JAXB classes from XML Schema definitions, providing strongly-typed Java representations of XMLA data structures and protocol elements.</description>
<dependencies>
<dependency>
<groupId>jakarta.xml.bind</groupId>
Expand Down
2 changes: 2 additions & 0 deletions model.record/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<version>${revision}</version>
</parent>
<artifactId>org.eclipse.daanse.xmla.model.record</artifactId>
<name>Daanse XMLA Record Model</name>
<description>Record-based model implementation for XMLA protocol. Provides Java record classes for XMLA data structures, offering immutable and efficient representations of XMLA requests and responses.</description>

<dependencies>
<dependency>
Expand Down
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
<artifactId>org.eclipse.daanse.xmla</artifactId>
<version>${revision}</version>
<packaging>pom</packaging>
<name>Eclipse Daanse XMLA Protocol API and Implementation</name>
<description>Complete XMLA (XML for Analysis) protocol implementation providing standardized web service interfaces for OLAP data access. Includes comprehensive API definitions, client libraries, server adapters with multiple transport mechanisms, and Jakarta XML bindings for seamless integration with multidimensional databases and business intelligence applications.</description>

<properties>
<revision>0.0.1-SNAPSHOT</revision>
Expand Down
2 changes: 2 additions & 0 deletions server/adapter.soapmessage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<version>${revision}</version>
</parent>
<artifactId>org.eclipse.daanse.xmla.server.adapter.soapmessage</artifactId>
<name>Daanse XMLA Server SOAP Message Adapter</name>
<description>SOAP message adapter for XMLA server implementations. Provides conversion and adaptation layer between XMLA API calls and SOAP message format, handling serialization and protocol adaptation.</description>
<dependencies>
<dependency>
<groupId>org.eclipse.daanse</groupId>
Expand Down
2 changes: 2 additions & 0 deletions server/authentication/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<version>${revision}</version>
</parent>
<artifactId>org.eclipse.daanse.xmla.server.authentication</artifactId>
<name>Daanse XMLA Server Authentication</name>
<description>Authentication module for XMLA server. Provides security and authentication mechanisms for protecting XMLA endpoints, including servlet-based authentication and authorization support.</description>
<dependencies>
<dependency>
<groupId>org.osgi</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,7 @@
import static org.osgi.service.servlet.context.ServletContextHelper.REMOTE_USER;

@Component(scope = ServiceScope.SINGLETON)
@HttpWhiteboardFilterPattern("/xmla3")
public class AuthFilter implements Filter {

public static final String ADMIN = "admin";
public static final String USER1 = "user1";
public static final String ROLE1 = "role1";
public static final String USER2 = "user2";
public static final String ROLE2 = "role2";
public static final String USER3 = "user3";
public static final String ROLE3 = "role3";
public class NameToRoleAuthFilter implements Filter {

@Override
public void init(FilterConfig filterConfig) {
Expand All @@ -67,7 +58,6 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha

protected boolean authenticated(HeaderMapRequestWrapper request) {
request.setAttribute(AUTHENTICATION_TYPE, HttpServletRequest.BASIC_AUTH);
boolean success = false;
String authHeader = request.getHeader("Authorization");

if (authHeader != null) {
Expand All @@ -77,38 +67,9 @@ protected boolean authenticated(HeaderMapRequestWrapper request) {
String username = usernameAndPassword.substring(0, userNameIndex);
String password = usernameAndPassword.substring(userNameIndex + 1);

success = (username.equals(ADMIN) && password.equals(ADMIN))
|| (username.equals(USER1) && password.equals(USER1))
|| (username.equals(USER2) && password.equals(USER2))
|| (username.equals(USER3) && password.equals(USER3));

if (success) {
switch (username) {
case ADMIN:
request.setAttribute(REMOTE_USER, ADMIN);
request.setAttribute("ROLE", ADMIN);
// request.addHeader("ROLE", ADMIN);
request.addHeader("USER", ADMIN);
break;
case USER1:
request.setAttribute(REMOTE_USER, USER1);
request.addHeader("ROLE", ROLE1);
request.addHeader("USER", USER1);
break;
case USER2:
request.setAttribute(REMOTE_USER, USER2);
request.addHeader("ROLE", ROLE2);
request.addHeader("USER", USER2);
break;
case USER3:
request.setAttribute(REMOTE_USER, USER3);
request.addHeader("ROLE", ROLE3);
request.addHeader("USER", USER3);
break;
}
}
request.setAttribute(REMOTE_USER, username);
}
return success;
return true;
}

@Override
Expand Down
2 changes: 2 additions & 0 deletions server/jakarta.jws/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>org.eclipse.daanse.xmla.server.jakarta.jws</artifactId>
<name>Daanse XMLA Server Jakarta JWS</name>
<description>Jakarta JWS (Java Web Services) implementation for XMLA server. Provides web service annotations and JWS-based endpoint implementations for exposing XMLA functionality as standard Java web services.</description>

<dependencies>
<dependency>
Expand Down
2 changes: 2 additions & 0 deletions server/jakarta.saaj/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<version>${revision}</version>
</parent>
<artifactId>org.eclipse.daanse.xmla.server.jakarta.saaj</artifactId>
<name>Daanse XMLA Server Jakarta SAAJ Implementation</name>
<description>XMLA server implementation using Jakarta SOAP with Attachments API for Java (SAAJ). This module provides a servlet-based XMLA server that processes SOAP requests using the Jakarta EE SAAJ framework.</description>
<dependencies>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* Copyright (c) 2023 Contributors to the Eclipse Foundation.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* SmartCity Jena - initial
*/
package org.eclipse.daanse.xmla.server.jakarta.saaj.impl;

import org.eclipse.daanse.xmla.server.jakarta.saaj.api.Constants;
Expand Down
2 changes: 2 additions & 0 deletions server/jakarta.xml.ws.provider.soapmessage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<version>${revision}</version>
</parent>
<artifactId>org.eclipse.daanse.xmla.server.jakarta.xml.ws.provider.soapmessage</artifactId>
<name>Daanse XMLA Server Jakarta XML WS Provider SOAP Message</name>
<description>Jakarta XML Web Services provider with SOAP message support for XMLA server. Implements JAX-WS Provider interface for direct SOAP message handling and processing in XMLA server endpoints.</description>
<dependencies>
<dependency>
<groupId>org.eclipse.daanse</groupId>
Expand Down
2 changes: 2 additions & 0 deletions server/jdk.httpserver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<version>${revision}</version>
</parent>
<artifactId>org.eclipse.daanse.xmla.server.jdk.httpserver</artifactId>
<name>Daanse XMLA Server JDK HTTP Server Implementation</name>
<description>XMLA server implementation using the built-in JDK HTTP server (com.sun.net.httpserver). This module provides a lightweight, standalone XMLA server without requiring external servlet containers or application servers.</description>
<dependencies>


Expand Down
2 changes: 2 additions & 0 deletions server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<version>${revision}</version>
</parent>
<artifactId>org.eclipse.daanse.xmla.server</artifactId>
<name>Daanse XMLA Server Modules</name>
<description>Parent module for XMLA server implementations and related components. This aggregates various XMLA server technologies including Jakarta EE servlets, JDK HTTP server, and authentication mechanisms.</description>
<packaging>pom</packaging>
<modules>
<module>tck</module>
Expand Down
2 changes: 2 additions & 0 deletions server/tck/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<version>${revision}</version>
</parent>
<artifactId>org.eclipse.daanse.xmla.server.tck</artifactId>
<name>Daanse XMLA Server TCK</name>
<description>Technology Compatibility Kit (TCK) for XMLA server implementations. Provides comprehensive test suites and compliance testing framework to validate XMLA server behavior and protocol conformance.</description>
<properties>
<sonar.exclusions>src/**/tck/**/*</sonar.exclusions>
</properties>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
* Copyright (c) 2023 Contributors to the Eclipse Foundation.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* SmartCity Jena - initial
* Stefan Bischof (bipolis.org) - initial
*/
package org.eclipse.daanse.xmla.server.tck;

import java.io.IOException;
Expand All @@ -12,7 +25,7 @@

@Component(immediate = true)
@RequireConfigurationAdmin
public class TestSetup {
public class SaajTestSetup {

@Reference
ConfigurationAdmin ca;
Expand Down
Loading