use of org.alfresco.rest.api.model.NetworkImpl in project alfresco-remote-api by Alfresco.
the class NetworksImpl method validateNetwork.
public Network validateNetwork(String networkId) {
org.alfresco.repo.tenant.Network network = networksService.getNetwork(networkId);
if (network == null) {
throw new EntityNotFoundException(networkId);
}
Network restNetwork = new NetworkImpl(network);
return restNetwork;
}
use of org.alfresco.rest.api.model.NetworkImpl in project alfresco-remote-api by Alfresco.
the class NetworksImpl method getPersonNetwork.
private PersonNetwork getPersonNetwork(org.alfresco.repo.tenant.Network network) {
Network restNetwork = new NetworkImpl(network);
PersonNetwork personNetwork = new PersonNetwork(network.getIsHomeNetwork(), restNetwork);
return personNetwork;
}
Aggregations