FDO .NET API Reference Feature Data Objects

mgIChangeLTPrivilegesImp.h

Go to the documentation of this file.
00001 /*
00002 * Copyright (C) 2004-2006  Autodesk, Inc.
00003 * 
00004 * This library is free software; you can redistribute it and/or
00005 * modify it under the terms of version 2.1 of the GNU Lesser
00006 * General Public License as published by the Free Software Foundation.
00007 * 
00008 * This library is distributed in the hope that it will be useful,
00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 * Lesser General Public License for more details.
00012 * 
00013 * You should have received a copy of the GNU Lesser General Public
00014 * License along with this library; if not, write to the Free Software
00015 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00016 *
00017 */
00018 
00019 #pragma once
00020 
00021 #include "FDO\Commands\mgICommandImp.h"
00022 #include "FDO\Commands\LongTransaction\mgIChangeLongTransactionPrivileges.h"
00023 #include "FDO\Commands\LongTransaction\mgLongTransactionPrivilegeOperations.h"
00024 
00025 class FdoIChangeLongTransactionPrivileges;
00026 
00027 BEGIN_NAMESPACE_OSGEO_FDO_COMMANDS_LONGTRANSACTION
00028 
00029 /// \ingroup (OSGeoFDOCommandsLongTransaction)
00030 /// \brief
00031 /// The IChangeLongTransactionPrivilegesImp class is a 
00032 /// concrete implementation of IChangeLongTransactionPrivileges.
00033 /// The IChangeLongTransactionPrivileges interface defines the
00034 /// ChangeLongTransactionPrivileges command, which grants or revokes long
00035 /// transaction privileges for the named user. The ability to change the 
00036 /// privileges might be restricted by the datastore security if the long 
00037 /// transaction doesn’t belong to the user executing the command.
00038 private __gc class IChangeLongTransactionPrivilegesImp : public NAMESPACE_OSGEO_FDO_COMMANDS::ICommandImp, 
00039                                                          public NAMESPACE_OSGEO_FDO_COMMANDS_LONGTRANSACTION::IChangeLongTransactionPrivileges
00040 {
00041 public:
00042     /// \brief
00043     /// Gets the name of the long transaction for which privileges should be
00044     /// changed.
00045     /// 
00046     /// \return
00047     /// Returns the name of the long transaction
00048     /// 
00049     __property System::String* get_LongTransactionName();
00050 
00051     /// \brief
00052     /// Sets the name of the long transaction for which privileges should be
00053     /// changed.
00054     /// 
00055     /// \param value 
00056     /// Input the name of the long transaction
00057     /// 
00058     /// \return
00059     /// Returns nothing
00060     /// 
00061     __property System::Void set_LongTransactionName(System::String* value);
00062 
00063     /// \brief
00064     /// Gets the name of the user for which to grant or revoke privileges.
00065     /// 
00066     /// \return
00067     /// Returns the user name
00068     /// 
00069     __property System::String* get_UserName();
00070 
00071     /// \brief
00072     /// Sets the name of the user for which to grant or revoke privileges.
00073     /// 
00074     /// \param value 
00075     /// Input the user name
00076     /// 
00077     /// \return
00078     /// Returns nothing
00079     /// 
00080     __property System::Void set_UserName(System::String* value);
00081 
00082     /// \brief
00083     /// Gets the privilege flags to grant or revoke.The returned value may be
00084     /// any combination of the values from the LongTransactionPrivileges
00085     /// enumeration combined via a bit-wise or operation.
00086     /// 
00087     /// \return
00088     /// Returns the privileges as a bit masked value based on LongTransactionPrivileges enumeration
00089     /// 
00090     __property System::Int32 get_Privileges();
00091 
00092     /// \brief
00093     /// Sets the privilege flags to grant or revoke. The privileges value may be
00094     /// any combination of the values from the LongTransactionPrivileges
00095     /// enumeration combined via a bit-wise or operation.
00096     /// 
00097     /// \param value 
00098     /// Input the privileges as a bit masked value based on LongTransactionPrivileges enumeration
00099     /// 
00100     /// \return
00101     /// Returns nothing
00102     /// 
00103     __property System::Void set_Privileges(System::Int32 value);
00104 
00105     /// \brief
00106     /// Gets the operation to perform, grant, or revoke.
00107     /// 
00108     /// \return
00109     /// Returns the operation to perform
00110     /// 
00111     __property NAMESPACE_OSGEO_FDO_COMMANDS_LONGTRANSACTION::LongTransactionPrivilegeOperations get_Operation();
00112 
00113     /// \brief
00114     /// Sets the operation to perform, grant, or revoke.
00115     /// 
00116     /// \param value 
00117     /// Input the operation to perform
00118     /// 
00119     /// \return
00120     /// Returns nothing
00121     /// 
00122     __property System::Void set_Operation(NAMESPACE_OSGEO_FDO_COMMANDS_LONGTRANSACTION::LongTransactionPrivilegeOperations value);
00123 
00124     /// \brief
00125     /// Executes the ChangeLongTransactionPrivilege command.
00126     /// 
00127     /// \return
00128     /// Returns nothing
00129     /// 
00130     System::Void Execute();
00131 
00132 public private:
00133     IChangeLongTransactionPrivilegesImp(System::IntPtr unmanaged, System::Boolean autoDelete) : NAMESPACE_OSGEO_FDO_COMMANDS::ICommandImp(unmanaged, autoDelete)
00134     {
00135 
00136     }
00137 
00138     inline FdoIChangeLongTransactionPrivileges* GetImpObj();
00139 };
00140 
00141 END_NAMESPACE_OSGEO_FDO_COMMANDS_LONGTRANSACTION
00142 
00143 

Comments or suggestions? Send us feedback.