| java.lang.Object com.mvnforum.admin.GroupXML
GroupXML | public class GroupXML (Code) | | author: Igor Manic version: $Revision: 1.11 $, $Date: 2007/10/09 11:09:13 $ version:
version: GroupXML todo Igor: enter description |
Method Summary | |
public void | addGroup(String groupOwnerName, String groupName, String groupDesc, String groupOption, String groupCreationDate, String groupModifiedDate) Creates a group. | public void | addGroup(String strGroupID, String groupOwnerName, String groupName, String groupDesc, String groupOption, String groupCreationDate, String groupModifiedDate) Creates a group. | public void | addGroupPermission(String permission) Adds a permission to this group. | public static void | addGroupPermission(String groupname, String permission) | public void | addMemberGroup(String memberName, String privilege, String creationDate, String modifiedDate) Adds a member to this group. | public static void | addRegisteredMembersGroupPermission(String permission) | public static void | exportGlobalPermissionsForGroup(XMLWriter xmlWriter, int groupID) | public static void | exportGroup(XMLWriter xmlWriter, int groupID) | public static void | exportGroupList(XMLWriter xmlWriter) | public static void | exportGroupMembersForGroup(XMLWriter xmlWriter, int groupID) | public int | getGroupID() Returns GroupID of this group or
-1 if group is not created yet. | public void | setGroupID(String id) |
GroupXML | public GroupXML()(Code) | | |
addGroup | public void addGroup(String groupOwnerName, String groupName, String groupDesc, String groupOption, String groupCreationDate, String groupModifiedDate) throws CreateException, DuplicateKeyException, ObjectNotFoundException, DatabaseException, ForeignKeyNotFoundException(Code) | | Creates a group. All argument values (int s, Timestamp s, ...)
are represented as String s, because of more convenient using
of this method for XML parsing.
Parameters: groupOwnerName - Can be null. Parameters: groupName - Name of a group to be created. Parameters: groupDesc - Can be null. Parameters: groupOption - Can be null. Parameters: groupCreationDate - Can be null. Parameters: groupModifiedDate - Can be null. throws: CreateException - throws: DuplicateKeyException - throws: ObjectNotFoundException - throws: DatabaseException - throws: ForeignKeyNotFoundException - |
addGroup | public void addGroup(String strGroupID, String groupOwnerName, String groupName, String groupDesc, String groupOption, String groupCreationDate, String groupModifiedDate) throws CreateException, DuplicateKeyException, ObjectNotFoundException, DatabaseException, ForeignKeyNotFoundException(Code) | | Creates a group. All argument values (int s, Timestamp s, ...)
are represented as String s, because of more convenient using
of this method for XML parsing.
Parameters: strGroupID - Can be null, and it probably will be in most occasions,except when you want to setup an explicit value, likefor virtual "Registered Members" groups. Parameters: groupOwnerName - Can be null. Parameters: groupName - Name of a group to be created. Parameters: groupDesc - Can be null. Parameters: groupOption - Can be null. Parameters: groupCreationDate - Can be null. Parameters: groupModifiedDate - Can be null. throws: CreateException - throws: DuplicateKeyException - throws: ObjectNotFoundException - throws: DatabaseException - throws: ForeignKeyNotFoundException - |
addGroupPermission | public void addGroupPermission(String permission) throws CreateException, DatabaseException, ForeignKeyNotFoundException(Code) | | Adds a permission to this group. In order to know which group we are
reffering to, this method is supposed to be called after
GroupXML.setGroupID(String) ,
GroupXML.addGroup(String,String,String,String,String,String,String) or
GroupXML.addGroup(String,String,String,String,String,String) have been called. Otherwise, this permission will be simply ignored.
Parameters: permission - Permission to be added to this group. throws: CreateException - throws: DatabaseException - throws: ForeignKeyNotFoundException - |
addMemberGroup | public void addMemberGroup(String memberName, String privilege, String creationDate, String modifiedDate) throws CreateException, DatabaseException, DuplicateKeyException, ForeignKeyNotFoundException(Code) | | Adds a member to this group. In order to know which group we are
reffering to, this method is supposed to be called after
GroupXML.setGroupID(String) ,
GroupXML.addGroup(String,String,String,String,String,String,String) or
GroupXML.addGroup(String,String,String,String,String,String) have been called. Otherwise, this member assignment will be simply ignored.
Parameters: memberName - MemberName of a meber to be added to this group. Parameters: privilege - Can be null. Parameters: creationDate - Can be null. Parameters: modifiedDate - Can be null. throws: CreateException - throws: DatabaseException - throws: DuplicateKeyException - throws: ForeignKeyNotFoundException - |
getGroupID | public int getGroupID()(Code) | | Returns GroupID of this group or
-1 if group is not created yet.
|
|
|