public class TdbGroup extends TdbSerializableObject
| Constructor and Description |
|---|
TdbGroup(TdbSession session)
Constructor, creates a blank instance
|
TdbGroup(TdbSession session,
java.lang.String groupName)
Constructor, creates a group instance associated with the named group
|
TdbGroup(TdbSession session,
TdbControlObject ob)
Constructor, creates a group instance associated with the group referenced by the provided object
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String username)
Add a user to this group.
|
void |
add(java.lang.String username,
java.lang.String groupname)
Add a user to a group.
|
void |
changeMgr(java.lang.String newmgr)
Changes ownership of all items owned by the calling user to that defined by 'newmgr'.
|
void |
changeMgr(java.lang.String newmgr,
java.lang.String oldmgr)
Changes ownership of all items owned by 'oldmgr' to 'newmgr'.
|
void |
changeMgr(java.lang.String newmgr,
java.lang.String oldmgr,
java.lang.String name)
Move objects owned by one user to another user.
|
void |
copy(java.lang.String newname,
TdbControlObject ob)
Copy the membership list of this group to a new group, creating the new group in
the process.
|
void |
create()
Create a new user group -- the name of the group is taken from the
Control object provided when this TdbGroup instance was constructed.
|
void |
create(java.lang.String groupname)
Create a new user group.
|
void |
delete()
Remove a group from the system -- the name of the group is taken from the
Control object provided when this TdbGroup instance was constructed.
|
void |
delete(java.lang.String groupname)
Remove a group from the system.
|
void |
exportGroup(java.lang.String filename,
boolean members,
boolean procedures)
Export the group's definition to a named file.
|
void |
importGroup(java.lang.String filename,
java.lang.String name)
Create a new group by importing a definition from a file.
|
void |
importUpdate(java.lang.String filename)
Update the group's definition with a saved definition read from a file.
|
void |
remove(java.lang.String username)
Remove a user from this group.
|
void |
remove(java.lang.String username,
java.lang.String groupname)
Remove a user from a group.
|
void |
rename(java.lang.String newname)
Rename the group.
|
getControlObjectcodeList, getLastCode, getLastMessage, hasMessages, messageList, resetMessagescancel, getSession, isCancelable, setCancelablepublic TdbGroup(TdbSession session, TdbControlObject ob) throws TdbException
session - Active sessionob - Control object reference for the groupTdbExceptionpublic TdbGroup(TdbSession session, java.lang.String groupName) throws TdbException
session - Active sessiongroupName - Group nameTdbExceptionpublic TdbGroup(TdbSession session) throws TdbException
session - Active sessionTdbExceptionpublic void create(java.lang.String groupname)
throws TdbException
This method causes network I/O.
groupname - The name of the group to createTdbExceptionpublic void create()
throws TdbException
This method causes network I/O.
TdbExceptionpublic void delete(java.lang.String groupname)
throws TdbException
This method causes network I/O.
groupname - The name of the group to removeTdbExceptionpublic void delete()
throws TdbException
This method causes network I/O.
TdbExceptionpublic void add(java.lang.String username,
java.lang.String groupname)
throws TdbException
This method causes network I/O.
username - The name of the user to addgroupname - The name of the group to which the user is to be addedTdbExceptionpublic void add(java.lang.String username)
throws TdbException
This method causes network I/O.
username - The name of the user to add to the current groupTdbExceptionpublic void remove(java.lang.String username,
java.lang.String groupname)
throws TdbException
This method causes network I/O.
username - The name of the usergroupname - The name of the group from which to remove the user.TdbExceptionpublic void remove(java.lang.String username)
throws TdbException
This method causes network I/O.
username - The name of the user to remove from the current groupTdbExceptionpublic void rename(java.lang.String newname)
throws TdbException
This method causes network I/O.
newname - The new name of the groupTdbExceptionpublic void changeMgr(java.lang.String newmgr,
java.lang.String oldmgr,
java.lang.String name)
throws TdbException
This method causes network I/O.
newmgr - Name of planned new owner of objectsoldmgr - Name of the existing owner of objects.name - The name of the object to move.TdbExceptionpublic void changeMgr(java.lang.String newmgr,
java.lang.String oldmgr)
throws TdbException
This method causes network I/O.
newmgr - The name of the new manageroldmgr - The name of the old managerTdbExceptionpublic void changeMgr(java.lang.String newmgr)
throws TdbException
This method causes network I/O.
newmgr - The name of the new managerTdbExceptionpublic void copy(java.lang.String newname,
TdbControlObject ob)
throws TdbException
This method causes network I/O.
newname - The name of the new group to create and then populateob - If not null, this will contain Control information for the new group on returnTdbExceptionpublic void exportGroup(java.lang.String filename,
boolean members,
boolean procedures)
throws TdbException
This method causes network I/O.
filename - The name of the file to which the group's definition is to be writtenmembers - If set true, the export file will contain the membership list of the groupprocedures - If set true, the export file will contain the procedures owned by the groupTdbExceptionpublic void importUpdate(java.lang.String filename)
throws TdbException
This method causes network I/O.
filename - The name of the file from which to read the saved definitionTdbExceptionpublic void importGroup(java.lang.String filename,
java.lang.String name)
throws TdbException
This method causes network I/O.
filename - The name of the file from which to read the saved definitionname - The name of the group to create with this operationTdbException