Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright (C) 2009 eXo Platform SAS.
   *
   * This is free software; you can redistribute it and/or modify it
   * under the terms of the GNU Lesser General Public License as
   * published by the Free Software Foundation; either version 2.1 of
   * the License, or (at your option) any later version.
   *
   * This software is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this software; if not, write to the Free
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  */
 package org.exoplatform.services.jcr.ext.resource;
 
 
 
 import javax.jcr.Node;
Created by The eXo Platform SAS .

Author(s):
Gennady Azarenkov
Version:
$Id: $
 
 
 public interface NodeRepresentation
 {

   

Returns:
Mimetype for this representation.
 
    String getMediaType() throws RepositoryException;

   

Returns:
the content length or -1 if content length unknown
Throws:
javax.jcr.RepositoryException
 
    long getContentLenght() throws RepositoryException;

   

Returns:
the content encoding or null if it unknown.
 
    String getContentEncoding();

   
 

Returns:
the collection of node properties name.
 

Parameters:
name the name of properties.
Returns:
the property with specified name. Note that there can be multiple same name properties, in this case any one will be returned.
 

Parameters:
name the name of properties.
Returns:
the properties with specified name.
 
adds single property.

Parameters:
name .
property .
 
adds multivalued property.

Parameters:
name .
properties .
removes property.

Parameters:
name .
Get date of last modified if available.

Returns:
the date of last modified.
Throws:
javax.jcr.RepositoryException
   long getLastModified() throws RepositoryException;

   

Returns:
the underlying node.
   Node getNode();
New to GrepCode? Check out our FAQ X