All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.chemistry.opencmis.client.api.CmisObjectProperties Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you 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.apache.chemistry.opencmis.client.api;

import java.util.GregorianCalendar;
import java.util.List;

import org.apache.chemistry.opencmis.commons.enums.BaseTypeId;

/**
 * Accessors to CMIS object properties.
 * 

* A property might not be available because either the repository didn't * provide it or a property filter was used to retrieve this object. *

* The property values represent a snapshot of the object when it was loaded. * The objects and its properties can be out-of-date if the object has been * modified in the repository. *

* Implementations of this interface might alter property values without * updating the object in the repository. In this case, the values returned by * these accessors don't reflect the state of the object in the repository. */ public interface CmisObjectProperties { /** * Returns a list of all available CMIS properties. */ List> getProperties(); /** * Returns the requested property. If the property is not available, * null is returned. */ Property getProperty(String id); /** * Returns the value of the requested property. If the property is not * available, null is returned. */ T getPropertyValue(String id); // convenience accessors /** * Returns the name of this CMIS object (CMIS property * cmis:name). * * @cmis 1.0 */ String getName(); /** * Returns the description of this CMIS object (CMIS property * cmis:description). * * @cmis 1.1 */ String getDescription(); /** * Returns the user who created this CMIS object (CMIS property * cmis:createdBy). * * @cmis 1.0 */ String getCreatedBy(); /** * Returns the timestamp when this CMIS object has been created (CMIS * property cmis:creationDate). * * @cmis 1.0 */ GregorianCalendar getCreationDate(); /** * Returns the user who modified this CMIS object (CMIS property * cmis:lastModifiedBy). * * @cmis 1.0 */ String getLastModifiedBy(); /** * Returns the timestamp when this CMIS object has been modified (CMIS * property cmis:lastModificationDate). * * @cmis 1.0 */ GregorianCalendar getLastModificationDate(); /** * Returns the id of the base type of this CMIS object (CMIS property * cmis:baseTypeId). * * @cmis 1.0 */ BaseTypeId getBaseTypeId(); /** * Returns the base type of this CMIS object (object type identified by * cmis:baseTypeId). * * @cmis 1.0 */ ObjectType getBaseType(); /** * Returns the type of this CMIS object (object type identified by * cmis:objectTypeId). * * @cmis 1.0 */ ObjectType getType(); /** * Returns the secondary types of this CMIS object (object types identified * by cmis:secondaryObjectTypeIds). * * @cmis 1.1 */ List getSecondaryTypes(); /** * Returns a list of primary and secondary object types that define the * given property. If the property is not defined in any attached type, * null is returned. */ List findObjectType(String id); /** * Returns the change token (CMIS property cmis:changeToken). * * @cmis 1.0 */ String getChangeToken(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy