Package com.tietoenator.trip.jxp.users
Class TdbGroup
java.lang.Object
com.tietoenator.trip.jxp.session.TdbSessionObject
com.tietoenator.trip.jxp.TdbMessageProvider
com.tietoenator.trip.jxp.session.TdbSerializableObject
com.tietoenator.trip.jxp.users.TdbGroup
- All Implemented Interfaces:
TdbControlObjectProvider
Manipulator class for TRIP user groups
-
Constructor Summary
ConstructorsConstructorDescriptionTdbGroup
(TdbSession session) Constructor, creates a blank instanceTdbGroup
(TdbSession session, TdbControlObject ob) Constructor, creates a group instance associated with the group referenced by the provided objectTdbGroup
(TdbSession session, String groupName) Constructor, creates a group instance associated with the named group -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a user to this group.void
Add a user to a group.void
Changes ownership of all items owned by the calling user to that defined by 'newmgr'.void
Changes ownership of all items owned by 'oldmgr' to 'newmgr'.void
Move objects owned by one user to another user.void
copy
(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 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
Remove a group from the system.void
exportGroup
(String filename, boolean members, boolean procedures) Export the group's definition to a named file.void
importGroup
(String filename, String name) Create a new group by importing a definition from a file.void
importUpdate
(String filename) Update the group's definition with a saved definition read from a file.void
Remove a user from this group.void
Remove a user from a group.void
Rename the group.Methods inherited from class com.tietoenator.trip.jxp.session.TdbSerializableObject
getControlObject
Methods inherited from class com.tietoenator.trip.jxp.TdbMessageProvider
codeList, getLastCode, getLastMessage, hasMessages, messageList, resetMessages
Methods inherited from class com.tietoenator.trip.jxp.session.TdbSessionObject
cancel, getSession, isCancelable, setCancelable
-
Constructor Details
-
TdbGroup
Constructor, creates a group instance associated with the group referenced by the provided object- Parameters:
session
- Active sessionob
- Control object reference for the group- Throws:
TdbException
-
TdbGroup
Constructor, creates a group instance associated with the named group- Parameters:
session
- Active sessiongroupName
- Group name- Throws:
TdbException
-
TdbGroup
Constructor, creates a blank instance- Parameters:
session
- Active session- Throws:
TdbException
-
-
Method Details
-
create
Create a new user group.This method causes network I/O.
- Parameters:
groupname
- The name of the group to create- Throws:
TdbException
-
create
Create a new user group -- the name of the group is taken from the Control object provided when this TdbGroup instance was constructed.This method causes network I/O.
- Throws:
TdbException
-
delete
Remove a group from the system.This method causes network I/O.
- Parameters:
groupname
- The name of the group to remove- Throws:
TdbException
-
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.This method causes network I/O.
- Throws:
TdbException
-
add
Add a user to a group.This method causes network I/O.
- Parameters:
username
- The name of the user to addgroupname
- The name of the group to which the user is to be added- Throws:
TdbException
-
add
Add a user to this group. The group defined by the Control object passed into the constructor will be used as the container for the new user provided.This method causes network I/O.
- Parameters:
username
- The name of the user to add to the current group- Throws:
TdbException
-
remove
Remove a user from a group.This method causes network I/O.
- Parameters:
username
- The name of the usergroupname
- The name of the group from which to remove the user.- Throws:
TdbException
-
remove
Remove a user from this group. The group defined by the Control object passed into the constructor will be used as the container from which the user should be removed.This method causes network I/O.
- Parameters:
username
- The name of the user to remove from the current group- Throws:
TdbException
-
rename
Rename the group.This method causes network I/O.
- Parameters:
newname
- The new name of the group- Throws:
TdbException
-
changeMgr
Move objects owned by one user to another user.This method causes network I/O.
- Parameters:
newmgr
- Name of planned new owner of objectsoldmgr
- Name of the existing owner of objects.name
- The name of the object to move.- Throws:
TdbException
-
changeMgr
Changes ownership of all items owned by 'oldmgr' to 'newmgr'.This method causes network I/O.
- Parameters:
newmgr
- The name of the new manageroldmgr
- The name of the old manager- Throws:
TdbException
-
changeMgr
Changes ownership of all items owned by the calling user to that defined by 'newmgr'.This method causes network I/O.
- Parameters:
newmgr
- The name of the new manager- Throws:
TdbException
-
copy
Copy the membership list of this group to a new group, creating the new group in the process. Note that this fails if the new group already exists.This method causes network I/O.
- Parameters:
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 return- Throws:
TdbException
-
exportGroup
Export the group's definition to a named file.This method causes network I/O.
- Parameters:
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 group- Throws:
TdbException
-
importUpdate
Update the group's definition with a saved definition read from a file.This method causes network I/O.
- Parameters:
filename
- The name of the file from which to read the saved definition- Throws:
TdbException
-
importGroup
Create a new group by importing a definition from a file.This method causes network I/O.
- Parameters:
filename
- The name of the file from which to read the saved definitionname
- The name of the group to create with this operation- Throws:
TdbException
-