Java Doc for LibraryRightsImpl.java in  » Groupware » ivatagroupware » com » ivata » groupware » business » library » right » 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 » Groupware » ivatagroupware » com.ivata.groupware.business.library.right 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ivata.groupware.business.library.right.LibraryRightsImpl

LibraryRightsImpl
public class LibraryRightsImpl implements LibraryRights,Serializable(Code)

Facade to the intranet library access rights. This POJO can be used both locally and remotely to establish what users are entitled to within the library subsystem.


since:
   2002-07-10
author:
   Colin MacLeod
author:
   colin.macleod@ivata.com
version:
   $Revision: 1.4 $



Constructor Summary
public  LibraryRightsImpl(QueryPersistenceManager persistenceManager)
     Construct a new library rights instance.

Method Summary
public  voidamendAddRightsForItem(SecuritySession securitySession, Integer id, Collection rights)
    

This method changes ADD rights.

public  voidamendAmendRightsForItem(SecuritySession securitySession, Integer id, Collection rights)
    

This method changing AMEND rights.

public  voidamendAmendRightsForTopic(SecuritySession securitySession, Integer id, Collection rights)
    

This method changing AMEND rights of TOPIC.

public  voidamendRemoveRightsForItem(SecuritySession securitySession, Integer id, Collection rights)
    

This method changing REMOVE rights.

public  voidamendRemoveRightsForTopic(SecuritySession securitySession, Integer id, Collection rights)
    

This method changing REMOVE rights of TOPIC.

public  voidamendViewRightsForItem(SecuritySession securitySession, Integer id, Collection rights)
    

This method changing VIEW rights of ITEMS.

public  voidamendViewRightsForTopic(SecuritySession securitySession, Integer id, Collection rights)
    

This method changing VIEW rights of TOPIC.

public  booleancanAddComment(SecuritySession securitySession, CommentDO comment)
    

Find out if a user is allowed to add a new comment.


Parameters:
  userName - the name of the user to check the user rights for.
Parameters:
  comment - the comment check.
public  booleancanAddToTopic(SecuritySession securitySession, Integer topicId)
    

Find out if a user is allowed to add items to a given topic.


Parameters:
  userName - the name of the user to check the user rights for.
Parameters:
  topicId - the unique identifier of the topic to check.
public  booleancanAddTopic(SecuritySession securitySession)
    

Find out if a user is allowed to add a new topic.


Parameters:
  userName - the name of the user to check the user rights for.
Parameters:
  topicId - the unique identifier of the topic to check.
public  booleancanAmendComment(SecuritySession securitySession, CommentDO commentParam)
    

Find out if a user is allowed to change an existing comment.


Parameters:
  userName - the name of the user to check the user rights for.
Parameters:
  commentParam - the comment check.
public  booleancanAmendInTopic(SecuritySession securitySession, Integer topicId)
    

Find out if a user is allowed to amend items in a given topic.


Parameters:
  userName - the name of the user to check the user rights for.
Parameters:
  topicId - the unique identifier of the topic to check.
public  booleancanAmendTopic(SecuritySession securitySession, Integer id)
    

Find out if a user is allowed to amend an existing new topic.


Parameters:
  userName - the name of the user to check the user rights for.
Parameters:
  topicId - the unique identifier of the topic to check.
public  booleancanRemoveComment(SecuritySession securitySession, CommentDO commentParam)
    

Find out if a user is allowed to remove an existing comment.


Parameters:
  userName - the name of the user to check the user rights for.
Parameters:
  commentParam - the comment check.
public  booleancanRemoveFromTopic(SecuritySession securitySession, Integer topicId)
    

Find out if a user is allowed to remove items from a given topic.


Parameters:
  userName - the name of the user to check the user rights for.
Parameters:
  topicId - the unique identifier of the topic to check.
public  booleancanRemoveTopic(SecuritySession securitySession, Integer id)
    

Find out if a user is allowed to remove a topic.


Parameters:
  userName - the name of the user to check the user rights for.
Parameters:
  topicId - the unique identifier of the topic to check.
public  booleancanUser(SecuritySession securitySession, Integer integerParam, Integer detail, Integer access)
    

Internal helper method.

public  booleancanViewInTopic(SecuritySession securitySession, Integer topicId)
    

Find out if a user is allowed to view items to a given topic.


Parameters:
  userName - the name of the user to check the user rights for.
Parameters:
  integerParam - the unique identifier of the topic to check.
public  CollectionfindRightsForItemsInTopic(SecuritySession securitySession, Integer id, Integer access)
    

Find groups which have access to items with topic.

public  CollectionfindRightsForTopic(SecuritySession securitySession, Integer id, Integer access)
    

Find groups which have access to topic.

public  CollectionfindTopicsByGroupAccess(SecuritySession securitySession, Integer groupId, Integer access)
    

Find the unique identifiers of all library topics for which the items can be accessed by the group specified, with the access level given.


Parameters:
  groupId - unique identifier of the group for which to search forlibrary topics.
Parameters:
  access - the access level as defined in com.ivata.groupware.business.addressbook.person.group.right.RightConstantsRightConstants.


Constructor Detail
LibraryRightsImpl
public LibraryRightsImpl(QueryPersistenceManager persistenceManager)(Code)
Construct a new library rights instance.
Parameters:
  persistenceManager - used to store objects in db.




Method Detail
amendAddRightsForItem
public void amendAddRightsForItem(SecuritySession securitySession, Integer id, Collection rights) throws SystemException(Code)

This method changes ADD rights. Users in the specified groups will be able to add ITEMS with this TOPIC.

It's works only with those groups which can be seen by the user. if I am adding ADD right for a group and the user has not VIEW right -> also create a VIEW right for that group.


Parameters:
  id - of TOPIC
Parameters:
  userName - user vhich is goin to change rights
Parameters:
  rights - collection of groups for which we will set up ADD right



amendAmendRightsForItem
public void amendAmendRightsForItem(SecuritySession securitySession, Integer id, Collection rights) throws SystemException(Code)

This method changing AMEND rights. Users in those groups will be able to amend ITEMS with this TOPIC. It's working only with those groups which can be see by user. if I am adding AMEND right for group and there is not VIEW right -> so create VIEW right for that group.


Parameters:
  id - of TOPIC
Parameters:
  userName - user vhich is goin to change rights
Parameters:
  rights - collection of groups for which we will set up AMEND right



amendAmendRightsForTopic
public void amendAmendRightsForTopic(SecuritySession securitySession, Integer id, Collection rights) throws SystemException(Code)

This method changing AMEND rights of TOPIC. It's working only with those groups which can be see by user. if I am adding AMEND right for group and there is not VIEW right -> so create VIEW right for that group.


Parameters:
  id - of TOPIC
Parameters:
  userName - user which is chaning
Parameters:
  rights - collection of groups for which we will set up AMEND right



amendRemoveRightsForItem
public void amendRemoveRightsForItem(SecuritySession securitySession, Integer id, Collection rights) throws SystemException(Code)

This method changing REMOVE rights. Users in those groups will be able to remove ITEMS with this TOPIC. It's working only with those groups which can be see by user. if I am adding REMOVE right for group and there is not VIEW right -> so create VIEW right for that group.


Parameters:
  id - of TOPIC
Parameters:
  userName - user vhich is goin to change rights
Parameters:
  rights - collection of groups for which we will set up REMOVE right



amendRemoveRightsForTopic
public void amendRemoveRightsForTopic(SecuritySession securitySession, Integer id, Collection rights) throws SystemException(Code)

This method changing REMOVE rights of TOPIC. It's working only with those groups which can be see by user. if I am adding REMOVE right for group and there is not VIEW right -> so create VIEW right for that group.


Parameters:
  id - of TOPIC
Parameters:
  userName - user vhich is going to change
Parameters:
  rights - collection of groups for which we will set up REMOVE right



amendViewRightsForItem
public void amendViewRightsForItem(SecuritySession securitySession, Integer id, Collection rights) throws SystemException(Code)

This method changing VIEW rights of ITEMS. Users in those groups will be albe to see ITEMS with this TOPIC. It's working only with those groups which can be see by user.


Parameters:
  id - of TOPIC
Parameters:
  userName - user vhich is goin to change rights
Parameters:
  rights - collection of groups for which we will set up VIEW right



amendViewRightsForTopic
public void amendViewRightsForTopic(SecuritySession securitySession, Integer id, Collection rights) throws SystemException(Code)

This method changing VIEW rights of TOPIC. It's working only with those groups which can be see by user.


Parameters:
  id - of TOPIC
Parameters:
  userName - user which is changing
Parameters:
  rights - collection of groupIds for which we will set up VIEW right



canAddComment
public boolean canAddComment(SecuritySession securitySession, CommentDO comment) throws SystemException(Code)

Find out if a user is allowed to add a new comment.


Parameters:
  userName - the name of the user to check the user rights for.
Parameters:
  comment - the comment check. true if the user is entitled to add this comment,otherwise false.



canAddToTopic
public boolean canAddToTopic(SecuritySession securitySession, Integer topicId) throws SystemException(Code)

Find out if a user is allowed to add items to a given topic.


Parameters:
  userName - the name of the user to check the user rights for.
Parameters:
  topicId - the unique identifier of the topic to check. true if the user is entitled to add items to thetopic, otherwise false.



canAddTopic
public boolean canAddTopic(SecuritySession securitySession) throws SystemException(Code)

Find out if a user is allowed to add a new topic.


Parameters:
  userName - the name of the user to check the user rights for.
Parameters:
  topicId - the unique identifier of the topic to check. true if the user is entitled to add new topics,otherwise false.



canAmendComment
public boolean canAmendComment(SecuritySession securitySession, CommentDO commentParam) throws SystemException(Code)

Find out if a user is allowed to change an existing comment.


Parameters:
  userName - the name of the user to check the user rights for.
Parameters:
  commentParam - the comment check. true if the user is entitled to change this comment,otherwise false.



canAmendInTopic
public boolean canAmendInTopic(SecuritySession securitySession, Integer topicId) throws SystemException(Code)

Find out if a user is allowed to amend items in a given topic.


Parameters:
  userName - the name of the user to check the user rights for.
Parameters:
  topicId - the unique identifier of the topic to check. true if the user is entitled to amend items in thetopic, otherwise false.



canAmendTopic
public boolean canAmendTopic(SecuritySession securitySession, Integer id) throws SystemException(Code)

Find out if a user is allowed to amend an existing new topic.


Parameters:
  userName - the name of the user to check the user rights for.
Parameters:
  topicId - the unique identifier of the topic to check. true if the user is entitled to amend thetopic, otherwise false.



canRemoveComment
public boolean canRemoveComment(SecuritySession securitySession, CommentDO commentParam) throws SystemException(Code)

Find out if a user is allowed to remove an existing comment.


Parameters:
  userName - the name of the user to check the user rights for.
Parameters:
  commentParam - the comment check. true if the user is entitled to remove this comment,otherwise false.



canRemoveFromTopic
public boolean canRemoveFromTopic(SecuritySession securitySession, Integer topicId) throws SystemException(Code)

Find out if a user is allowed to remove items from a given topic.


Parameters:
  userName - the name of the user to check the user rights for.
Parameters:
  topicId - the unique identifier of the topic to check. true if the user is entitled to remove items fromthe topic, otherwise false.



canRemoveTopic
public boolean canRemoveTopic(SecuritySession securitySession, Integer id) throws SystemException(Code)

Find out if a user is allowed to remove a topic.


Parameters:
  userName - the name of the user to check the user rights for.
Parameters:
  topicId - the unique identifier of the topic to check. true if the user is entitled to remove thetopic, otherwise false.



canUser
public boolean canUser(SecuritySession securitySession, Integer integerParam, Integer detail, Integer access) throws SystemException(Code)

Internal helper method. Find out if a user is allowed to access entries in a given group.


Parameters:
  securitySession - Security session to check the rights for.
Parameters:
  integerParam - Unique identifier of the topic to check.
Parameters:
  access - The access level as defined in com.ivata.groupware.business.addressbook.person.group.right.RightConstantsRightConstants. true if the user is entitled to access entries in thetopic, otherwise false.



canViewInTopic
public boolean canViewInTopic(SecuritySession securitySession, Integer topicId) throws SystemException(Code)

Find out if a user is allowed to view items to a given topic.


Parameters:
  userName - the name of the user to check the user rights for.
Parameters:
  integerParam - the unique identifier of the topic to check. true if the user is entitled to view items in thetopic, otherwise false.



findRightsForItemsInTopic
public Collection findRightsForItemsInTopic(SecuritySession securitySession, Integer id, Integer access) throws SystemException(Code)

Find groups which have access to items with topic. Return only those groups which can be see by that user.


Parameters:
  id - of TOPIC
Parameters:
  userName - user which is trying to find rights
Parameters:
  access - find rights with this access Collection of IDS of groups which have access to that items wuth that topic



findRightsForTopic
public Collection findRightsForTopic(SecuritySession securitySession, Integer id, Integer access) throws SystemException(Code)

Find groups which have access to topic. Return only those groups which can be see by that user.


Parameters:
  id - of TOPIC
Parameters:
  userName - user which is trying to find rights
Parameters:
  access - find rights with this access Collection of IDS of groups which have access to that topic



findTopicsByGroupAccess
public Collection findTopicsByGroupAccess(SecuritySession securitySession, Integer groupId, Integer access) throws SystemException(Code)

Find the unique identifiers of all library topics for which the items can be accessed by the group specified, with the access level given.


Parameters:
  groupId - unique identifier of the group for which to search forlibrary topics.
Parameters:
  access - the access level as defined in com.ivata.groupware.business.addressbook.person.group.right.RightConstantsRightConstants. a Collection of Integer instances,matching all topics which can be access with this level of accessby the group specified.



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.