began database table definition and interface definition for the Universal
Message Store (UniStore)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
||||
* (the "License"); you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
|
||||
* WARRANTY OF ANY KIND, either express or implied. See the License for the specific
|
||||
* language governing rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is the Venice Web Communities System.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||
* for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||
* Copyright (C) 2003 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
package com.silverwrist.dynamo.iface;
|
||||
|
||||
public interface UniStoreBinaryPart extends UniStorePart, DataItem
|
||||
{
|
||||
// no additional methods
|
||||
|
||||
} // end interface UniStoreBinaryPart
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
||||
* (the "License"); you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
|
||||
* WARRANTY OF ANY KIND, either express or implied. See the License for the specific
|
||||
* language governing rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is the Venice Web Communities System.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||
* for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||
* Copyright (C) 2003 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
package com.silverwrist.dynamo.iface;
|
||||
|
||||
import java.security.acl.AclNotFoundException;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import com.silverwrist.dynamo.except.DatabaseException;
|
||||
import com.silverwrist.dynamo.except.DynamoSecurityException;
|
||||
|
||||
public interface UniStoreMessage extends SecureObjectStore
|
||||
{
|
||||
public long getMessageID();
|
||||
|
||||
public long getParentMessageID();
|
||||
|
||||
public void setParentMessageID(DynamoUser caller, long id) throws DatabaseException, DynamoSecurityException;
|
||||
|
||||
public int getSequence();
|
||||
|
||||
public void setSequence(DynamoUser caller, int seq) throws DatabaseException, DynamoSecurityException;
|
||||
|
||||
public int getCreatorUID();
|
||||
|
||||
public DynamoUser getCreator() throws DatabaseException;
|
||||
|
||||
public java.util.Date getPostDate();
|
||||
|
||||
public DynamoAcl getAcl() throws DatabaseException, AclNotFoundException;
|
||||
|
||||
public void setAcl(DynamoUser caller, DynamoAcl acl) throws DatabaseException, DynamoSecurityException;
|
||||
|
||||
public int getNumTextParts() throws DatabaseException;
|
||||
|
||||
public int getNumBinaryParts() throws DatabaseException;
|
||||
|
||||
public UniStoreTextPart getTextPart(int index) throws DatabaseException;
|
||||
|
||||
public UniStoreTextPart getTextPart(String namespace, String name) throws DatabaseException;
|
||||
|
||||
public UniStoreBinaryPart getBinaryPart(int index) throws DatabaseException;
|
||||
|
||||
public UniStoreBinaryPart getBinaryPart(String namespace, String name) throws DatabaseException;
|
||||
|
||||
public List getTextParts() throws DatabaseException;
|
||||
|
||||
public List getBinaryParts() throws DatabaseException;
|
||||
|
||||
} // end interface UniStoreMessage
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
||||
* (the "License"); you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
|
||||
* WARRANTY OF ANY KIND, either express or implied. See the License for the specific
|
||||
* language governing rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is the Venice Web Communities System.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||
* for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||
* Copyright (C) 2003 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
package com.silverwrist.dynamo.iface;
|
||||
|
||||
import java.util.Date;
|
||||
import com.silverwrist.dynamo.except.DatabaseException;
|
||||
import com.silverwrist.dynamo.util.QualifiedNameKey;
|
||||
|
||||
public interface UniStorePart extends SecureObjectStore
|
||||
{
|
||||
public long getMessageID();
|
||||
|
||||
public int getPartIndex();
|
||||
|
||||
public QualifiedNameKey getPartIdentity();
|
||||
|
||||
public String getMimeType();
|
||||
|
||||
public int getSize();
|
||||
|
||||
public int getNumReads();
|
||||
|
||||
public java.util.Date getLastReadDate();
|
||||
|
||||
public void touchRead() throws DatabaseException;
|
||||
|
||||
} // end interface UniStorePart
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
||||
* (the "License"); you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
|
||||
* WARRANTY OF ANY KIND, either express or implied. See the License for the specific
|
||||
* language governing rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is the Venice Web Communities System.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||
* for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||
* Copyright (C) 2003 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
package com.silverwrist.dynamo.iface;
|
||||
|
||||
import java.io.Reader;
|
||||
|
||||
public interface UniStoreTextPart extends UniStorePart
|
||||
{
|
||||
public int getLineCount();
|
||||
|
||||
public String getText();
|
||||
|
||||
public Reader getTextAsReader();
|
||||
|
||||
} // end interface UniStoreTextPart
|
||||
Reference in New Issue
Block a user