@Test public void convertStringId() throws Exception { ClientId clientId = clientConverter.convertId("XRD2:GOV:M4:SS1"); assertEquals("XRD2", clientId.getXRoadInstance()); assertEquals("GOV", clientId.getMemberClass()); assertEquals("M4", clientId.getMemberCode()); assertEquals("SS1", clientId.getSubsystemCode()); clientId = clientConverter.convertId("XRD2:GOV:M4"); assertNull(clientId.getSubsystemCode()); }
public String convertId(ClientId clientId) { return convertId(clientId, false); }
ClientConverter { public String convertId(ClientId clientId) { return convertId(clientId, false); } }
ClientConverter { public String convertId(ClientId clientId) { return convertId(clientId, false); } @Autowired  ClientConverter(GlobalConfFacade globalConfFacade,
            CurrentSecurityServerId securityServerOwner,
            CurrentSecurityServerSignCertificates currentSecurityServerSignCertificates); }
ClientConverter { public String convertId(ClientId clientId) { return convertId(clientId, false); } @Autowired  ClientConverter(GlobalConfFacade globalConfFacade,
            CurrentSecurityServerId securityServerOwner,
            CurrentSecurityServerSignCertificates currentSecurityServerSignCertificates); Client convert(ClientType clientType); List<Client> convert(Iterable<ClientType> clientTypes); String convertId(ClientId clientId); String convertId(ClientId clientId, boolean includeType); ClientId convertId(String encodedId); List<ClientId> convertIds(List<String> encodedIds); Client convertMemberInfoToClient(MemberInfo memberInfo); List<Client> convertMemberInfosToClients(List<MemberInfo> memberInfos); boolean isEncodedSubsystemId(String encodedId); boolean isEncodedMemberId(String encodedId); boolean isEncodedClientId(String encodedId); }
ClientConverter { public String convertId(ClientId clientId) { return convertId(clientId, false); } @Autowired  ClientConverter(GlobalConfFacade globalConfFacade,
            CurrentSecurityServerId securityServerOwner,
            CurrentSecurityServerSignCertificates currentSecurityServerSignCertificates); Client convert(ClientType clientType); List<Client> convert(Iterable<ClientType> clientTypes); String convertId(ClientId clientId); String convertId(ClientId clientId, boolean includeType); ClientId convertId(String encodedId); List<ClientId> convertIds(List<String> encodedIds); Client convertMemberInfoToClient(MemberInfo memberInfo); List<Client> convertMemberInfosToClients(List<MemberInfo> memberInfos); boolean isEncodedSubsystemId(String encodedId); boolean isEncodedMemberId(String encodedId); boolean isEncodedClientId(String encodedId); static final int INSTANCE_INDEX; static final int MEMBER_CLASS_INDEX; static final int MEMBER_CODE_INDEX; static final int SUBSYSTEM_CODE_INDEX; }