package com.kryptnostic.sharing.v1;

import java.io.IOException;
import java.util.Set;
import java.util.UUID;

import com.google.common.base.Optional;
import com.kryptnostic.kodex.v1.exceptions.types.ResourceNotFoundException;
import com.kryptnostic.kodex.v1.exceptions.types.SecurityConfigurationException;

public interface SharingClient {
    void unshareObjectWithUsers( String objectId, Set<UUID> users );

    int processIncomingShares() throws IOException, SecurityConfigurationException;

    int getIncomingSharesCount();

    void shareObjectWithUsers( String objectId, Set<UUID> users ) throws ResourceNotFoundException;

    Optional<byte[]> getIndexPair( String objectId ) throws ResourceNotFoundException;

    byte[] getSharingPair( String objectId ) throws ResourceNotFoundException;
}

@@ -409,19 +409,27 @@
 );%0A%0A    
-int
+Set%3CString%3E
  process

Make process incoming shares return processed share ids.