All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.anotheria.anosite.gen.anoaccessconfiguration.service.ConstraintCRUDServiceImpl Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
/**
 ********************************************************************************
 *** ConstraintCRUDServiceImpl.java                                           ***
 *** The implementation of the ConstraintCRUDServiceImpl.                     ***
 *** generated by AnoSiteGenerator (ASG), Version: 2.6.3                      ***
 *** Copyright (C) 2005 - 2010 Anotheria.net, www.anotheria.net               ***
 *** All Rights Reserved.                                                     ***
 ********************************************************************************
 *** Don't edit this code, if you aren't sure                                 ***
 *** that you do exactly know what you are doing!                             ***
 *** It's better to invest time in the generator, as into the generated code. ***
 ********************************************************************************
 */

package net.anotheria.anosite.gen.anoaccessconfiguration.service;

import net.anotheria.asg.service.CRUDService;
import net.anotheria.anosite.gen.anoaccessconfiguration.data.Constraint;
import net.anotheria.asg.exception.ASGRuntimeException;


public class ConstraintCRUDServiceImpl implements CRUDService{

	// Generated by: class net.anotheria.asg.generator.model.docs.CMSBasedServiceGenerator.generateCRUDService

	IAnoAccessConfigurationService service;

	public ConstraintCRUDServiceImpl(){
		this(AnoAccessConfigurationServiceFactory.getDefaultInstance());
	}

	public ConstraintCRUDServiceImpl(IAnoAccessConfigurationService aService){
		service = aService;
	}

	public Constraint create(Constraint constraint)  throws ASGRuntimeException {
		return service.createConstraint(constraint);
	}

	public void delete(Constraint constraint) throws ASGRuntimeException {
		service.deleteConstraint(constraint);
	}

	public Constraint get(String id) throws ASGRuntimeException {
		return service.getConstraint(id);
	}

	public Constraint update(Constraint constraint) throws ASGRuntimeException {
		return service.updateConstraint(constraint);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy