agave-systems/systems-core/src/main/java/org/iplantc/service/systems/manager/SystemManager.java
/**
	 * Adds or updates both login and storage AuthConfig for the provided internal user on
	 * all of the api user's systems. If the LoginConfig or StorageConfig don't support the 
	 * provided LoginCredentialType, an exception is thrown. 
	 * 
	 * Any AuthConfig already present for the internal user, will be deleted and replaced 
	 * with the new one. If a credential server is provided or a grid credential is provided, 
	 * it will be validated before persisting. 
	 * 
	 * @param remoteConfigType
	 * @param apiUsername
	 * @param internalUsername
	 * @param username
	 * @param password
	 * @param credentialType
	 * @param credential
	 * @param irodsResource Unused at the moment. Placeholder in case we give internal users ability to specify their own storage/login config.
	 * @param irodsZone Placeholder in case we give internal users ability to specify their own storage/login config.
	 * @param endpoint
	 * @param port
	 * @param authProtocol
	 * @throws SystemArgumentException
	 * @throws PermissionException 
	 */
Adds or updates both login and storage AuthConfig for the provided internal user on
all of the api user's systems. If the LoginConfig or StorageConfig don't support the
provided LoginCredentialType, an exception is thrown.

Any AuthConfig already present for the internal user, will be deleted and replaced
with the new one. If a credential server is provided or a grid credential is provided,
it will be validated before persisting.


Adds or updates both login and storage AuthConfig for the provided internal user on all of the api user ' s systems . If the LoginConfig or StorageConfig don ' t support the provided LoginCredentialType an exception is thrown . Any AuthConfig already present for the internal user will be deleted and replaced with the new one . If a credential server is provided or a grid credential is provided it will be validated before persisting .
public void updateAllInternalUserAuthConfigOfType(String remoteConfigType, String apiUsername, 
			String internalUsername, String username, String password, 
			String credentialType, String credential, String irodsResource, 
			String irodsZone, String endpoint, int port, 
			String authProtocol) 
	throws SystemArgumentException, PermissionException
	{
		for(RemoteSystem system: getDao().getUserSystems(apiUsername, false)) 
		{
			if (remoteConfigType.equalsIgnoreCase("login"))
			{
				if (system instanceof ExecutionSystem) 
				{
					updateInternalUserAuthConfigOnSystemOfType(system, remoteConfigType, apiUsername, internalUsername,
						username, password, credentialType, credential, irodsResource, irodsZone,
						endpoint, port, authProtocol);
				}
			} 
			else {
				updateInternalUserAuthConfigOnSystemOfType(system, remoteConfigType, apiUsername, internalUsername, 
						username, password, credentialType, credential, irodsResource, irodsZone,
						endpoint, port, authProtocol);
			}
		}
	}
public void updateAllInternalUserAuthConfigOfType ( String remoteConfigType , String apiUsername , String internalUsername , String username , String password , String credentialType , String credential , String irodsResource , String irodsZone , String endpoint , int port , String authProtocol ) throws SystemArgumentException , PermissionException { for ( RemoteSystem system : getDao ( ) . getUserSystems ( apiUsername , false ) ) { if ( remoteConfigType . equalsIgnoreCase ( "login" ) ) { if ( system instanceof ExecutionSystem ) { updateInternalUserAuthConfigOnSystemOfType ( system , remoteConfigType , apiUsername , internalUsername , username , password , credentialType , credential , irodsResource , irodsZone , endpoint , port , authProtocol ) ; } } else { updateInternalUserAuthConfigOnSystemOfType ( system , remoteConfigType , apiUsername , internalUsername , username , password , credentialType , credential , irodsResource , irodsZone , endpoint , port , authProtocol ) ; } } }
Adds or updates both login and storage AuthConfig for the provided internal user on
 all of the api user's systems.
Adds or updates both login and storage AuthConfig for the provided internal user on all of the api user ' s systems .