Logo Search packages:      
Sourcecode: lat version File versions  Download package

PosixGroupViewPlugin.cs

// 
// lat - PosixGroupViewPlugin.cs
// Author: Loren Bandiera
// Copyright 2006 MMG Security, Inc.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; Version 2 
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
//

using System;
using Gtk;
using Gdk;
using Novell.Directory.Ldap;

namespace lat {

00028       public class PosixGroupViewPlugin : ViewPlugin
      {
            public PosixGroupViewPlugin () : base ()
            {
                  config.ColumnAttributes =  new string[] { "gidNumber", "cn", "description" };
                  config.ColumnNames = new string[] { "Group ID", "Name", "Description" };
                  config.Filter = "(objectclass=posixGroup)";                 
            }
      
            public override void Init ()
            {
            }

            public override void OnAddEntry (Connection conn)
            {
                  new GroupsViewDialog (conn, this.DefaultNewContainer);
            }           

            public override void OnEditEntry (Connection conn, LdapEntry le)
            {
                  new GroupsViewDialog (conn, le);
            }
                              
            public override void OnPopupShow (Menu popup)
            {
            }

            public override void OnSetDefaultValues (Connection conn)
            {
            }

            public override string[] Authors 
            {
                  get {
                        string[] cols = { "Loren Bandiera" };
                        return cols;
                  }
            }
            public override string Copyright 
            { 
                  get { return "MMG Security, Inc."; } 
            }
            
            public override string Description 
            { 
                  get { return "POSIX Group View"; } 
            }

            public override string Name 
            { 
                  get { return "Groups"; } 
            }
            
            public override string Version 
            { 
                  get { return Defines.VERSION; } 
            }

            public override string MenuLabel 
            {
                  get { return "Group"; }
            }

            public override AccelKey MenuKey 
            {
                  get { return new AccelKey (Gdk.Key.Key_3, Gdk.ModifierType.ControlMask, AccelFlags.Visible); }
            }
            
            public override Gdk.Pixbuf Icon 
            {
                  get { return Pixbuf.LoadFromResource ("users.png"); }
            }
      }
}

Generated by  Doxygen 1.6.0   Back to index