-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
768 additions
and
67 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,7 @@ class Profile specializes SystemUser | |
*/ | ||
end; | ||
|
||
role class Anonymous | ||
end; | ||
|
||
end. |
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: Blob Store | ||
Bundle-SymbolicName: com.abstratt.blobstore;singleton:=true | ||
Bundle-Version: 2.2.201606.qualifier | ||
Bundle-Vendor: ABSTRATT | ||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8 | ||
Export-Package: com.abstratt.blobstore | ||
Require-Bundle: com.abstratt.pluginutils, | ||
org.eclipse.equinox.registry, | ||
org.eclipse.core.runtime;visibility:=reexport |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
source.. = src/ | ||
output.. = bin/ | ||
bin.includes = META-INF/,\ | ||
.,\ | ||
plugin.xml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?eclipse version="3.0"?> | ||
<plugin> | ||
</plugin> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>com.abstratt.nodestore</groupId> | ||
<artifactId>com.abstratt.nodestore</artifactId> | ||
<version>2.2.201606-SNAPSHOT</version> | ||
<packaging>eclipse-plugin</packaging> | ||
<parent> | ||
<artifactId>runtime</artifactId> | ||
<groupId>com.abstratt.mdd.kirra</groupId> | ||
<version>2.2.201606-SNAPSHOT</version> | ||
<relativePath>..</relativePath> | ||
</parent> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<!-- Schema file written by PDE --> | ||
<schema targetNamespace="com.abstratt.nodestore" xmlns="http://www.w3.org/2001/XMLSchema"> | ||
<annotation> | ||
<appinfo> | ||
<meta.schema plugin="com.abstratt.nodestore" id="factories" name="Node Store Factories"/> | ||
</appinfo> | ||
<documentation> | ||
[Enter description of this extension point.] | ||
</documentation> | ||
</annotation> | ||
|
||
<element name="extension"> | ||
<annotation> | ||
<appinfo> | ||
<meta.element /> | ||
</appinfo> | ||
</annotation> | ||
<complexType> | ||
<sequence> | ||
<element ref="factory"/> | ||
</sequence> | ||
<attribute name="point" type="string" use="required"> | ||
<annotation> | ||
<documentation> | ||
|
||
</documentation> | ||
</annotation> | ||
</attribute> | ||
<attribute name="id" type="string"> | ||
<annotation> | ||
<documentation> | ||
|
||
</documentation> | ||
</annotation> | ||
</attribute> | ||
<attribute name="name" type="string"> | ||
<annotation> | ||
<documentation> | ||
|
||
</documentation> | ||
<appinfo> | ||
<meta.attribute translatable="true"/> | ||
</appinfo> | ||
</annotation> | ||
</attribute> | ||
</complexType> | ||
</element> | ||
|
||
<element name="factory"> | ||
<complexType> | ||
<attribute name="name" type="string" use="required"> | ||
<annotation> | ||
<documentation> | ||
|
||
</documentation> | ||
</annotation> | ||
</attribute> | ||
<attribute name="class" type="string" use="required"> | ||
<annotation> | ||
<documentation> | ||
|
||
</documentation> | ||
<appinfo> | ||
<meta.attribute kind="java" basedOn=":com.abstratt.nodestore.INodeStoreFactory"/> | ||
</appinfo> | ||
</annotation> | ||
</attribute> | ||
</complexType> | ||
</element> | ||
|
||
<annotation> | ||
<appinfo> | ||
<meta.section type="since"/> | ||
</appinfo> | ||
<documentation> | ||
[Enter the first release in which this extension point appears.] | ||
</documentation> | ||
</annotation> | ||
|
||
<annotation> | ||
<appinfo> | ||
<meta.section type="examples"/> | ||
</appinfo> | ||
<documentation> | ||
[Enter extension point usage example here.] | ||
</documentation> | ||
</annotation> | ||
|
||
<annotation> | ||
<appinfo> | ||
<meta.section type="apiinfo"/> | ||
</appinfo> | ||
<documentation> | ||
[Enter API information here.] | ||
</documentation> | ||
</annotation> | ||
|
||
<annotation> | ||
<appinfo> | ||
<meta.section type="implementation"/> | ||
</appinfo> | ||
<documentation> | ||
[Enter information about supplied implementation of this extension point.] | ||
</documentation> | ||
</annotation> | ||
|
||
|
||
</schema> |
29 changes: 29 additions & 0 deletions
29
runtime/com.abstratt.blobstore/src/com/abstratt/blobstore/BlobMetadata.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.abstratt.blobstore; | ||
|
||
public class BlobMetadata { | ||
private String token; | ||
private String originalName; | ||
private String contentType; | ||
private long contentLength; | ||
public BlobMetadata(String token, String originalName, String contentType, long contentLength) { | ||
this.token = token; | ||
this.originalName = originalName; | ||
this.contentType = contentType; | ||
this.contentLength = contentLength; | ||
} | ||
public BlobMetadata() { | ||
} | ||
|
||
public String getToken() { | ||
return token; | ||
} | ||
public String getOriginalName() { | ||
return originalName; | ||
} | ||
public String getContentType() { | ||
return contentType; | ||
} | ||
public long getContentLength() { | ||
return contentLength; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
runtime/com.abstratt.blobstore/src/com/abstratt/blobstore/BlobStoreException.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.abstratt.blobstore; | ||
|
||
public class BlobStoreException extends RuntimeException { | ||
private static final long serialVersionUID = 1L; | ||
public BlobStoreException(String message) { | ||
super(message); | ||
} | ||
public BlobStoreException(Exception e) { | ||
super(e); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
runtime/com.abstratt.blobstore/src/com/abstratt/blobstore/IBlobStore.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.abstratt.blobstore; | ||
|
||
import java.io.InputStream; | ||
|
||
public interface IBlobStore { | ||
BlobMetadata addBlob(String originalName, String contentType) throws BlobStoreException; | ||
InputStream getContents(String token) throws BlobStoreException; | ||
BlobMetadata setContents(String token, InputStream contents) throws BlobStoreException; | ||
BlobMetadata getMetadata(String token) throws BlobStoreException; | ||
void deleteBlob(String token) throws BlobStoreException; | ||
} |
6 changes: 6 additions & 0 deletions
6
runtime/com.abstratt.blobstore/src/com/abstratt/blobstore/IBlobStoreCatalog.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.abstratt.blobstore; | ||
|
||
public interface IBlobStoreCatalog { | ||
IBlobStore getBlobStore(String namespace); | ||
void zap(); | ||
} |
Oops, something went wrong.