@Service public class ServerObjectManager extends AbstractObjectManager<Server,ServerHB> implements EnvConfigurationManager<Server>, SearchByUrlAndProjectIdManager<Server>, StorableInFolderObjectManager
AbstractObjectManager.RootRepositoryWrapper<T extends Storable>| Modifier and Type | Field and Description |
|---|---|
static ServerObjectManager |
INSTANCE |
entityManager, myType, repository| Constructor and Description |
|---|
ServerObjectManager(ServerRepository repository,
InboundTransportConfigurationRepository inbRep,
OutboundTransportConfigurationRepository outbRep,
EnvironmentRepository environmentRepository)
Constructor with related repositories.
|
acceptsTo, additionalMoveActions, addToUsages, contains, copy, create, create, create, create, create, evict, flush, getAll, getAllByParentId, getAllByParentName, getById, getByName, getByNatureId, getByParentAndName, getByPieceOfName, getByProperties, move, onCreate, onRemove, onUpdate, protectedOnCreate, protectedOnUpdate, remove, replicate, setReplicationRole, store, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptsTo, additionalMoveActions, contains, copy, create, create, create, create, create, evict, flush, getAll, getAllByParentId, getAllByParentName, getById, getByName, getByNatureId, getByParentAndName, getByPieceOfName, getByProperties, move, onCreate, onRemove, onUpdate, remove, replicate, setReplicationRole, store, updateafterDeleteFromFolderpublic static ServerObjectManager INSTANCE
@Autowired public ServerObjectManager(ServerRepository repository, InboundTransportConfigurationRepository inbRep, OutboundTransportConfigurationRepository outbRep, EnvironmentRepository environmentRepository)
public void protectedOnRemove(Server object)
protectedOnRemove in class AbstractObjectManager<Server,ServerHB>public Server create(Storable parent)
create in interface ObjectManager<Server>create in class AbstractObjectManager<Server,ServerHB>public Server create()
create in interface ObjectManager<Server>create in class AbstractObjectManager<Server,ServerHB>public OutboundTransportConfiguration getOutbound(Server server, System system, String type)
OutboundTransportConfiguration by system-server ids and transport type name.server - Server object.system - System object.type - string transport type name
(transport class path,
e.g. org.qubership.automation.itf.transport.rest.outbound.RESTOutboundTransport).OutboundTransportConfigurationpublic Iterable<OutboundTransportConfiguration> getOutbounds(Server server, System system)
public InboundTransportConfiguration getInbound(Server server, TransportConfiguration configuration)
public Iterable<InboundTransportConfiguration> getInbounds(Server server, System system)
public Collection<UsageInfo> findUsages(Storable storable)
AbstractObjectManagerfindUsages in interface ObjectManager<Server>findUsages in class AbstractObjectManager<Server,ServerHB>storable - Storable object to find usages, as a rule, checked before deletion.public Map<String,List<BigInteger>> findImportantChildren(Storable storable)
findImportantChildren in interface ObjectManager<Server>findImportantChildren in class AbstractObjectManager<Server,ServerHB>storable - Server object to find 'important children', as a rule, checked before deletion.public Server getByEcId(@Nonnull String ecId, Object... objects)
getByEcId in interface EnvConfigurationManager<Server>public Collection<Server> getByEcProjectId(String ecProjectId)
getByEcProjectId in interface EnvConfigurationManager<Server>public Collection<String> getEcProjectIds(BigInteger projectId)
getEcProjectIds in interface EnvConfigurationManager<Server>public void unbindByEcProject(String ecProjectId)
unbindByEcProject in interface EnvConfigurationManager<Server>public Server findByEcLabel(String ecLabel, BigInteger projectId)
findByEcLabel in interface EnvConfigurationManager<Server>public List<Server> getByUrlAndProjectId(String url, BigInteger projectId)
getByUrlAndProjectId in interface SearchByUrlAndProjectIdManager<Server>public List<Server> getByUrlSlashedAndProjectId(String url, BigInteger projectId)
getByUrlSlashedAndProjectId in interface SearchByUrlAndProjectIdManager<Server>public List<Server> getByNameAndProjectId(String name, BigInteger projectId)
getByNameAndProjectId in interface SearchByParameterAndProjectIdManager<Server>public List<Server> getByProjectId(BigInteger projectId)
getByProjectId in interface SearchByProjectIdManager<Server>public void afterDelete(Storable object)
afterDelete in class AbstractObjectManager<Server,ServerHB>public int deleteUnusedOutboundConfigurations()
public int deleteUnusedOutboundConfigurationsByProjectId(BigInteger projectId)
Copyright © 2025. All rights reserved.