package com.interpress_project.modernshare.orb.generated;

import org.omg.PortableServer.POA;

/**
 * Generated from IDL interface "MdsService".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2007/03/21 14:13:25
 */

public class MdsServicePOATie
	extends MdsServicePOA
{
	private MdsServiceOperations _delegate;

	private POA _poa;
	public MdsServicePOATie(MdsServiceOperations delegate)
	{
		_delegate = delegate;
	}
	public MdsServicePOATie(MdsServiceOperations delegate, POA poa)
	{
		_delegate = delegate;
		_poa = poa;
	}
	public com.interpress_project.modernshare.orb.generated.MdsService _this()
	{
		return com.interpress_project.modernshare.orb.generated.MdsServiceHelper.narrow(_this_object());
	}
	public com.interpress_project.modernshare.orb.generated.MdsService _this(org.omg.CORBA.ORB orb)
	{
		return com.interpress_project.modernshare.orb.generated.MdsServiceHelper.narrow(_this_object(orb));
	}
	public MdsServiceOperations _delegate()
	{
		return _delegate;
	}
	public void _delegate(MdsServiceOperations delegate)
	{
		_delegate = delegate;
	}
	public POA _default_POA()
	{
		if (_poa != null)
		{
			return _poa;
		}
		return super._default_POA();
	}
	public void addUser(java.lang.String account, java.lang.String password) throws com.interpress_project.modernshare.orb.generated.InternalError,com.interpress_project.modernshare.orb.generated.NoPrivilege,com.interpress_project.modernshare.orb.generated.AccountExist,com.interpress_project.modernshare.orb.generated.LicenseError
	{
_delegate.addUser(account,password);
	}

	public com.interpress_project.modernshare.orb.generated.MdsClientInfo getClientInfo(java.lang.String account, java.lang.String clientid)
	{
		return _delegate.getClientInfo(account,clientid);
	}

	public void recovery() throws com.interpress_project.modernshare.orb.generated.InternalError,com.interpress_project.modernshare.orb.generated.NoPrivilege
	{
_delegate.recovery();
	}

	public void setClientInfo(com.interpress_project.modernshare.orb.generated.MdsClientInfo info)
	{
_delegate.setClientInfo(info);
	}

	public com.interpress_project.modernshare.orb.generated.MdsServerInfo getServerInfo()
	{
		return _delegate.getServerInfo();
	}

	public void changePassword(java.lang.String account, java.lang.String newpassword) throws com.interpress_project.modernshare.orb.generated.AccountNotFound
	{
_delegate.changePassword(account,newpassword);
	}

	public void deleteUser(java.lang.String account) throws com.interpress_project.modernshare.orb.generated.InternalError,com.interpress_project.modernshare.orb.generated.AccountNotFound,com.interpress_project.modernshare.orb.generated.NoPrivilege
	{
_delegate.deleteUser(account);
	}

	public java.lang.String backup() throws com.interpress_project.modernshare.orb.generated.InternalError,com.interpress_project.modernshare.orb.generated.NoPrivilege
	{
		return _delegate.backup();
	}

}
