Java Doc for Group.java in  » Content-Management-System » dspace » org » dspace » eperson » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Content Management System » dspace » org.dspace.eperson 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.dspace.content.DSpaceObject
      org.dspace.eperson.Group

Group
public class Group extends DSpaceObject (Code)
Class representing a group of e-people.
author:
   David Stuve
version:
   $Revision: 2074 $


Field Summary
final public static  intID
    
final public static  intNAME
    

Constructor Summary
 Group(Context context, TableRow row)
    

Method Summary
public  voidaddMember(EPerson e)
    
public  voidaddMember(Group g)
    
public static  Set<Integer>allMemberGroupIDs(Context c, EPerson e)
    
public static  Group[]allMemberGroups(Context c, EPerson e)
    
public static  Set<Integer>allMemberIDs(Context c, Group g)
    
public static  EPerson[]allMembers(Context c, Group g)
     Get all of the epeople who are a member of the specified group, or a member of a sub-group of the specified group, etc.
public static  Groupcreate(Context context)
    
public  voiddelete()
    
public  booleanequals(Object other)
    
public static  Groupfind(Context context, int id)
    
public static  Group[]findAll(Context context, int sortField)
    
public static  GroupfindByName(Context context, String name)
    
public  StringgetHandle()
    
public  intgetID()
    
public  Group[]getMemberGroups()
    
public  EPerson[]getMembers()
    
public  StringgetName()
    
public  intgetType()
    
public  booleanisEmpty()
    
public  booleanisMember(EPerson e)
    
public  booleanisMember(Group g)
    
public static  booleanisMember(Context c, int groupid)
    
public  voidloadData()
    
public  voidremoveMember(EPerson e)
    
public  voidremoveMember(Group g)
    
public static  Group[]search(Context context, String query)
    
public static  Group[]search(Context context, String query, int offset, int limit)
    
public static  intsearchResultCount(Context context, String query)
     Returns the total number of groups returned by a specific query, without the overhead of creating the Group objects to store the results.
public  voidsetName(String name)
    
public  voidupdate()
    

Field Detail
ID
final public static int ID(Code)



NAME
final public static int NAME(Code)




Constructor Detail
Group
Group(Context context, TableRow row) throws SQLException(Code)
Construct a Group from a given context and tablerow
Parameters:
  context -
Parameters:
  row -




Method Detail
addMember
public void addMember(EPerson e)(Code)
add an eperson member
Parameters:
  e - eperson



addMember
public void addMember(Group g)(Code)
add group to this group
Parameters:
  g -



allMemberGroupIDs
public static Set<Integer> allMemberGroupIDs(Context c, EPerson e) throws SQLException(Code)
get Set of Integers all of the group memberships for an eperson
Parameters:
  c -
Parameters:
  e - Set of Integer groupIDs
throws:
  SQLException -



allMemberGroups
public static Group[] allMemberGroups(Context c, EPerson e) throws SQLException(Code)
Get all of the groups that an eperson is a member of
Parameters:
  c -
Parameters:
  e -
throws:
  SQLException -



allMemberIDs
public static Set<Integer> allMemberIDs(Context c, Group g) throws SQLException(Code)
Get Set of all Integers all of the epeople members for a group
Parameters:
  c - DSpace context
Parameters:
  g - Group object Set of Integer epersonIDs
throws:
  SQLException -



allMembers
public static EPerson[] allMembers(Context c, Group g) throws SQLException(Code)
Get all of the epeople who are a member of the specified group, or a member of a sub-group of the specified group, etc.
Parameters:
  c - DSpace context
Parameters:
  g - Group object Array of EPerson objects
throws:
  SQLException -



create
public static Group create(Context context) throws SQLException, AuthorizeException(Code)
Create a new group
Parameters:
  context - DSpace context object



delete
public void delete() throws SQLException(Code)
Delete a group



equals
public boolean equals(Object other)(Code)
Return true if other is the same Group as this object, false otherwise
Parameters:
  other - object to compare to true if object passed in represents the same groupas this object



find
public static Group find(Context context, int id) throws SQLException(Code)
find the group by its ID
Parameters:
  context -
Parameters:
  id -



findAll
public static Group[] findAll(Context context, int sortField) throws SQLException(Code)
Finds all groups in the site
Parameters:
  context - DSpace context
Parameters:
  sortField - field to sort by -- Group.ID or Group.NAME array of all groups in the site



findByName
public static Group findByName(Context context, String name) throws SQLException(Code)
Find the group by its name - assumes name is unique
Parameters:
  context -
Parameters:
  name - Group



getHandle
public String getHandle()(Code)



getID
public int getID()(Code)
get the ID of the group object id



getMemberGroups
public Group[] getMemberGroups()(Code)
Return Group members of a Group



getMembers
public EPerson[] getMembers()(Code)
Return EPerson members of a Group



getName
public String getName()(Code)
get name of group name



getType
public int getType()(Code)



isEmpty
public boolean isEmpty()(Code)
Return true if group has no members



isMember
public boolean isMember(EPerson e)(Code)
check to see if an eperson is a member
Parameters:
  e - eperson to check membership



isMember
public boolean isMember(Group g)(Code)
check to see if group is a member
Parameters:
  g - group to check



isMember
public static boolean isMember(Context c, int groupid) throws SQLException(Code)
fast check to see if an eperson is a member called with eperson id, does database lookup without instantiating all of the epeople objects and is thus a static method
Parameters:
  c - context
Parameters:
  groupid - group ID to check



loadData
public void loadData()(Code)
Populate Group with eperson and group objects
Parameters:
  context -
throws:
  SQLException -



removeMember
public void removeMember(EPerson e)(Code)
remove an eperson from a group
Parameters:
  e - eperson



removeMember
public void removeMember(Group g)(Code)
remove group from this group
Parameters:
  g -



search
public static Group[] search(Context context, String query) throws SQLException(Code)
Find the groups that match the search query across eperson_group_id or name
Parameters:
  context - DSpace context
Parameters:
  query - The search string array of Group objects



search
public static Group[] search(Context context, String query, int offset, int limit) throws SQLException(Code)
Find the groups that match the search query across eperson_group_id or name
Parameters:
  context - DSpace context
Parameters:
  query - The search string
Parameters:
  offset - Inclusive offset
Parameters:
  limit - Maximum number of matches returned array of Group objects



searchResultCount
public static int searchResultCount(Context context, String query) throws SQLException(Code)
Returns the total number of groups returned by a specific query, without the overhead of creating the Group objects to store the results.
Parameters:
  context - DSpace context
Parameters:
  query - The search string the number of groups mathching the query



setName
public void setName(String name)(Code)
set name of group
Parameters:
  name - new group name



update
public void update() throws SQLException, AuthorizeException(Code)
Update the group - writing out group object and EPerson list if necessary



Methods inherited from org.dspace.content.DSpaceObject
protected void addDetails(String d)(Code)(Java Doc)
protected void clearDetails()(Code)(Java Doc)
public static DSpaceObject find(Context context, int type, int id) throws SQLException(Code)(Java Doc)
protected String getDetails()(Code)(Java Doc)
abstract public String getHandle()(Code)(Java Doc)
abstract public int getID()(Code)(Java Doc)
abstract public String getName()(Code)(Java Doc)
abstract public int getType()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.