use of org.apache.syncope.common.lib.to.DomainTO in project syncope by apache.
the class DomainITCase method restoreTwo.
private void restoreTwo() {
DomainTO two = new DomainTO();
two.setKey("Two");
two.setAdminCipherAlgorithm(CipherAlgorithm.SHA);
two.setAdminPwd("password2");
domainService.create(two);
}
use of org.apache.syncope.common.lib.to.DomainTO in project syncope by apache.
the class DomainITCase method list.
@Test
public void list() {
List<DomainTO> domains = domainService.list();
assertNotNull(domains);
assertFalse(domains.isEmpty());
for (DomainTO domain : domains) {
assertNotNull(domain);
}
}
use of org.apache.syncope.common.lib.to.DomainTO in project syncope by apache.
the class DomainServiceImpl method create.
@Override
public Response create(final DomainTO anyTypeTO) {
DomainTO created = logic.create(anyTypeTO);
URI location = uriInfo.getAbsolutePathBuilder().path(created.getKey()).build();
return Response.created(location).header(RESTHeaders.RESOURCE_KEY, created.getKey()).build();
}
Aggregations