Package org.apache.jackrabbit.rmi.remote

Examples of org.apache.jackrabbit.rmi.remote.RemoteProperty


    /** {@inheritDoc} */
    public Property setProperty(String name, Value value, int type)
            throws RepositoryException {
        try {
            RemoteProperty property =
                    remote.setProperty(name, SerialValueFactory.makeSerialValue(value), type);
            return getFactory().getProperty(getSession(), property);
        } catch (RemoteException ex) {
            throw new RemoteRepositoryException(ex);
        }
View Full Code Here


        try {
            if (value == null) {
                remote.setProperty(name, (Value) null);
                return null;
            } else {
                RemoteProperty property = remote.setProperty(
                        name, SerialValueFactory.makeSerialValue(value));
                return getFactory().getProperty(getSession(), property);
            }
        } catch (RemoteException ex) {
            throw new RemoteRepositoryException(ex);
View Full Code Here

            if (values == null) {
                remote.setProperty(name, (Value[]) null);
                return null;
            } else {
                Value[] serials = SerialValueFactory.makeSerialValueArray(values);
                RemoteProperty property = remote.setProperty(name, serials);
                return getFactory().getProperty(getSession(), property);
            }
        } catch (RemoteException ex) {
            throw new RemoteRepositoryException(ex);
        }
View Full Code Here

    }

    /** {@inheritDoc} */
    public Property getProperty(String path) throws RepositoryException {
        try {
            RemoteProperty property = remote.getProperty(path);
            return getFactory().getProperty(getSession(), property);
        } catch (RemoteException ex) {
            throw new RemoteRepositoryException(ex);
        }
    }
View Full Code Here

    /** {@inheritDoc} */
    public Property setProperty(String name, Value[] values, int type)
            throws RepositoryException {
        try {
            Value[] serials = SerialValueFactory.makeSerialValueArray(values);
            RemoteProperty property = remote.setProperty(name, serials, type);
            return getFactory().getProperty(getSession(), property);
        } catch (RemoteException ex) {
            throw new RemoteRepositoryException(ex);
        }
    }
View Full Code Here

    /** {@inheritDoc} */
    public Property setProperty(String name, Value value, int type)
            throws RepositoryException {
        try {
            RemoteProperty property =
                    remote.setProperty(name, SerialValueFactory.makeSerialValue(value), type);
            return getFactory().getProperty(getSession(), property);
        } catch (RemoteException ex) {
            throw new RemoteRepositoryException(ex);
        }
View Full Code Here

        ignoreMethod("getNode");     // implemented locally
        ignoreMethod("setValue");    // multiple methods
        ignoreMethod("getValue");    // no null values for SerialValueFactory

        Property property = (Property) mock;
        RemoteProperty remote = remoteFactory.getRemoteProperty(property);
        Property local = localFactory.getProperty(null, remote);

        runTests(local);
    }
View Full Code Here

        try {
            if (value == null) {
                remote.setProperty(name, value);
                return null;
            } else {
                RemoteProperty property = remote.setProperty(
                        name, SerialValueFactory.makeSerialValue(value));
                return getFactory().getProperty(getSession(), property);
            }
        } catch (RemoteException ex) {
            throw new RemoteRepositoryException(ex);
View Full Code Here

            if (values == null) {
                remote.setProperty(name, values);
                return null;
            } else {
                Value[] serials = SerialValueFactory.makeSerialValueArray(values);
                RemoteProperty property = remote.setProperty(name, serials);
                return getFactory().getProperty(getSession(), property);
            }
        } catch (RemoteException ex) {
            throw new RemoteRepositoryException(ex);
        }
View Full Code Here

            if (strings == null) {
                remote.setProperty(name, (Value[]) null);
                return null;
            } else {
                Value[] serials = SerialValueFactory.makeSerialValueArray(strings);
                RemoteProperty property = remote.setProperty(name, serials);
                return getFactory().getProperty(getSession(), property);
            }
        } catch (RemoteException ex) {
            throw new RemoteRepositoryException(ex);
        }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.rmi.remote.RemoteProperty

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.