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

rapture.kernel.script.ScriptEntitlement Maven / Gradle / Ivy

There is a newer version: 3.0.4
Show newest version
/**
 * The MIT License (MIT)
 *
 * Copyright (C) 2011-2016 Incapture Technologies LLC
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

/**
 * This is an autogenerated file. You should not edit this file as any changes
 * will be overwritten.
 */
package rapture.kernel.script;

import java.util.List;
import java.util.Map;

import rapture.common.api.EntitlementApi;
import rapture.common.api.ScriptEntitlementApi;
import org.apache.log4j.Logger;
import rapture.common.exception.RaptureException;

import rapture.common.model.RaptureEntitlement;
import rapture.common.model.RaptureEntitlementGroup;


@SuppressWarnings("all")
public class ScriptEntitlement extends KernelScriptImplBase implements ScriptEntitlementApi {
	private EntitlementApi api;
    private static final Logger log = Logger.getLogger(ScriptEntitlement.class);

	public ScriptEntitlement(EntitlementApi api) {
		this.api = api;
	}
	
	   @Override
	   public List getEntitlements() {	
	      List ret = api.getEntitlements(callingCtx);
	      return ret;   }

	   @Override
	   public RaptureEntitlement getEntitlement(String entitlementName) {	
	      RaptureEntitlement ret = api.getEntitlement(callingCtx, entitlementName);
	      return ret;   }

	   @Override
	   public RaptureEntitlement getEntitlementByAddress(String entitlementURI) {	
	      RaptureEntitlement ret = api.getEntitlementByAddress(callingCtx, entitlementURI);
	      return ret;   }

	   @Override
	   public RaptureEntitlementGroup getEntitlementGroup(String groupName) {	
	      RaptureEntitlementGroup ret = api.getEntitlementGroup(callingCtx, groupName);
	      return ret;   }

	   @Override
	   public RaptureEntitlementGroup getEntitlementGroupByAddress(String groupURI) {	
	      RaptureEntitlementGroup ret = api.getEntitlementGroupByAddress(callingCtx, groupURI);
	      return ret;   }

	   @Override
	   public List getEntitlementGroups() {	
	      List ret = api.getEntitlementGroups(callingCtx);
	      return ret;   }

	   @Override
	   public RaptureEntitlement addEntitlement(String entitlementName,String initialGroup) {	
	      RaptureEntitlement ret = api.addEntitlement(callingCtx, entitlementName, initialGroup);
	      return ret;   }

	   @Override
	   public RaptureEntitlement addGroupToEntitlement(String entitlementName,String groupName) {	
	      RaptureEntitlement ret = api.addGroupToEntitlement(callingCtx, entitlementName, groupName);
	      return ret;   }

	   @Override
	   public RaptureEntitlement removeGroupFromEntitlement(String entitlementName,String groupName) {	
	      RaptureEntitlement ret = api.removeGroupFromEntitlement(callingCtx, entitlementName, groupName);
	      return ret;   }

	   @Override
	   public void deleteEntitlement(String entitlementName) {	
	      api.deleteEntitlement(callingCtx, entitlementName);   }

	   @Override
	   public void deleteEntitlementGroup(String groupName) {	
	      api.deleteEntitlementGroup(callingCtx, groupName);   }

	   @Override
	   public RaptureEntitlementGroup addEntitlementGroup(String groupName) {	
	      RaptureEntitlementGroup ret = api.addEntitlementGroup(callingCtx, groupName);
	      return ret;   }

	   @Override
	   public RaptureEntitlementGroup addUserToEntitlementGroup(String groupName,String userName) {	
	      RaptureEntitlementGroup ret = api.addUserToEntitlementGroup(callingCtx, groupName, userName);
	      return ret;   }

	   @Override
	   public RaptureEntitlementGroup removeUserFromEntitlementGroup(String groupName,String userName) {	
	      RaptureEntitlementGroup ret = api.removeUserFromEntitlementGroup(callingCtx, groupName, userName);
	      return ret;   }

	   @Override
	   public List findEntitlementsByUser(String username) {	
	      List ret = api.findEntitlementsByUser(callingCtx, username);
	      return ret;   }

	   @Override
	   public List findEntitlementsByGroup(String groupname) {	
	      List ret = api.findEntitlementsByGroup(callingCtx, groupname);
	      return ret;   }

	   @Override
	   public List findEntitlementsBySelf() {	
	      List ret = api.findEntitlementsBySelf(callingCtx);
	      return ret;   }


}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy