void updateStorageViewInitiatorPWWN(VPlexStorageViewInfo storageViewInfo){
  List<String> initiators=storageViewInfo.getInitiators();
  List<VPlexInitiatorInfo> initiatorsInfoList=new ArrayList<VPlexInitiatorInfo>();
  for (  String initiator : initiators) {
    VPlexInitiatorInfo initiatorInfo=new VPlexInitiatorInfo();
    initiatorInfo.setName(initiator);
    updateInitiatorInfo(storageViewInfo.getClusterId(),initiatorInfo);
    initiatorsInfoList.add(initiatorInfo);
  }
  List<String> initiatorPWWNs=new ArrayList<String>();
  for (  VPlexInitiatorInfo initiatorInfo : initiatorsInfoList) {
    String pwwn=initiatorInfo.getPortWwn();
    if (pwwn.startsWith(VPlexApiConstants.WWN_PREFIX)) {
      pwwn=pwwn.substring(2);
    }
    pwwn=pwwn.toUpperCase();
    initiatorPWWNs.add(pwwn);
  }
  storageViewInfo.setInitiatorPwwns(initiatorPWWNs);
  s_logger.info("Updated Storage View Info {}",storageViewInfo.toString());
}

void updateStorageViewInitiatorPWWN ( VPlexStorageViewInfo storageViewInfo ) { List < String > initiators = storageViewInfo . getInitiators ( ) ; List < VPlexInitiatorInfo > initiatorsInfoList = new ArrayList < VPlexInitiatorInfo > ( ) ; for ( String initiator : initiators ) { VPlexInitiatorInfo initiatorInfo = new VPlexInitiatorInfo ( ) ; initiatorInfo . setName ( initiator ) ; updateInitiatorInfo ( storageViewInfo . getClusterId ( ) , initiatorInfo ) ; initiatorsInfoList . add ( initiatorInfo ) ; } List < String > initiatorPWWNs = new ArrayList < String > ( ) ; for ( VPlexInitiatorInfo initiatorInfo : initiatorsInfoList ) { String pwwn = initiatorInfo . getPortWwn ( ) ; if ( pwwn . startsWith ( VPlexApiConstants . WWN_PREFIX ) ) { pwwn = pwwn . substring ( 2 ) ; } pwwn = pwwn . toUpperCase ( ) ; initiatorPWWNs . add ( pwwn ) ; } storageViewInfo . setInitiatorPwwns ( initiatorPWWNs ) ; s_logger . info ( "Updated Storage View Info {}" , storageViewInfo . toString ( ) ) ; }
updates a vplexstorageviewinfo object with the initiators pwwn based on the initiators .
