package com.l7tech.gateway.common.siteminder;

import com.l7tech.gateway.common.AsyncAdminMethods;
import com.l7tech.gateway.common.admin.Administrative;
import com.l7tech.gateway.common.security.rbac.MethodStereotype;
import com.l7tech.gateway.common.security.rbac.Secured;
import com.l7tech.objectmodel.DeleteException;
import com.l7tech.objectmodel.EntityType;
import com.l7tech.objectmodel.FindException;
import com.l7tech.objectmodel.Goid;
import com.l7tech.objectmodel.SaveException;
import com.l7tech.objectmodel.UpdateException;
import java.util.List;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
@Secured(types = EntityType.SITEMINDER_CONFIGURATION)
@Administrative
public interface SiteMinderAdmin extends AsyncAdminMethods {
   @Transactional(readOnly = true)
   @Secured(types = EntityType.SITEMINDER_CONFIGURATION, stereotype = MethodStereotype.FIND_ENTITY)
   SiteMinderConfiguration getSiteMinderConfiguration(String var1) throws FindException;

   @Transactional(readOnly = true)
   @Secured(types = EntityType.SITEMINDER_CONFIGURATION, stereotype = MethodStereotype.FIND_ENTITY)
   SiteMinderConfiguration getSiteMinderConfiguration(Goid var1) throws FindException;

   @Transactional(readOnly = true)
   @Secured(types = EntityType.SITEMINDER_CONFIGURATION, stereotype = MethodStereotype.FIND_ENTITIES)
   List<SiteMinderConfiguration> getAllSiteMinderConfigurations() throws FindException;

   @Secured(types = EntityType.SITEMINDER_CONFIGURATION, stereotype = MethodStereotype.SAVE_OR_UPDATE)
   Goid saveSiteMinderConfiguration(SiteMinderConfiguration var1) throws UpdateException, SaveException;

   @Secured(types = EntityType.SITEMINDER_CONFIGURATION, stereotype = MethodStereotype.DELETE_ENTITY)
   void deleteSiteMinderConfiguration(SiteMinderConfiguration var1) throws DeleteException;

   @Transactional(readOnly = true)
   @Secured(types = EntityType.SITEMINDER_CONFIGURATION, stereotype = MethodStereotype.SAVE_OR_UPDATE)
   AsyncAdminMethods.JobId<SiteMinderHost> registerSiteMinderConfiguration(SiteMinderConfiguration var1);

   @Transactional(readOnly = true)
   @Secured(types = EntityType.SITEMINDER_CONFIGURATION, stereotype = MethodStereotype.TEST_CONFIGURATION)
   AsyncAdminMethods.JobId<String> testSiteMinderConfiguration(SiteMinderConfiguration var1);
}
