package com.idega.slide.jcr; import java.io.InputStream; import java.math.BigDecimal; import java.util.Calendar; import javax.jcr.AccessDeniedException; import javax.jcr.Binary; import javax.jcr.InvalidItemStateException; import javax.jcr.Item; import javax.jcr.ItemExistsException; import javax.jcr.ItemNotFoundException; import javax.jcr.ItemVisitor; import javax.jcr.Node; import javax.jcr.Property; import javax.jcr.ReferentialIntegrityException; import javax.jcr.RepositoryException; import javax.jcr.Session; import javax.jcr.Value; import javax.jcr.ValueFormatException; import javax.jcr.lock.LockException; import javax.jcr.nodetype.ConstraintViolationException; import javax.jcr.nodetype.NoSuchNodeTypeException; import javax.jcr.nodetype.PropertyDefinition; import javax.jcr.version.VersionException; /** * <p> * Wrapper for the specific jcr:content node property against Slide * </p> * Last modified: $Date: 2009/01/06 15:17:20 $ by $Author: tryggvil $ * * @author <a href="mailto:tryggvil@idega.com">tryggvil</a> * @version $Revision: 1.2 $ */ public class SlideContentProperty implements Property { SlideContentNode slideContentNode; String name=SlideNode.PROPERTY_NAME_DATA; private SlideContentPropertyValue value; public SlideContentProperty(SlideContentNode slideContentNode) { this.slideContentNode=slideContentNode; } public boolean getBoolean() throws ValueFormatException, RepositoryException { // TODO Auto-generated method stub return false; } public Calendar getDate() throws ValueFormatException, RepositoryException { // TODO Auto-generated method stub return null; } public PropertyDefinition getDefinition() throws RepositoryException { // TODO Auto-generated method stub return null; } public double getDouble() throws ValueFormatException, RepositoryException { // TODO Auto-generated method stub return 0; } public long getLength() throws ValueFormatException, RepositoryException { // TODO Auto-generated method stub return 0; } public long[] getLengths() throws ValueFormatException, RepositoryException { // TODO Auto-generated method stub return null; } public long getLong() throws ValueFormatException, RepositoryException { // TODO Auto-generated method stub return 0; } public Node getNode() throws ValueFormatException, RepositoryException { // TODO Auto-generated method stub return null; } public InputStream getStream() throws ValueFormatException, RepositoryException { // TODO Auto-generated method stub Value value = getValue(); return value.getStream(); } public String getString() throws ValueFormatException, RepositoryException { // TODO Auto-generated method stub return null; } public int getType() throws RepositoryException { // TODO Auto-generated method stub return 0; } public Value getValue() throws ValueFormatException, RepositoryException { return getSlideContentPropertyValue(); } public SlideContentPropertyValue getSlideContentPropertyValue() throws ValueFormatException, RepositoryException { // TODO Auto-generated method stub if(value==null){ value=new SlideContentPropertyValue(this); } return value; } public Value[] getValues() throws ValueFormatException, RepositoryException { // TODO Auto-generated method stub return null; } public void setValue(Value value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException { // TODO Auto-generated method stub } public void setValue(Value[] values) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException { // TODO Auto-generated method stub } public void setValue(String value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException { // TODO Auto-generated method stub } public void setValue(String[] values) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException { // TODO Auto-generated method stub } public void setValue(InputStream value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException { getSlideContentPropertyValue().setStream(value); } public void setValue(long value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException { // TODO Auto-generated method stub } public void setValue(double value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException { // TODO Auto-generated method stub } public void setValue(Calendar value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException { // TODO Auto-generated method stub } public void setValue(boolean value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException { // TODO Auto-generated method stub } public void setValue(Node value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException { // TODO Auto-generated method stub } public void accept(ItemVisitor visitor) throws RepositoryException { // TODO Auto-generated method stub } public Item getAncestor(int depth) throws ItemNotFoundException, AccessDeniedException, RepositoryException { // TODO Auto-generated method stub return null; } public int getDepth() throws RepositoryException { // TODO Auto-generated method stub return 0; } public String getName() throws RepositoryException { // TODO Auto-generated method stub return this.name; } public Node getParent() throws ItemNotFoundException, AccessDeniedException, RepositoryException { // TODO Auto-generated method stub return this.slideContentNode; } public String getPath() throws RepositoryException { // TODO Auto-generated method stub return null; } public Session getSession() throws RepositoryException { // TODO Auto-generated method stub return null; } public boolean isModified() { // TODO Auto-generated method stub return false; } public boolean isNew() { // TODO Auto-generated method stub return false; } public boolean isNode() { // TODO Auto-generated method stub return false; } public boolean isSame(Item otherItem) throws RepositoryException { // TODO Auto-generated method stub return false; } public void refresh(boolean keepChanges) throws InvalidItemStateException, RepositoryException { // TODO Auto-generated method stub } public void remove() throws VersionException, LockException, ConstraintViolationException, RepositoryException { // TODO Auto-generated method stub } public void save() throws AccessDeniedException, ItemExistsException, ConstraintViolationException, InvalidItemStateException, ReferentialIntegrityException, VersionException, LockException, NoSuchNodeTypeException, RepositoryException { // TODO Auto-generated method stub } public SlideContentNode getSlideContentNode(){ return this.slideContentNode; } @Override public void setValue(Binary value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException { // TODO Auto-generated method stub } @Override public void setValue(BigDecimal value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException { // TODO Auto-generated method stub } @Override public Binary getBinary() throws ValueFormatException, RepositoryException { // TODO Auto-generated method stub return null; } @Override public BigDecimal getDecimal() throws ValueFormatException, RepositoryException { // TODO Auto-generated method stub return null; } @Override public Property getProperty() throws ItemNotFoundException, ValueFormatException, RepositoryException { // TODO Auto-generated method stub return null; } @Override public boolean isMultiple() throws RepositoryException { // TODO Auto-generated method stub return false; } }