Java Doc for UserGroupEngine.java in  » J2EE » fleXive » com » flexive » shared » interfaces » 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 » J2EE » fleXive » com.flexive.shared.interfaces 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.flexive.shared.interfaces.UserGroupEngine

All known Subclasses:   com.flexive.ejb.beans.UserGroupEngineBean,
UserGroupEngine
public interface UserGroupEngine (Code)
Interface to the user group engine.
author:
   Gregor Schober (gregor.schober@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)




Method Summary
 intcreate(String name, String color, long mandatorId)
     Creates a new group for a specific mandator.
 RoleListgetRoles(long groupId)
     Gets all roles that are assigned to a group.
 UserGroupload(long groupId)
     Loads a group defined by its unique id.
 UserGroupListloadAll(long mandatorId)
     Loads all groups belonging to a specific mandator, plus GROUP_EVERYONE and GROUP_OWNER.
public  UserGrouploadMandatorGroup(long mandatorId)
    
public  voidrebuildMandatorGroups()
    
 voidremove(long groupId)
     Removes a group defined by its unique id.
 voidsetRoles(long groupId, long[] roles)
     Sets the roles a group is in.
 voidsetRoles(long groupId, List<Role> roles)
     Sets the roles a group is in.
 voidupdate(long groupId, String name, String color)
     Updates a group defined by its unique id.

Users may only update groups of the mandator they belong to if they are in role ROLE_GROUP_MANAGEMENT.
Global supervisors may update the groups of all mandators.
Parameters:
  groupId - The group that should be updated
Parameters:
  color - the color of the group as 6 digit RGB value (eg 'FF0000' for pure red), or null to keep the old value
Parameters:
  name - the new name of the group, or null to keep the old value
throws:
  FxApplicationException - TODO
throws:
  FxNotFoundException - if the group to update does not exist
throws:
  FxNoAccessException - if the user lacks the permissions to update the group
throws:
  FxUpdateException - if the update failed
throws:
  FxEntryExistsException - if a group with the desired new name does already exist
throws:
  FxInvalidParameterException - if a parameter was invalid (eg.




Method Detail
create
int create(String name, String color, long mandatorId) throws FxApplicationException(Code)
Creates a new group for a specific mandator.

A user may only create groups for the mandator he belongs to, and only if he is in the role ROLE_GROUP_MANAGEMENT. Global supervisors are a exception and may create groups for all mandators.
Parameters:
  name - the unique name for the group
Parameters:
  color - the color of the group as 7 digit string holding the RGB value, eg '#FF0000' for pure red,or the name of a CSS class
Parameters:
  mandatorId - the mandator the group belongs to the created group's ID
throws:
  FxApplicationException - TODO
throws:
  FxNoAccessException - if the calling user lacks the permissions to create the group
throws:
  com.flexive.shared.exceptions.FxEntryExistsException - if a group with the given name exists
throws:
  com.flexive.shared.exceptions.FxInvalidParameterException - if a parameter was invalid (name,color,mandator)
throws:
  com.flexive.shared.exceptions.FxCreateException - if the create failed




getRoles
RoleList getRoles(long groupId) throws FxApplicationException(Code)
Gets all roles that are assigned to a group.

The caller may see the role assignments for all groups belonging to his mandator.
GLOBAL_SUPERVISOR may see the role assignments of all groups.
Parameters:
  groupId - the group to get the assigned roles for a list of the roles that ate assigned to the group
throws:
  FxApplicationException - TODO
throws:
  FxNoAccessException - if the caller lacks the permissions to get the roles
throws:
  FxNotFoundException - if the group does not exist
throws:
  FxLoadException - if the function failed to load the data




load
UserGroup load(long groupId) throws FxApplicationException(Code)
Loads a group defined by its unique id.

No permission checks are performed

Parameters:
  groupId - the unique id of the group to load the requested user group
throws:
  FxApplicationException - TODO
throws:
  com.flexive.shared.exceptions.FxNoAccessException - if the user may not access the group
throws:
  com.flexive.shared.exceptions.FxNotFoundException - if the group does not exist
throws:
  com.flexive.shared.exceptions.FxLoadException - if the load failed




loadAll
UserGroupList loadAll(long mandatorId) throws FxApplicationException(Code)
Loads all groups belonging to a specific mandator, plus GROUP_EVERYONE and GROUP_OWNER.

Specify -1 t load all groups within the system (all mandators).
Parameters:
  mandatorId - the mandator id to load the groups for, or -1 to load all groups all groups belonging to the mandator
throws:
  FxApplicationException - TODO
throws:
  FxNoAccessException - If the calling user may not access the groups of the given mandator
throws:
  FxLoadException - if the load failed




loadMandatorGroup
public UserGroup loadMandatorGroup(long mandatorId) throws FxApplicationException(Code)
Load the user group that contains all users of a given mandator
Parameters:
  mandatorId - mandator UserGroup containing all users of the mandator
throws:
  FxApplicationException - on errors



rebuildMandatorGroups
public void rebuildMandatorGroups() throws FxApplicationException(Code)
Rebuild the mandator groups
throws:
  FxApplicationException - on errors



remove
void remove(long groupId) throws FxApplicationException(Code)
Removes a group defined by its unique id.

Users may only remove groups belonging to their mandator, and only if they are in ROLE_GROUP_MANAGEMENT.
Global supervisors may remove groups of all mandators. The groups GROUP_EVERYONE and GROUP_OWNER may not be removed in any case.
Parameters:
  groupId - the unqiue id of the group to remove
throws:
  FxApplicationException - TODO
throws:
  FxNoAccessException - if the user lacks the permissions to remove the group
throws:
  FxNotFoundException - if the group does not exist
throws:
  FxRemoveException - if the remove failed




setRoles
void setRoles(long groupId, long[] roles) throws FxApplicationException(Code)
Sets the roles a group is in.

To set roles the caller must be in role ROLE_ROLE_MANAGEMENT, and may only update groups belonging to his mandator.
GROUP_GLOBAL_SUPERVISOR may set the roles for groups of all users.

Parameters:
  groupId - the group to set the roles for
Parameters:
  roles - the roles to set
throws:
  FxApplicationException - TODO
throws:
  FxNoAccessException - if the calling user lacks the permissions to set the roles for the given group
throws:
  FxNotFoundException - if the group does not exist
throws:
  FxUpdateException - if setting the roles failed




setRoles
void setRoles(long groupId, List<Role> roles) throws FxApplicationException(Code)
Sets the roles a group is in.

To set roles the caller must be in role ROLE_ROLE_MANAGEMENT, and may only update groups belonging to his mandator.
GROUP_GLOBAL_SUPERVISOR may set the roles for groups of all users.

Parameters:
  groupId - the group to set the roles for
Parameters:
  roles - the roles to set
throws:
  FxApplicationException - TODO
throws:
  FxNoAccessException - if the calling user lacks the permissions to set the roles for the given group
throws:
  FxNotFoundException - if the group does not exist
throws:
  FxUpdateException - if setting the roles failed




update
void update(long groupId, String name, String color) throws FxApplicationException(Code)
Updates a group defined by its unique id.

Users may only update groups of the mandator they belong to if they are in role ROLE_GROUP_MANAGEMENT.
Global supervisors may update the groups of all mandators.
Parameters:
  groupId - The group that should be updated
Parameters:
  color - the color of the group as 6 digit RGB value (eg 'FF0000' for pure red), or null to keep the old value
Parameters:
  name - the new name of the group, or null to keep the old value
throws:
  FxApplicationException - TODO
throws:
  FxNotFoundException - if the group to update does not exist
throws:
  FxNoAccessException - if the user lacks the permissions to update the group
throws:
  FxUpdateException - if the update failed
throws:
  FxEntryExistsException - if a group with the desired new name does already exist
throws:
  FxInvalidParameterException - if a parameter was invalid (eg. the color format)




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