Author: glen Date: Thu Feb 28 19:31:00 2008 New Revision: 14327 Log:
Resource didn't get added somehow in the last commit! Added: trunk/registry/modules/core/src/main/java/org/wso2/registry/Resource.java Added: trunk/registry/modules/core/src/main/java/org/wso2/registry/Resource.java ============================================================================== --- (empty file) +++ trunk/registry/modules/core/src/main/java/org/wso2/registry/Resource.java Thu Feb 28 19:31:00 2008 @@ -0,0 +1,70 @@ +/* + * Copyright (c) 2007, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.wso2.registry; + +import java.util.Date; +import java.util.Properties; +import java.io.InputStream; + +public interface Resource { + String getAuthorUserName(); + + Date getCreatedTime(); + + Date getLastModified(); + + String getDescription(); + + void setDescription(String description); + + String getPath(); + + String getMediaType(); + + void setMediaType(String mediaType); + + String getParentPath(); + + String getProperty(String key); + + Properties getProperties(); + + void setProperty(String key, String value); + + void setProperties(Properties properties); + + Object getContent() throws RegistryException; + + void setContent(Object content); + + String getLastUpdaterUserName(); + + String[] getDependents(); + + void setDependents(String[] dependents); + + void addDependent(String dependentPath); + + String[] getDependencies(); + + void setDependencies(String[] dependencies); + + void addDependency(String dependencyPath); + + InputStream getContentStream(); + + void setContentStream(InputStream contentStream); +} _______________________________________________ Registry-dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/registry-dev
