Skip to content

Commit ec233df

Browse files
committed
Relocated corrupt repository.
1 parent 4e5fca3 commit ec233df

File tree

80 files changed

+13970
-45
lines changed

Some content is hidden

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

80 files changed

+13970
-45
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
/*
2+
* Copyright 2010 Nabeel Mukhtar
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
package com.github.api.v2.services.example;
18+
19+
import java.util.List;
20+
21+
import com.github.api.v2.schema.Organization;
22+
import com.github.api.v2.schema.Repository;
23+
import com.github.api.v2.schema.User;
24+
import com.github.api.v2.services.GitHubServiceFactory;
25+
import com.github.api.v2.services.OrganizationService;
26+
27+
/**
28+
* The Class OrganizationApiSample.
29+
*/
30+
public class OrganizationApiSample {
31+
32+
/**
33+
* The main method.
34+
*
35+
* @param args
36+
* the arguments
37+
*/
38+
public static void main(String[] args) throws Exception {
39+
GitHubServiceFactory factory = GitHubServiceFactory.newInstance();
40+
OrganizationService service = factory.createOrganizationService();
41+
Organization organization = service.getOrganization("github");
42+
printResult(organization);
43+
List<User> publicMembers = service.getPublicMembers("github");
44+
for (User user : publicMembers) {
45+
printResult(user);
46+
}
47+
List<Repository> publicRepositories = service.getPublicRepositories("github");
48+
for (Repository repository : publicRepositories) {
49+
printResult(repository);
50+
}
51+
}
52+
53+
private static void printResult(Repository repository) {
54+
System.out.println(repository);
55+
}
56+
57+
private static void printResult(User user) {
58+
System.out.println(user);
59+
}
60+
61+
/**
62+
* Prints the result.
63+
*
64+
* @param organization
65+
* the repository
66+
*/
67+
private static void printResult(Organization organization) {
68+
System.out.println(organization);
69+
}
70+
}

pom.xml

Lines changed: 7 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,10 @@
11
<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/maven-v4_0_0.xsd">
22
<modelVersion>4.0.0</modelVersion>
3-
<groupId>com.github.api.v2</groupId>
4-
<artifactId>github-java-sdk</artifactId>
5-
<packaging>pom</packaging>
6-
<version>0.1</version>
7-
<name>GitHub API Java SDK</name>
8-
<inceptionYear>2010</inceptionYear>
9-
<description>A Java wrapper for GitHub API.</description>
10-
<url>http://github.com/nabeelmukhtar/github-java-sdk</url>
11-
12-
<issueManagement>
13-
<system>github</system>
14-
<url>http://github.com/nabeelmukhtar/github-java-sdk/issues</url>
15-
</issueManagement>
16-
17-
<scm>
18-
<connection>scm:git:git://github.com/nabeelmukhtar/github-java-sdk.git</connection>
19-
<developerConnection>scm:git:git@github.com:nabeelmukhtar/github-java-sdk.git</developerConnection>
20-
<url>https://nabeelmukhtar@github.com/nabeelmukhtar/github-java-sdk.git</url>
21-
</scm>
22-
23-
<developers>
24-
<developer>
25-
<name>Nabeel Mukhtar</name>
26-
<id>nabeelmukhtar</id>
27-
</developer>
28-
</developers>
29-
30-
<modules>
31-
<module>schema</module>
32-
<module>core</module>
33-
<module>dist</module>
34-
</modules>
35-
<build>
36-
<plugins>
37-
<plugin>
38-
<groupId>org.apache.maven.plugins</groupId>
39-
<artifactId>maven-compiler-plugin</artifactId>
40-
<version>2.3.1</version>
41-
<configuration>
42-
<source>1.6</source>
43-
<target>1.6</target>
44-
</configuration>
45-
</plugin>
46-
</plugins>
47-
</build>
3+
<parent>
4+
<groupId>com.github.api.v2</groupId>
5+
<artifactId>github-java-sdk</artifactId>
6+
<version>0.1</version>
7+
</parent>
8+
<artifactId>github-java-schema</artifactId>
9+
<packaging>jar</packaging>
4810
</project>
Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
/*
2+
* Copyright 2010 Nabeel Mukhtar
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
package com.github.api.v2.schema;
18+
19+
/**
20+
* The Class Blob.
21+
*/
22+
public class Blob extends SchemaEntity {
23+
24+
/** The Constant serialVersionUID. */
25+
private static final long serialVersionUID = 9155892708485181542L;
26+
27+
/** The name. */
28+
private String name;
29+
30+
/** The size. */
31+
private int size;
32+
33+
/** The sha. */
34+
private String sha;
35+
36+
/** The mode. */
37+
private String mode;
38+
39+
/** The mime type. */
40+
private String mimeType;
41+
42+
/** The data. */
43+
private String data;
44+
45+
/**
46+
* Gets the name.
47+
*
48+
* @return the name
49+
*/
50+
public String getName() {
51+
return name;
52+
}
53+
54+
/**
55+
* Sets the name.
56+
*
57+
* @param name
58+
* the new name
59+
*/
60+
public void setName(String name) {
61+
this.name = name;
62+
}
63+
64+
/**
65+
* Gets the size.
66+
*
67+
* @return the size
68+
*/
69+
public int getSize() {
70+
return size;
71+
}
72+
73+
/**
74+
* Sets the size.
75+
*
76+
* @param size
77+
* the new size
78+
*/
79+
public void setSize(int size) {
80+
this.size = size;
81+
}
82+
83+
/**
84+
* Gets the sha.
85+
*
86+
* @return the sha
87+
*/
88+
public String getSha() {
89+
return sha;
90+
}
91+
92+
/**
93+
* Sets the sha.
94+
*
95+
* @param sha
96+
* the new sha
97+
*/
98+
public void setSha(String sha) {
99+
this.sha = sha;
100+
}
101+
102+
/**
103+
* Gets the mode.
104+
*
105+
* @return the mode
106+
*/
107+
public String getMode() {
108+
return mode;
109+
}
110+
111+
/**
112+
* Sets the mode.
113+
*
114+
* @param mode
115+
* the new mode
116+
*/
117+
public void setMode(String mode) {
118+
this.mode = mode;
119+
}
120+
121+
/**
122+
* Gets the mime type.
123+
*
124+
* @return the mime type
125+
*/
126+
public String getMimeType() {
127+
return mimeType;
128+
}
129+
130+
/**
131+
* Sets the mime type.
132+
*
133+
* @param mimeType
134+
* the new mime type
135+
*/
136+
public void setMimeType(String mimeType) {
137+
this.mimeType = mimeType;
138+
}
139+
140+
/**
141+
* Gets the data.
142+
*
143+
* @return the data
144+
*/
145+
public String getData() {
146+
return data;
147+
}
148+
149+
/**
150+
* Sets the data.
151+
*
152+
* @param data
153+
* the new data
154+
*/
155+
public void setData(String data) {
156+
this.data = data;
157+
}
158+
/* (non-Javadoc)
159+
* @see java.lang.Object#toString()
160+
*/
161+
@Override
162+
public String toString() {
163+
return "Blob [data=" + data + ", mimeType=" + mimeType + ", mode="
164+
+ mode + ", name=" + name + ", sha=" + sha + ", size=" + size
165+
+ "]";
166+
}
167+
}
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
/*
2+
* Copyright 2010 Nabeel Mukhtar
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
package com.github.api.v2.schema;
18+
19+
/**
20+
* The Class Id.
21+
*/
22+
public class Block extends SchemaEntity {
23+
24+
/** The Constant serialVersionUID. */
25+
private static final long serialVersionUID = 9155892708485181542L;
26+
27+
/** The id. */
28+
private String name;
29+
private int start;
30+
private int count;
31+
/**
32+
* @return the name
33+
*/
34+
public String getName() {
35+
return name;
36+
}
37+
/**
38+
* @param name the name to set
39+
*/
40+
public void setName(String name) {
41+
this.name = name;
42+
}
43+
/**
44+
* @return the start
45+
*/
46+
public int getStart() {
47+
return start;
48+
}
49+
/**
50+
* @param start the start to set
51+
*/
52+
public void setStart(int start) {
53+
this.start = start;
54+
}
55+
/**
56+
* @return the count
57+
*/
58+
public int getCount() {
59+
return count;
60+
}
61+
/**
62+
* @param count the count to set
63+
*/
64+
public void setCount(int count) {
65+
this.count = count;
66+
}
67+
/* (non-Javadoc)
68+
* @see java.lang.Object#toString()
69+
*/
70+
@Override
71+
public String toString() {
72+
return "Block [count=" + count + ", name=" + name + ", start=" + start
73+
+ "]";
74+
}
75+
}

0 commit comments

Comments
 (0)