Package blackberry.identity.service

Examples of blackberry.identity.service.ServiceObject


    /**
     * @see net.rim.device.api.script.ScriptableFunction#construct(java.lang.Object, java.lang.Object[])
     */
    public Object construct( final Object thiz, final Object[] args ) throws Exception {
        if( args != null && args.length == 1 ) {
            ServiceObject serviceObject = (ServiceObject) args[ 0 ]; // type error will be thrown if input is invalid
            return new MessageObject( serviceObject );
        }
        return new MessageObject();
    }
View Full Code Here


        if( args.length > 1 && args[ 1 ] != null ) {
            Integer i = (Integer) args[ 1 ];
            maxReturn = i.intValue();
        }

        ServiceObject s = null;
        if( args.length > 2 ) {
            s = (ServiceObject) args[ 2 ];
        }

        Store store = null;
        ServiceConfiguration serviceConfig = null;
        if( s == null ) {
            store = Session.getDefaultInstance().getStore();
            serviceConfig = store.getServiceConfiguration();
        } else {
            try {
                serviceConfig = new ServiceConfiguration( s.getUid(), s.getCid() );
            } catch( NoSuchServiceException e ) {
                serviceConfig = null;
            } finally {
                if( serviceConfig != null ) {
                    store = Session.getInstance( serviceConfig ).getStore();
View Full Code Here

            }
        }

        if( args.length > 3 ) {
            if( args[ 3 ] != null ) {
                ServiceObject s = (ServiceObject) args[ 3 ];
                serviceName = s.getName();
            }
        }

        if( args.length > 4 ) {
            if( args[ 4 ] != null ) {
View Full Code Here

    /**
     * @see net.rim.device.api.script.ScriptableFunction#construct(java.lang.Object, java.lang.Object[])
     */
    public Object construct( final Object thiz, final Object[] args ) throws Exception {
        if( args != null && args.length == 1 ) {
            ServiceObject serviceObject = (ServiceObject) args[ 0 ];
            return new ContactObject( serviceObject );
        }
        return new ContactObject();
    }
View Full Code Here

    /**
     * @see net.rim.device.api.script.ScriptableFunction#construct(java.lang.Object, java.lang.Object[])
     */
    public Object construct( final Object thiz, final Object[] args ) throws Exception {
        if( args != null && args.length == 1 ) {
            ServiceObject serviceObject = (ServiceObject) args[ 0 ];
            return new TaskObject( serviceObject );
        }
        return new TaskObject();
    }
View Full Code Here

                if( type == ServiceObject.TYPE_EMAIL ) {
                    final ServiceConfiguration serviceConfig = new ServiceConfiguration( serviceRecord );
                    emailAddress = serviceConfig.getEmailAddress();
                }

                serviceList[ i ] = new ServiceObject( emailAddress, serviceRecord.getName(), new Integer( type ), serviceRecord
                        .getUid(), serviceRecord.getCid() );

            }
            return serviceList;
        }
View Full Code Here

    /**
     * @see net.rim.device.api.script.ScriptableFunction#construct(java.lang.Object, java.lang.Object[])
     */
    public Object construct( Object thiz, Object[] args ) throws Exception {
        if( args != null && args.length == 1 ) {
            ServiceObject serviceObject = (ServiceObject) args[ 0 ];
            return new AppointmentObject( serviceObject );
        }
        return new AppointmentObject();
    }
View Full Code Here

                        maxReturn = i.intValue();
                    }
                }
                if( args.length > 3 ) {
                    if( args[ 3 ] != null ) {
                        ServiceObject s = (ServiceObject) args[ 3 ];
                        serviceName = s.getName();
                    }
                }

                if( args.length > 4 ) {
                    if( args[ 4 ] != null ) {
View Full Code Here

TOP

Related Classes of blackberry.identity.service.ServiceObject

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.