Package zowe.client.sdk.teamconfig
Class TeamConfig
- java.lang.Object
-
- zowe.client.sdk.teamconfig.TeamConfig
-
public class TeamConfig extends Object
TeamConfig class provides API method(s) to retrieve a profile section from Zowe Global Team Configuration with keytar information to help perform ZosConnection processing without hard coding username and password. This class only supports Zowe Global Team Configuration provided by Zowe V2.- Version:
- 3.0
- Author:
- Frank Giordano
-
-
Constructor Summary
Constructors Constructor Description TeamConfig()Default TeamConfig constructor without arguments.TeamConfig(KeyTarService keyTarService, TeamConfigService teamConfigService)TeamConfig constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProfileDaogetDefaultProfile(String profileType)Retrieve the default profile for the specified profile type from Zowe Global Team Configuration.ProfileDaogetDefaultProfileFromPartition(String profileName, String partitionName)Retrieve the default profile from partition by profile and partition names given from Zowe Global Team Configuration.
-
-
-
Constructor Detail
-
TeamConfig
public TeamConfig() throws TeamConfigExceptionDefault TeamConfig constructor without arguments.- Throws:
TeamConfigException- error processing team configuration
-
TeamConfig
public TeamConfig(KeyTarService keyTarService, TeamConfigService teamConfigService) throws TeamConfigException
TeamConfig constructor. This is mainly used for internal code unit testing with mockito.- Parameters:
keyTarService- required KeyTarService dependencyteamConfigService- required TeamConfigService dependency- Throws:
TeamConfigException- error processing team configuration
-
-
Method Detail
-
getDefaultProfile
public ProfileDao getDefaultProfile(String profileType)
Retrieve the default profile for the specified profile type from Zowe Global Team Configuration. Merge properties accordingly with the base profile. Credential store information is also retrieved and piggybacked on a returned ProfileDao object.- Parameters:
profileType- profile type- Returns:
- ProfileDao object
-
getDefaultProfileFromPartition
public ProfileDao getDefaultProfileFromPartition(String profileName, String partitionName)
Retrieve the default profile from partition by profile and partition names given from Zowe Global Team Configuration. Merge properties accordingly with the base profile. Credential store information is also retrieved and piggybacked on a returned ProfileDao object.- Parameters:
profileName- profile namepartitionName- partition name- Returns:
- ProfileDao object
-
-