Skip to content

Commit 6f5e9cc

Browse files
author
Prasanna Santhanam
committed
Add the blob of deps jars for non oss
Non OSS jars for building Apache CloudStack
0 parents  commit 6f5e9cc

File tree

696 files changed

+50916
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

696 files changed

+50916
-0
lines changed

CAStorSDK-1.3.1-CS40.jar

129 KB
Binary file not shown.

VMware-vSphere-SDK-5.1.0-774886.zip

43.8 MB
Binary file not shown.

XenServerJava/Makefile

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Makefile to compile the Xen Java SDK bindings
2+
3+
BINDINGJAVAFILES := $(wildcard com/xensource/xenapi/*.java)
4+
BINDINGCLASSFILES := $(BINDINGJAVAFILES:.java=.class)
5+
BINDINGJAR := xenserver-5.6.100-1.jar
6+
7+
CLASSPATH := :../cloud-xmlrpc-client-3.1.3.jar:../cloud-xmlrpc-common-3.1.3.jar:../cloud-ws-commons-util-1.0.2.jar
8+
EXAMPLECLASSPATH := :$(BINDINGJAR)$(CLASSPATH)
9+
10+
.PHONY: all
11+
all: $(BINDINGJAR) tests
12+
@ :
13+
14+
# Target to compile the automated tests
15+
.PHONY: tests
16+
tests: $(patsubst %.java,%.class,$(wildcard *.java))
17+
@ :
18+
19+
.PHONY: docs
20+
docs:
21+
javadoc -classpath ${CLASSPATH} -d doc -link http://java.sun.com/javase/6/docs/api com/xensource/xenapi/*.java
22+
23+
%.class: %.java
24+
javac -cp ${CLASSPATH} $^
25+
26+
$(BINDINGJAR): $(BINDINGCLASSFILES)
27+
jar -cvf $@ com/xensource/xenapi/*.class
28+
29+
.PHONY: cleanclass
30+
cleanclass:
31+
rm -f com/xensource/xenapi/*.class
32+
rm -f *.class
33+
34+
.PHONY: cleanjar
35+
cleanjar:
36+
rm -f $(BINDINGJAR)
37+
38+
.PHONY: cleandocs
39+
cleandocs:
40+
rm -rf doc
41+
42+
.PHONY: clean
43+
clean: cleanjar cleanclass cleandocs
44+
@ :

XenServerJava/pom.xml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<!--
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
-->
19+
<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">
20+
<modelVersion>4.0.0</modelVersion>
21+
<parent>
22+
<groupId>org.apache.cloudstack</groupId>
23+
<artifactId>cloudstack</artifactId>
24+
<version>4.2.0-SNAPSHOT</version>
25+
<relativePath>../../pom.xml</relativePath>
26+
</parent>
27+
<artifactId>xapi</artifactId>
28+
<version>5.6.100-1-SNAPSHOT</version>
29+
<name>Apache XenSource XAPI</name>
30+
<description>XenSource XAPI Java Bindings</description>
31+
<dependencies>
32+
<dependency>
33+
<groupId>org.apache.xmlrpc</groupId>
34+
<artifactId>xmlrpc-client</artifactId>
35+
<version>${cs.xmlrpc.version}</version>
36+
</dependency>
37+
</dependencies>
38+
<build>
39+
<sourceDirectory>src</sourceDirectory>
40+
<defaultGoal>install</defaultGoal>
41+
</build>
42+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
/* Copyright (c) Citrix Systems, Inc.
2+
* All rights reserved.
3+
*
4+
* Redistribution and use in source and binary forms, with or without
5+
* modification, are permitted provided that the following conditions
6+
* are met:
7+
*
8+
* 1) Redistributions of source code must retain the above copyright
9+
* notice, this list of conditions and the following disclaimer.
10+
*
11+
* 2) Redistributions in binary form must reproduce the above
12+
* copyright notice, this list of conditions and the following
13+
* disclaimer in the documentation and/or other materials
14+
* provided with the distribution.
15+
*
16+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
19+
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
20+
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
21+
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22+
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
25+
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
27+
* OF THE POSSIBILITY OF SUCH DAMAGE.
28+
*/
29+
30+
package com.xensource.xenapi;
31+
32+
public enum APIVersion
33+
{
34+
API_1_1, API_1_2, API_1_3, API_1_4, API_1_5, API_1_6, API_1_7, API_1_8, API_1_9, API_1_10, UNKNOWN;
35+
36+
public static APIVersion latest()
37+
{
38+
return API_1_10;
39+
}
40+
41+
public static APIVersion fromMajorMinor(long major, long minor)
42+
{
43+
if (major == 1 && minor == 10)
44+
{
45+
return API_1_10;
46+
}
47+
else if (major == 1 && minor == 9)
48+
{
49+
return API_1_9;
50+
}
51+
else if (major == 1 && minor == 8)
52+
{
53+
return API_1_8;
54+
}
55+
else if (major == 1 && minor == 7)
56+
{
57+
return API_1_7;
58+
}
59+
else if (major == 1 && minor == 6)
60+
{
61+
return API_1_6;
62+
}
63+
else if (major == 1 && minor == 5)
64+
{
65+
return API_1_5;
66+
}
67+
else if (major == 1 && minor == 4)
68+
{
69+
return API_1_4;
70+
}
71+
else if (major == 1 && minor == 3)
72+
{
73+
return API_1_3;
74+
}
75+
else if (major == 1 && minor == 2)
76+
{
77+
return API_1_2;
78+
}
79+
else if (major == 1 && minor == 1)
80+
{
81+
return API_1_1;
82+
}
83+
else
84+
{
85+
return UNKNOWN;
86+
}
87+
}
88+
89+
@Override
90+
public String toString()
91+
{
92+
switch (this)
93+
{
94+
case API_1_1:
95+
return "1.1";
96+
case API_1_2:
97+
return "1.2";
98+
case API_1_3:
99+
return "1.3";
100+
case API_1_4:
101+
return "1.4";
102+
case API_1_5:
103+
return "1.5";
104+
case API_1_6:
105+
return "1.6";
106+
case API_1_7:
107+
return "1.7";
108+
case API_1_8:
109+
return "1.8";
110+
case API_1_9:
111+
return "1.9";
112+
case API_1_10:
113+
return "1.10";
114+
default:
115+
return "Unknown";
116+
}
117+
}
118+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
/*
2+
* Copyright (c) Citrix Systems, Inc.
3+
* All rights reserved.
4+
*
5+
* Redistribution and use in source and binary forms, with or without
6+
* modification, are permitted provided that the following conditions
7+
* are met:
8+
*
9+
* 1) Redistributions of source code must retain the above copyright
10+
* notice, this list of conditions and the following disclaimer.
11+
*
12+
* 2) Redistributions in binary form must reproduce the above
13+
* copyright notice, this list of conditions and the following
14+
* disclaimer in the documentation and/or other materials
15+
* provided with the distribution.
16+
*
17+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
20+
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
21+
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
22+
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23+
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
26+
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
28+
* OF THE POSSIBILITY OF SUCH DAMAGE.
29+
*/
30+
31+
32+
package com.xensource.xenapi;
33+
34+
import com.xensource.xenapi.Types.BadServerResponse;
35+
import com.xensource.xenapi.Types.VersionException;
36+
import com.xensource.xenapi.Types.XenAPIException;
37+
38+
import java.io.PrintWriter;
39+
import java.io.StringWriter;
40+
import java.util.Date;
41+
import java.util.HashMap;
42+
import java.util.LinkedHashSet;
43+
import java.util.Map;
44+
import java.util.Set;
45+
46+
import org.apache.xmlrpc.XmlRpcException;
47+
48+
/**
49+
* Management of remote authentication services
50+
*
51+
* @author Citrix Systems, Inc.
52+
*/
53+
public class Auth extends XenAPIObject {
54+
55+
56+
public String toWireString() {
57+
return null;
58+
}
59+
60+
/**
61+
* This call queries the external directory service to obtain the subject_identifier as a string from the human-readable subject_name
62+
*
63+
* @param subjectName The human-readable subject_name, such as a username or a groupname
64+
* @return the subject_identifier obtained from the external directory service
65+
*/
66+
public static String getSubjectIdentifier(Connection c, String subjectName) throws
67+
BadServerResponse,
68+
XenAPIException,
69+
XmlRpcException {
70+
String method_call = "auth.get_subject_identifier";
71+
String session = c.getSessionReference();
72+
Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(subjectName)};
73+
Map response = c.dispatch(method_call, method_params);
74+
Object result = response.get("Value");
75+
return Types.toString(result);
76+
}
77+
78+
/**
79+
* This call queries the external directory service to obtain the user information (e.g. username, organization etc) from the specified subject_identifier
80+
*
81+
* @param subjectIdentifier A string containing the subject_identifier, unique in the external directory service
82+
* @return key-value pairs containing at least a key called subject_name
83+
*/
84+
public static Map<String, String> getSubjectInformationFromIdentifier(Connection c, String subjectIdentifier) throws
85+
BadServerResponse,
86+
XenAPIException,
87+
XmlRpcException {
88+
String method_call = "auth.get_subject_information_from_identifier";
89+
String session = c.getSessionReference();
90+
Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(subjectIdentifier)};
91+
Map response = c.dispatch(method_call, method_params);
92+
Object result = response.get("Value");
93+
return Types.toMapOfStringString(result);
94+
}
95+
96+
/**
97+
* This calls queries the external directory service to obtain the transitively-closed set of groups that the the subject_identifier is member of.
98+
*
99+
* @param subjectIdentifier A string containing the subject_identifier, unique in the external directory service
100+
* @return set of subject_identifiers that provides the group membership of subject_identifier passed as argument, it contains, recursively, all groups a subject_identifier is member of.
101+
*/
102+
public static Set<String> getGroupMembership(Connection c, String subjectIdentifier) throws
103+
BadServerResponse,
104+
XenAPIException,
105+
XmlRpcException {
106+
String method_call = "auth.get_group_membership";
107+
String session = c.getSessionReference();
108+
Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(subjectIdentifier)};
109+
Map response = c.dispatch(method_call, method_params);
110+
Object result = response.get("Value");
111+
return Types.toSetOfString(result);
112+
}
113+
114+
}

0 commit comments

Comments
 (0)