Java Doc for KasaiFacade.java in  » Authentication-Authorization » kasai-2.0.0 » org » manentia » kasai » 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 » Authentication Authorization » kasai 2.0.0 » org.manentia.kasai 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.manentia.kasai.KasaiFacade

KasaiFacade
public class KasaiFacade (Code)
Class to provide authority and authorization functionalities
author:
   fpena
author:
   (c) 2004 Koala Developers S.R.L.


Field Summary
final static  StringADD_USER_TO_GROUP
    
final static  StringBLOCK_GROUP
    
final static  StringBLOCK_USER
    
final static  StringCOMMIT_GROUP
    
final static  StringCOMMIT_ROLE
    
final static  StringCOMMIT_USER
    
final static  StringDELETE_GROUP
    
final static  StringDELETE_ROLE
    
final static  StringDELETE_USER
    
final static  StringDELETE_USER_GROUP
    
final static  StringLIST_AUDIT_ENTRIES
    
final static  StringMODIFY_ACCESS
    
final static  StringREAD_GROUP
    
final static  StringREAD_ROLE
    
final static  StringREAD_USER
    
final static  StringRESET_PASSWORD_USER
    
final static  StringUNBLOCK_GROUP
    
final static  StringUNBLOCK_USER
    


Method Summary
public  voidaddOperativeToRole(String loginUser, String idOperative, int role, String clientIP)
     Add one operative to a specific role.
public  voidaddUserToGroup(String loginUser, String idGroup, String idUserToAdd, String clientIP)
    
public  voidblockGroup(String loginUser, String idGroup, String clientIP)
     Method to block just the group, not the users.
public  voidblockUser(String loginUser, String idUserToBlock, String clientIP)
     Method to block a specific user.
public  voidchangePasswordUser(String login, String oldPassword, String newPassword, String confirmation, String clientIP)
    
public  booleancheckOperative(String login, String operative, String object)
    
public  voidcheckPasswordUser(String login, String password, String clientIP)
    
public  voidcopyObjectRoles(String loginUser, String sourceObject, String destinationObject)
     Copy all permissions from one object to another.
public  voidcreateAuditEntry(String userId, int returnCode, String errorDescription, long duration, String clientIP, String operation, String objectID, Document transactionData)
    
public  voidcreateAuditEntry(String userId, int returnCode, String errorDescription, long duration, String clientIP, String operation, String objectID, HashMap<String, String> transactionData)
    
public  voidcreateGroup(String loginUser, Group group, String clientIP)
    
public  voidcreateGroup(String loginUser, String id, String description, boolean blocked, String clientIP)
    
public  voidcreateObject(String loginUser, String objectId)
     Method to register a new object in kasai.
public  voidcreateObjectGroupRole(String loginUser, String objectId, String group, int role, String clientIP)
     Method to assign permissions.
public  voidcreateObjectUserRole(String objectId, String user, int role)
     Method to assign permissions.
public  voidcreateObjectUserRole(String loginUser, String objectId, String user, int role, String clientIP)
     Method to assign permissions.
public  voidcreateObjectWithRole(String loginUser, String objectId, int roleId)
    
public  intcreateRole(String loginUser, String name, String description, String[] operatives, String clientIP)
    
public  voidcreateUser(String loginUser, String idUser, String firstName, String lastName, String email, boolean blocked, String description, boolean superUser, String clientIP)
    
public  voidcreateUser(String loginUser, String idUser, String firstName, String lastName, String email, boolean blocked, String description, boolean superUser, String password, String clientIP)
    
public  voidcreateUser(String loginUser, User user, String password, String clientIP)
    
public  voiddeleteGroup(String loginUser, String group, String clientIP)
    
public  voiddeleteObject(String objectId)
    
public  voiddeleteObjectGroupRole(String loginUser, int id, String clientIP)
    
public  voiddeleteObjectUserRole(String loginUser, int id, String clientIP)
    
public  voiddeleteObjectUserRole(String user, String idObject)
    
public  voiddeleteObjectUserRole(String loginUser, String user, String idObject, int role, String clientIP)
    
public  voiddeleteObjectUserRole(String loginUser, String user, String idObject, String clientIP)
    
public  voiddeleteRole(String loginUser, int role, String clientIP)
    
public  voiddeleteUser(String loginUser, String idUserToDelete, String clientIP)
    
public static synchronized  KasaiFacadegetInstance()
    
public  booleanisUserInGroup(String login, String userId, String groupId)
    
public  Collection<AuditBean>listAuditEntries(String loginUser, java.util.Date dateFrom, java.util.Date dateTo, java.lang.String user, java.lang.String operation, String clientIP)
    
public  String[]listGroupMembers(String groupId)
    
public  List<Group>listGroups(String actualUser, String idGroup, String description, int blocked, int system)
    
public  Collection<Group>listGroupsFromUser(String user)
    
public  Collection<Group>listGroupsFromUser(String loginUser, String user)
    
public  Collection<Group>listGroupsOperativeCollection(String operative, String object)
     List groups that have a given operative assigned over a specific object.
public  CollectionlistObjectRoles(String loginUser, String idObject)
    
public  Collection<Operative>listOperatives(String loginUser)
    
public  Collection<Operative>listOperativesFromRole(String loginUser, int role)
    
public  Collection<Operative>listOperativesNotInRole(String loginUser, int role)
    
public  List<Role>listRoles(String loginUser, String name)
    
public  String[]listUsernames()
    
public  List<User>listUsers(String loginUser, String login, String firstName, String lastName, String email, int blocked, String description, String group)
    
public  Collection<User>listUsersFromGroup(String group)
    
public  Collection<User>listUsersFromGroup(String loginUser, String group)
    
public  Collection<User>listUsersNotInGroup(String loginUser, String group)
    
public  Collection<User>listUsersOperative(String operative, String object)
     List users that have a given operative assigned over a specific object.
public  voidmodifyRole(String loginUser, int role, String name, String description, String[] operatives, String clientIP)
    
public  GroupreadGroup(String group)
    
public  GroupreadGroup(String loginUser, String group, String clientIP)
    
public  RolereadRole(int role)
    
public  RolereadRole(String loginUser, int role)
    
public  UserreadUser(String login)
    
public  UserreadUser(String loginUser, String login, String clientIP)
     Read a user checking permission and auditing the transaction.
public  voidremindPasswordUser(String loginUser, String clientIP)
     Reset the user password and send it to his email.
public  voidremoveOperativeFromRole(String loginUser, String idOperative, int role, String clientIP)
    
public  voidremoveUserFromGroup(String loginUser, String idGroup, String login, String clientIP)
    
public  voidresetPasswordUser(String actualUser, String login, String clientIP)
    
public  voidunblockGroup(String loginUser, String idGroup, String clientIP)
    
public  voidunblockUser(String loginUser, String login, String clientIP)
    
public  voidupdateGroup(String loginUser, Group group, String[] members, String clientIP)
    
public  voidupdateGroup(String loginUser, String id, String description, boolean blocked, String[] members, String clientIP)
    
public  voidupdateUser(String loginUser, String login, String firstName, String lastName, String email, boolean blocked, String description, boolean superUser, String clientIP)
    
public  voidupdateUser(String loginUser, User user, String clientIP)
    
public  voidvalidateOperative(String user, String operative, String object)
    

Field Detail
ADD_USER_TO_GROUP
final static String ADD_USER_TO_GROUP(Code)
Permission to add users to a group



BLOCK_GROUP
final static String BLOCK_GROUP(Code)
Permission to block a group



BLOCK_USER
final static String BLOCK_USER(Code)
Permission to block a user



COMMIT_GROUP
final static String COMMIT_GROUP(Code)
Permission to modify a group



COMMIT_ROLE
final static String COMMIT_ROLE(Code)
Permission to modify a role



COMMIT_USER
final static String COMMIT_USER(Code)
Permission to modify a user



DELETE_GROUP
final static String DELETE_GROUP(Code)
Permission to delete a group



DELETE_ROLE
final static String DELETE_ROLE(Code)
Permission to delete a role



DELETE_USER
final static String DELETE_USER(Code)
Permission to delete a user



DELETE_USER_GROUP
final static String DELETE_USER_GROUP(Code)
Permission to delete a user from a group



LIST_AUDIT_ENTRIES
final static String LIST_AUDIT_ENTRIES(Code)



MODIFY_ACCESS
final static String MODIFY_ACCESS(Code)
Permission to modify permissions of a object



READ_GROUP
final static String READ_GROUP(Code)
Permission to read a group



READ_ROLE
final static String READ_ROLE(Code)
Permission to read a role



READ_USER
final static String READ_USER(Code)
Permission to read a user



RESET_PASSWORD_USER
final static String RESET_PASSWORD_USER(Code)
Permission to reset a user password



UNBLOCK_GROUP
final static String UNBLOCK_GROUP(Code)
Permission to unblock a group



UNBLOCK_USER
final static String UNBLOCK_USER(Code)
Permission to unblock a user





Method Detail
addOperativeToRole
public void addOperativeToRole(String loginUser, String idOperative, int role, String clientIP) throws DataAccessException, DoesntExistsException, NotEnoughPermissionException, CannotAuditException(Code)
Add one operative to a specific role.
Parameters:
  loginUser - User who is making the request
Parameters:
  idOperative - Operative identifier
Parameters:
  role - Role identifier
Parameters:
  clientIP - IP Address of whom is making the request Client IP address
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  DoesntExistsException - The operative or role does not exist
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  CannotAuditException - Error auditing operation



addUserToGroup
public void addUserToGroup(String loginUser, String idGroup, String idUserToAdd, String clientIP) throws DataAccessException, DoesntExistsException, NotEnoughPermissionException, CannotAuditException, XMLException(Code)
Add a user to a specific group
Parameters:
  loginUser - User who is making the request
Parameters:
  idGroup - Destination group identifier
Parameters:
  idUserToAdd - User identifier
Parameters:
  clientIP - IP Address of whom is making the request IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  DoesntExistsException - The user or group does not exist
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  CannotAuditException - Errors auditing operation
throws:
  XMLException -



blockGroup
public void blockGroup(String loginUser, String idGroup, String clientIP) throws DataAccessException, InvalidAttributesException, NotEnoughPermissionException, DoesntExistsException, CannotAuditException, XMLException(Code)
Method to block just the group, not the users. Users lost permissions assigned to them through the group.
Parameters:
  loginUser - User who is making the request
Parameters:
  idGroup - Group identifier
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  InvalidAttributesException - Group existing attributes are not correct
throws:
  NotEnoughPermissionException - The user cannot execute this operative
throws:
  DoesntExistsException - The group does not exist
throws:
  CannotAuditException - Error auditing transaction
throws:
  XMLException -



blockUser
public void blockUser(String loginUser, String idUserToBlock, String clientIP) throws DataAccessException, InvalidAttributesException, NotEnoughPermissionException, DoesntExistsException, CannotAuditException, XMLException(Code)
Method to block a specific user. After this, user is disabled to use the application.
Parameters:
  loginUser - User who is making the request
Parameters:
  idUserToBlock - User identifier
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  InvalidAttributesException - Existing user information is invalid
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  DoesntExistsException - The selected user does not exist
throws:
  CannotAuditException - Error auditing transaction
throws:
  XMLException -



changePasswordUser
public void changePasswordUser(String login, String oldPassword, String newPassword, String confirmation, String clientIP) throws DataAccessException, InvalidAttributesException, ServiceException, ServiceNotAvailableException, DoesntExistsException, CannotAuditException, InvalidPasswordException, XMLException(Code)
Method to change the user's password
Parameters:
  login - User who is making the request
Parameters:
  oldPassword - Actual password
Parameters:
  newPassword - New password
Parameters:
  confirmation - Confirmation password
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  InvalidAttributesException - Existing user info or new password are not valid
throws:
  ServiceException - Error changing password at the authentication service level
throws:
  ServiceNotAvailableException - The authentication service is not available
throws:
  DoesntExistsException - The user does not exists
throws:
  CannotAuditException - Error auditing operation
throws:
  InvalidPasswordException - The old password is not valid
throws:
  XMLException -



checkOperative
public boolean checkOperative(String login, String operative, String object)(Code)
Method to verify if a user can do a specific operative over the object identified by object parameter
Parameters:
  login - User who is making the request
Parameters:
  operative - Operative to run over the object
Parameters:
  object - Id of the object True if the user can do the operative over this object, false in other case



checkPasswordUser
public void checkPasswordUser(String login, String password, String clientIP) throws DataAccessException, NotFoundException, UserBlockedException, InvalidPasswordException, ServiceException, ServiceNotAvailableException, CannotAuditException, XMLException(Code)
Method to verify user's password
Parameters:
  login - User who is making the request
Parameters:
  password - User password
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  NotFoundException - The user does not exist
throws:
  UserBlockedException - The user is blocked
throws:
  InvalidPasswordException - The password is not valid
throws:
  ServiceException - The authentication service raised an error while validating the password
throws:
  ServiceNotAvailableException - The authentication service is not available
throws:
  CannotAuditException - Error auditing operation
throws:
  XMLException -



copyObjectRoles
public void copyObjectRoles(String loginUser, String sourceObject, String destinationObject) throws DataAccessException, DoesntExistsException(Code)
Copy all permissions from one object to another.
Parameters:
  loginUser - User who is making the request
Parameters:
  sourceObject -
Parameters:
  destinationObject -
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  DoesntExistsException - One (or both) of the objects does not exist



createAuditEntry
public void createAuditEntry(String userId, int returnCode, String errorDescription, long duration, String clientIP, String operation, String objectID, Document transactionData) throws CannotAuditException(Code)
Audit an operation
Parameters:
  userId - User who is making the request
Parameters:
  returnCode - Return code
Parameters:
  errorDescription - Error description
Parameters:
  duration - Duration in milliseconds
Parameters:
  clientIP - IP Address of whom is making the request
Parameters:
  operation - Operation executed
Parameters:
  objectID - Object involved in the operation
Parameters:
  transactionData - Extra data
throws:
  CannotAuditException - A severe error ocurred while writing the audit entry



createAuditEntry
public void createAuditEntry(String userId, int returnCode, String errorDescription, long duration, String clientIP, String operation, String objectID, HashMap<String, String> transactionData) throws CannotAuditException(Code)
Audits an operation
Parameters:
  userId - User who is making the request
Parameters:
  returnCode - Return code
Parameters:
  errorDescription - Error description
Parameters:
  duration - Duration in milliseconds
Parameters:
  clientIP - IP Address of whom is making the request
Parameters:
  operation - Operation executed
Parameters:
  objectID - Object involved in the operation
Parameters:
  transactionData - Extra data
throws:
  CannotAuditException - A severe error ocurred while writing the audit entry



createGroup
public void createGroup(String loginUser, Group group, String clientIP) throws DataAccessException, AlreadyExistsException, InvalidAttributesException, NotEnoughPermissionException, CannotAuditException, CriticalException(Code)



createGroup
public void createGroup(String loginUser, String id, String description, boolean blocked, String clientIP) throws DataAccessException, AlreadyExistsException, InvalidAttributesException, NotEnoughPermissionException, CannotAuditException, CriticalException(Code)
Method to create a group
Parameters:
  loginUser - User who is making the request
Parameters:
  id - Group Group Identifier
Parameters:
  description - Group description
Parameters:
  blocked - Specify if the group must be blocked or not
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  AlreadyExistsException - A group with the given ID already exists
throws:
  InvalidAttributesException - The attributes are not valid for a group
throws:
  NotEnoughPermissionException - The user does not have enough permission to execute this operation
throws:
  CannotAuditException - Error auditing transaction
throws:
  CriticalException - Severe error creating group



createObject
public void createObject(String loginUser, String objectId) throws DataAccessException, CriticalException(Code)
Method to register a new object in kasai. It Method assign to the loginUser the role specified in the properties file with the property kasai.default.role
Parameters:
  loginUser - User who is making the request
Parameters:
  objectId - Object identifier
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  CriticalException - The object could be created but not its default permissions



createObjectGroupRole
public void createObjectGroupRole(String loginUser, String objectId, String group, int role, String clientIP) throws DataAccessException, DoesntExistsException, NotEnoughPermissionException, CannotAuditException, XMLException(Code)
Method to assign permissions. This assign the role specified to the group over the object identified by objectId
Parameters:
  loginUser - User who is making the request
Parameters:
  objectId - Object identifier
Parameters:
  group - Group identifier
Parameters:
  role - Role identifier
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  DoesntExistsException - The object, group or role doesnt exists
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  CannotAuditException - Error auditing transaction
throws:
  XMLException -



createObjectUserRole
public void createObjectUserRole(String objectId, String user, int role) throws DataAccessException, DoesntExistsException, XMLException(Code)
Method to assign permissions. This assign the role specified to the user over the object identified by objectId
Parameters:
  objectId - User who is making the request
Parameters:
  user - User identifier
Parameters:
  role - Role identifier
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  DoesntExistsException - The object, user or role doesnt exist
throws:
  XMLException -



createObjectUserRole
public void createObjectUserRole(String loginUser, String objectId, String user, int role, String clientIP) throws DataAccessException, DoesntExistsException, NotEnoughPermissionException, CannotAuditException, XMLException(Code)
Method to assign permissions. This assign the role specified to the user over the object identified by objectId
Parameters:
  loginUser - User who is making the request
Parameters:
  objectId - Object identifier
Parameters:
  user - User identifier
Parameters:
  role - Role identifier
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  DoesntExistsException - The user, object or role doesnt exist
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  CannotAuditException - Error auditing transaction
throws:
  XMLException -



createObjectWithRole
public void createObjectWithRole(String loginUser, String objectId, int roleId) throws DataAccessException, DoesntExistsException, XMLException(Code)
Register an object in Kasai, and assign to the user the specified role (roleId) over an object (objectId)
Parameters:
  loginUser - User who is making the request
Parameters:
  objectId - Object Identifier
Parameters:
  roleId - Role identifier
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  DoesntExistsException - The user, object or role doesnt exist
throws:
  XMLException -



createRole
public int createRole(String loginUser, String name, String description, String[] operatives, String clientIP) throws AlreadyExistsException, DoesntExistsException, DataAccessException, InvalidAttributesException, NotEnoughPermissionException, CannotAuditException, CriticalException(Code)
Creates a role
Parameters:
  loginUser - User who is making the request
Parameters:
  name - Name of the role to be created
Parameters:
  description - Description of the role to be created
Parameters:
  operatives - Operatives of the role to be created
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  CriticalException - Severe errors like SQL error, IO Error, etc
throws:
  AlreadyExistsException - A role with the given name already exists
throws:
  DoesntExistsException - One of the given operatives does not exist
throws:
  InvalidAttributesException - The attributes are not valid for a role
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  CannotAuditException - Error auditing transaction



createUser
public void createUser(String loginUser, String idUser, String firstName, String lastName, String email, boolean blocked, String description, boolean superUser, String clientIP) throws DataAccessException, AlreadyExistsException, InvalidAttributesException, DoesntExistsException, NotEnoughPermissionException, CannotAuditException, CriticalException, InvalidPasswordException(Code)
Creates a user
Parameters:
  loginUser - User who is making the request
Parameters:
  idUser - Identifier of the user to be created
Parameters:
  firstName - First Name of the user to be created
Parameters:
  lastName - Last Name of the user to be created
Parameters:
  email - Email of the user to be created
Parameters:
  blocked - Specifies if the user must be blocked or not
Parameters:
  description - Description of the user to be created
Parameters:
  superUser - Specifies if the user must be superUser or not
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  CriticalException - Severe errors like SQL error, IO Error, etc
throws:
  AlreadyExistsException - A user with the given id already exists
throws:
  InvalidAttributesException - The attributes are not valid for a user
throws:
  DoesntExistsException - The user executing the transaction does not exist
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  CannotAuditException - Error auditing transaction
throws:
  InvalidPasswordException -



createUser
public void createUser(String loginUser, String idUser, String firstName, String lastName, String email, boolean blocked, String description, boolean superUser, String password, String clientIP) throws DataAccessException, AlreadyExistsException, InvalidAttributesException, DoesntExistsException, NotEnoughPermissionException, CannotAuditException, CriticalException, InvalidPasswordException(Code)
Creates a user
Parameters:
  loginUser - User who is making the request
Parameters:
  idUser - Identifier of the user to be created
Parameters:
  firstName - First Name of the user to be created
Parameters:
  lastName - Last Name of the user to be created
Parameters:
  email - Email of the user to be created
Parameters:
  blocked - Specifies if the user must be blocked or not
Parameters:
  description - Description of the user to be created
Parameters:
  superUser - Specifies if the user must be superUser or not
Parameters:
  password - Password to assign to the user
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  CriticalException - Severe errors like SQL error, IO Error, etc
throws:
  AlreadyExistsException - A user with the given id already exists
throws:
  InvalidAttributesException - The attributes are not valid for a user
throws:
  DoesntExistsException - The user executing the transaction does not exist
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  CannotAuditException - Error auditing transaction



createUser
public void createUser(String loginUser, User user, String password, String clientIP) throws DataAccessException, AlreadyExistsException, InvalidAttributesException, DoesntExistsException, NotEnoughPermissionException, CannotAuditException, CriticalException, InvalidPasswordException(Code)



deleteGroup
public void deleteGroup(String loginUser, String group, String clientIP) throws DataAccessException, NotEnoughPermissionException, CannotAuditException(Code)
Deletes a group
Parameters:
  loginUser - User who is making the request
Parameters:
  group - Group identifier to be deleted
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  CannotAuditException - Error auditing transaction



deleteObject
public void deleteObject(String objectId) throws DataAccessException(Code)
Unregister an object from Kasai
Parameters:
  objectId - Object identifier to be deleted
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc



deleteObjectGroupRole
public void deleteObjectGroupRole(String loginUser, int id, String clientIP) throws DataAccessException, CannotAuditException(Code)
Remove an assigned role to the group over an object
Parameters:
  loginUser - User who is making the request
Parameters:
  id - Identifier
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  CannotAuditException - Error auditing transaction



deleteObjectUserRole
public void deleteObjectUserRole(String loginUser, int id, String clientIP) throws DataAccessException, CannotAuditException(Code)
Remove all assigned roles to the user over an object
Parameters:
  loginUser - User who is making the request
Parameters:
  id - Relation identifier to be deleted
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  CannotAuditException - Error auditing transaction



deleteObjectUserRole
public void deleteObjectUserRole(String user, String idObject) throws DataAccessException(Code)
Remove all assigned roles to the user over an object
Parameters:
  user - User who is making the request
Parameters:
  idObject - Object identifier
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc



deleteObjectUserRole
public void deleteObjectUserRole(String loginUser, String user, String idObject, int role, String clientIP) throws DataAccessException, NotEnoughPermissionException, CannotAuditException(Code)
Remove an assigned role to the user over an object
Parameters:
  loginUser - User who is making the request
Parameters:
  user - User identifier
Parameters:
  idObject - Object identifier
Parameters:
  role - Role identifier
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  CannotAuditException - Error auditing transaction



deleteObjectUserRole
public void deleteObjectUserRole(String loginUser, String user, String idObject, String clientIP) throws DataAccessException, NotEnoughPermissionException, CannotAuditException(Code)
Remove all assigned roles to the user over an object
Parameters:
  loginUser - User who is making the request
Parameters:
  user - User identifier
Parameters:
  idObject - Object identifier
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  CannotAuditException - Error auditing transaction



deleteRole
public void deleteRole(String loginUser, int role, String clientIP) throws DataAccessException, NotEnoughPermissionException, CannotAuditException(Code)
Delete a role
Parameters:
  loginUser - User who is making the request
Parameters:
  role - Role identifier to be deleted
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  CannotAuditException - Error auditing transaction



deleteUser
public void deleteUser(String loginUser, String idUserToDelete, String clientIP) throws DataAccessException, NotEnoughPermissionException, CannotAuditException(Code)
Delete a user
Parameters:
  loginUser - User who is making the request
Parameters:
  idUserToDelete - User identifier to be deleted
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  CannotAuditException - Error auditing transaction



getInstance
public static synchronized KasaiFacade getInstance()(Code)
Returns an instance of KasaiFacade Instance of KasaiFacade



isUserInGroup
public boolean isUserInGroup(String login, String userId, String groupId) throws DataAccessException, XMLException(Code)
Method to verify if a specific user is part of a specific group
Parameters:
  login - User who is making the request
Parameters:
  userId - Specific user
Parameters:
  groupId - Specific group true if the userId is part of a groupId
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc Severe error (SQL errors, IO errors, etc)
throws:
  XMLException -



listAuditEntries
public Collection<AuditBean> listAuditEntries(String loginUser, java.util.Date dateFrom, java.util.Date dateTo, java.lang.String user, java.lang.String operation, String clientIP) throws DataAccessException, NonCriticalException, CannotAuditException(Code)



listGroupMembers
public String[] listGroupMembers(String groupId) throws DataAccessException(Code)



listGroups
public List<Group> listGroups(String actualUser, String idGroup, String description, int blocked, int system) throws DataAccessException, XMLException(Code)
List groups
Parameters:
  actualUser - User making the request
Parameters:
  idGroup - It filters the list by group identifier
Parameters:
  description - It filters the list by group description
Parameters:
  blocked - It filters the list by blocked attribute
Parameters:
  system - It filters the list by system attribute Groups that satisfy given filters.
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  XMLException -



listGroupsFromUser
public Collection<Group> listGroupsFromUser(String user) throws DataAccessException, XMLException(Code)
List all the groups a user is member of
Parameters:
  user - user identifier A collection containing the groups
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  XMLException -



listGroupsFromUser
public Collection<Group> listGroupsFromUser(String loginUser, String user) throws DataAccessException, NotEnoughPermissionException, XMLException(Code)
List all the groups a user is member of
Parameters:
  loginUser - User who is making the request
Parameters:
  user - User identifier A collection containing groups
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  XMLException -



listGroupsOperativeCollection
public Collection<Group> listGroupsOperativeCollection(String operative, String object) throws DataAccessException, XMLException(Code)
List groups that have a given operative assigned over a specific object.
Parameters:
  operative - Operative
Parameters:
  object - Object identifier A collection of groups
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  XMLException -



listObjectRoles
public Collection listObjectRoles(String loginUser, String idObject) throws DataAccessException(Code)
List assigned permissions over a given object
Parameters:
  loginUser - User who is making the request
Parameters:
  idObject - Object identifier
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc



listOperatives
public Collection<Operative> listOperatives(String loginUser) throws DataAccessException(Code)
List all operatives
Parameters:
  loginUser - User who is making the request Operatives
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc



listOperativesFromRole
public Collection<Operative> listOperativesFromRole(String loginUser, int role) throws DataAccessException(Code)
List all operatives for a given role
Parameters:
  loginUser - User who is making the request
Parameters:
  role - Role Identifier
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc



listOperativesNotInRole
public Collection<Operative> listOperativesNotInRole(String loginUser, int role) throws DataAccessException(Code)
List operatives that are not part of the role
Parameters:
  loginUser - User who is making the request
Parameters:
  role - Role identifier
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc



listRoles
public List<Role> listRoles(String loginUser, String name) throws DataAccessException(Code)
List all roles
Parameters:
  loginUser - User who is making the request
Parameters:
  name - It filters the list by the role name List of roles
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc



listUsernames
public String[] listUsernames() throws DataAccessException(Code)



listUsers
public List<User> listUsers(String loginUser, String login, String firstName, String lastName, String email, int blocked, String description, String group) throws DataAccessException, XMLException(Code)
List users
Parameters:
  loginUser - User who is making the request
Parameters:
  login - It filters the list by the user login
Parameters:
  firstName - It filters the list by the user first name
Parameters:
  lastName - It filters the list by the user last name
Parameters:
  email - It filters the list by the user email
Parameters:
  blocked - It filters the list by the block attribute
Parameters:
  description - It filters the list by the user description
Parameters:
  group - It filters the list by a specific group that the user has to belong to List of users
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  XMLException -



listUsersFromGroup
public Collection<User> listUsersFromGroup(String group) throws DataAccessException, XMLException(Code)
List group's users without checking permission
Parameters:
  group - Group Identifier List of users
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  XMLException -



listUsersFromGroup
public Collection<User> listUsersFromGroup(String loginUser, String group) throws DataAccessException, XMLException(Code)
List group's users checking permission
Parameters:
  loginUser - User who is making the request
Parameters:
  group - Group identifier List of users
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  XMLException -



listUsersNotInGroup
public Collection<User> listUsersNotInGroup(String loginUser, String group) throws DataAccessException, XMLException(Code)
List users that aren't part of a group
Parameters:
  loginUser - User who is making the request
Parameters:
  group - Group identifier List of users
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  XMLException -



listUsersOperative
public Collection<User> listUsersOperative(String operative, String object) throws DataAccessException, XMLException(Code)
List users that have a given operative assigned over a specific object.
Parameters:
  operative - Operative identifier
Parameters:
  object - Object identifier A collection of users
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  XMLException -



modifyRole
public void modifyRole(String loginUser, int role, String name, String description, String[] operatives, String clientIP) throws DataAccessException, InvalidAttributesException, NotEnoughPermissionException, CannotAuditException(Code)
Modify a role
Parameters:
  loginUser - User who is making the request
Parameters:
  role - Role identifier
Parameters:
  name - New name of the role to be modified
Parameters:
  description - New description of the role to be modified
Parameters:
  operatives - New operatives of the role to be modified
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  InvalidAttributesException - The new attributes are not valid for a role
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  CannotAuditException - Error auditing transaction



readGroup
public Group readGroup(String group) throws DataAccessException, DoesntExistsException, XMLException(Code)
Read a group without checking permission
Parameters:
  group - Group identifier Group identified by group parameter
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  DoesntExistsException - The group doesnt exist
throws:
  XMLException -



readGroup
public Group readGroup(String loginUser, String group, String clientIP) throws NotEnoughPermissionException, CannotAuditException, DataAccessException, DoesntExistsException, XMLException(Code)
Read a group checking permission and auditing the transaction
Parameters:
  loginUser - User who is making the request
Parameters:
  group - Group identifier to be readed
Parameters:
  clientIP - IP Address of whom is making the request Group indentified by group parameter or null if it doesn't exist
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  CannotAuditException - Error auditing transaction
throws:
  DoesntExistsException - The group does not exist
throws:
  XMLException -



readRole
public Role readRole(int role) throws DataAccessException(Code)
Reads a role without checking permission
Parameters:
  role - Role identifier An Object Role object representing the object role with the given role id
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc



readRole
public Role readRole(String loginUser, int role) throws DataAccessException(Code)
Read a role
Parameters:
  loginUser - User who is making the request
Parameters:
  role - Role identifier Role identified by role parameter or null if the role doesnt' exist
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc



readUser
public User readUser(String login) throws DataAccessException, DoesntExistsException, XMLException(Code)
Read a user without checking permission
Parameters:
  login - User who is making the request User identified by login parameter or null if the user doesn't exist
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  DoesntExistsException - The user doesnt exist
throws:
  XMLException -



readUser
public User readUser(String loginUser, String login, String clientIP) throws NotEnoughPermissionException, CannotAuditException, DataAccessException, DoesntExistsException, XMLException(Code)
Read a user checking permission and auditing the transaction.
Parameters:
  loginUser - User who is making the request
Parameters:
  login - User login
Parameters:
  clientIP - IP Address of whom is making the request User identified by login parameter or null if the user doesn't exist
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  CannotAuditException - Error auditing transaction
throws:
  DoesntExistsException - The user doesnt exist
throws:
  XMLException -



remindPasswordUser
public void remindPasswordUser(String loginUser, String clientIP) throws ServiceException, ServiceNotAvailableException, DataAccessException, DoesntExistsException, CannotAuditException, XMLException(Code)
Reset the user password and send it to his email.
Parameters:
  loginUser - User who is making the request
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  ServiceException - Severe error returned from the authentication service
throws:
  ServiceNotAvailableException - The configured authentication service is not available
throws:
  DoesntExistsException - The user doesnt exist
throws:
  CannotAuditException - Error auditing transaction
throws:
  XMLException -



removeOperativeFromRole
public void removeOperativeFromRole(String loginUser, String idOperative, int role, String clientIP) throws DataAccessException, NotEnoughPermissionException, CannotAuditException(Code)
Remove an operative from a role
Parameters:
  loginUser - User who is making the request
Parameters:
  idOperative - Operative identifier
Parameters:
  role - Role identifier
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  CannotAuditException - Error auditing transaction



removeUserFromGroup
public void removeUserFromGroup(String loginUser, String idGroup, String login, String clientIP) throws DataAccessException, NotEnoughPermissionException, CannotAuditException(Code)
Remove a user from a group
Parameters:
  loginUser - User who is making the request
Parameters:
  idGroup - Group identifier
Parameters:
  login - User login to be removed
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  CannotAuditException - Error auditing transaction



resetPasswordUser
public void resetPasswordUser(String actualUser, String login, String clientIP) throws ServiceException, ServiceNotAvailableException, NotEnoughPermissionException, CannotAuditException, DataAccessException, DoesntExistsException, XMLException(Code)
Reset the user account password
Parameters:
  actualUser - User who is making the request
Parameters:
  login - is the login
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  ServiceException - Severe error returned from the authentication service
throws:
  ServiceNotAvailableException - The configured authentication service is not available
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  CannotAuditException - Error auditing transaction
throws:
  DoesntExistsException - The user doesnt exist
throws:
  XMLException -



unblockGroup
public void unblockGroup(String loginUser, String idGroup, String clientIP) throws DataAccessException, InvalidAttributesException, NotEnoughPermissionException, CannotAuditException, DoesntExistsException, XMLException(Code)
Unblock a group
Parameters:
  loginUser - User who is making the request
Parameters:
  idGroup - group identifier
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  InvalidAttributesException - The existing group attributes are not valid
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  CannotAuditException - Error auditing transaction
throws:
  DoesntExistsException - The group does not exist
throws:
  XMLException -



unblockUser
public void unblockUser(String loginUser, String login, String clientIP) throws DataAccessException, InvalidAttributesException, NotEnoughPermissionException, CannotAuditException, DoesntExistsException, XMLException(Code)
Unblock a user
Parameters:
  loginUser - User who is making the request
Parameters:
  login - user identifier to unblock
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  InvalidAttributesException - The existing user attributes are not valid
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  CannotAuditException - Error auditing transaction
throws:
  DoesntExistsException - The user does not exist
throws:
  XMLException -



updateGroup
public void updateGroup(String loginUser, Group group, String[] members, String clientIP) throws DataAccessException, InvalidAttributesException, NotEnoughPermissionException, CannotAuditException, DoesntExistsException, XMLException(Code)



updateGroup
public void updateGroup(String loginUser, String id, String description, boolean blocked, String[] members, String clientIP) throws DataAccessException, InvalidAttributesException, NotEnoughPermissionException, CannotAuditException, DoesntExistsException, XMLException(Code)
Modify a group
Parameters:
  loginUser - User who is making the request
Parameters:
  id - group identifier
Parameters:
  description - description group
Parameters:
  blocked - Specifies if the group must be blocked or not
Parameters:
  members - Members of the group
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  InvalidAttributesException - The new group attributes are not valid
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  CannotAuditException - Error auditing transaction
throws:
  XMLException -
throws:
  DoesntExistsException -



updateUser
public void updateUser(String loginUser, String login, String firstName, String lastName, String email, boolean blocked, String description, boolean superUser, String clientIP) throws DataAccessException, InvalidAttributesException, NotEnoughPermissionException, CannotAuditException, DoesntExistsException, XMLException(Code)
Update User Information
Parameters:
  loginUser - User who is making the request
Parameters:
  login - identifier of the user
Parameters:
  firstName - First Name of the user
Parameters:
  lastName - Last Name of the user
Parameters:
  email - email of the user
Parameters:
  blocked - Specify if the user must be blocked or not
Parameters:
  description - User description
Parameters:
  superUser - Specify if the user is super user.
Parameters:
  clientIP - IP Address of whom is making the request
throws:
  DataAccessException - Severe errors like SQL error, IO Error, etc
throws:
  InvalidAttributesException - The new user attributes are not valid
throws:
  NotEnoughPermissionException - The user cannot perform this operation
throws:
  CannotAuditException - Error auditing transaction
throws:
  DoesntExistsException - The user does not exist
throws:
  XMLException -



updateUser
public void updateUser(String loginUser, User user, String clientIP) throws DataAccessException, InvalidAttributesException, NotEnoughPermissionException, CannotAuditException, DoesntExistsException, XMLException(Code)



validateOperative
public void validateOperative(String user, String operative, String object) throws NotEnoughPermissionException(Code)
Verify if the user can execute the operative over the obejct
Parameters:
  user - User who is making the request
Parameters:
  operative - Operative identifier
Parameters:
  object - Object identifier
throws:
  NotEnoughPermissionException - The user cannot execute the operation



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.