@Test public void getSecurityServerId() { SecurityServerId expected = SecurityServerId.create("FI", "GOV", "M1", "SS1"); assertEquals(expected, serverConfService.getSecurityServerId()); }
public SecurityServerId getSecurityServerId() { ServerConfType serverConf = getServerConf(); ClientId ownerId = serverConf.getOwner().getIdentifier(); String serverCode = serverConf.getServerCode(); return SecurityServerId.create(ownerId, serverCode); }
ServerConfService { public SecurityServerId getSecurityServerId() { ServerConfType serverConf = getServerConf(); ClientId ownerId = serverConf.getOwner().getIdentifier(); String serverCode = serverConf.getServerCode(); return SecurityServerId.create(ownerId, serverCode); } }
ServerConfService { public SecurityServerId getSecurityServerId() { ServerConfType serverConf = getServerConf(); ClientId ownerId = serverConf.getOwner().getIdentifier(); String serverCode = serverConf.getServerCode(); return SecurityServerId.create(ownerId, serverCode); } @Autowired  ServerConfService(ServerConfRepository serverConfRepository); }
ServerConfService { public SecurityServerId getSecurityServerId() { ServerConfType serverConf = getServerConf(); ClientId ownerId = serverConf.getOwner().getIdentifier(); String serverCode = serverConf.getServerCode(); return SecurityServerId.create(ownerId, serverCode); } @Autowired  ServerConfService(ServerConfRepository serverConfRepository); ServerConfType getServerConf(); ServerConfType getOrCreateServerConf(); SecurityServerId getSecurityServerId(); ClientId getSecurityServerOwnerId(); List<TspType> getConfiguredTimestampingServices(); boolean isServerCodeInitialized(); boolean isServerOwnerInitialized(); ServerConfType saveOrUpdate(ServerConfType serverConfType); }
ServerConfService { public SecurityServerId getSecurityServerId() { ServerConfType serverConf = getServerConf(); ClientId ownerId = serverConf.getOwner().getIdentifier(); String serverCode = serverConf.getServerCode(); return SecurityServerId.create(ownerId, serverCode); } @Autowired  ServerConfService(ServerConfRepository serverConfRepository); ServerConfType getServerConf(); ServerConfType getOrCreateServerConf(); SecurityServerId getSecurityServerId(); ClientId getSecurityServerOwnerId(); List<TspType> getConfiguredTimestampingServices(); boolean isServerCodeInitialized(); boolean isServerOwnerInitialized(); ServerConfType saveOrUpdate(ServerConfType serverConfType);  }