mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/osgi/EventAdminMessageService.java
private synchronized void persistRegistration(final EventRegistrationRequestData newRegistration, final int regId, 
        final int systemId, final EncryptType encryptionType) throws IllegalArgumentException, 
            PersistenceFailedException
    {
        //create message that will be persisted
        final PersistentEventRegistrationMessage persistMessage = PersistentEventRegistrationMessage.newBuilder().
                setSystemId(systemId).
                setRegMessage(newRegistration).
                setEncryptionType(encryptionType).build();

        m_Datastore.persist(this.getClass(), UUID.randomUUID(), String.valueOf(regId), persistMessage.toByteArray());
    }
/**
     * Persist a new event registration.
     * @param newRegistration
     *     the new registration to store
     * @param regId
     *     the current assigned registration id used for the remote event registration
     * @param systemId
     *     the system id of the system requesting the remote events
     * @param encryptionType
     *     the type of encryption to be applied to messages that are created in response to the remote 
     *     event registration
     * @throws PersistenceFailedException
     *     if the persist failed
     * @throws IllegalArgumentException
     *     if any argument is null
     */
Persist a new event registration.
Persist a new event registration .
private synchronized void persistRegistration(final EventRegistrationRequestData newRegistration, final int regId, 
        final int systemId, final EncryptType encryptionType) throws IllegalArgumentException, 
            PersistenceFailedException
    {
        final PersistentEventRegistrationMessage persistMessage = PersistentEventRegistrationMessage.newBuilder().
                setSystemId(systemId).
                setRegMessage(newRegistration).
                setEncryptionType(encryptionType).build();
        m_Datastore.persist(this.getClass(), UUID.randomUUID(), String.valueOf(regId), persistMessage.toByteArray());
    }
private synchronized void persistRegistration ( final EventRegistrationRequestData newRegistration , final int regId , final int systemId , final EncryptType encryptionType ) throws IllegalArgumentException , PersistenceFailedException { final PersistentEventRegistrationMessage persistMessage = PersistentEventRegistrationMessage . newBuilder ( ) . setSystemId ( systemId ) . setRegMessage ( newRegistration ) . setEncryptionType ( encryptionType ) . build ( ) ; m_Datastore . persist ( this . getClass ( ) , UUID . randomUUID ( ) , String . valueOf ( regId ) , persistMessage . toByteArray ( ) ) ; }
Persist a new event registration.
Persist a new event registration .
//create message that will be persisted