Java Doc for LibraryRights.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) 


com.ivata.groupware.business.library.right.LibraryRights

All known Subclasses:   com.ivata.groupware.business.library.right.LibraryRightsImpl,
LibraryRights
public interface LibraryRights (Code)

TODO: add a comment for this type.


author:
   Colin MacLeod
author:
   colin.macleod@ivata.com
since:
   Jun 19, 2004
version:
   $Revision: 1.4 $




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

This method changes ADD rights.

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

This method changing AMEND rights.

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

This method changing AMEND rights of TOPIC.

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

This method changing REMOVE rights.

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

This method changing REMOVE rights of TOPIC.

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

This method changing VIEW rights of ITEMS.

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

This method changing VIEW rights of TOPIC.

abstract 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.
abstract 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.
abstract 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.
abstract public  booleancanAmendComment(SecuritySession securitySession, CommentDO comment)
    

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:
  comment - the comment check.
abstract public  booleancanAmendInTopic(SecuritySession securitySession, Integer integerParam)
    

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:
  integerParam - the unique identifier of the topic to check.
abstract 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.
abstract public  booleancanRemoveComment(SecuritySession securitySession, CommentDO comment)
    

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:
  comment - the comment check.
abstract 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.
abstract 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.
abstract public  booleancanUser(SecuritySession securitySession, Integer topicId, Integer detail, Integer access)
    

Internal helper method.

abstract 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:
  topicId - the unique identifier of the topic to check.
abstract public  CollectionfindRightsForItemsInTopic(SecuritySession securitySession, Integer id, Integer access)
    

Find groups which have access to items with topic.

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

Find groups which have access to topic.

abstract 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.



Method Detail
amendAddRightsForItem
abstract 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
abstract 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
abstract 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
abstract 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
abstract 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
abstract 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
abstract 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
abstract 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
abstract 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
abstract 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
abstract public boolean canAmendComment(SecuritySession securitySession, CommentDO comment) 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:
  comment - the comment check. true if the user is entitled to change this comment,otherwise false.



canAmendInTopic
abstract public boolean canAmendInTopic(SecuritySession securitySession, Integer integerParam) 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:
  integerParam - the unique identifier of the topic to check. true if the user is entitled to amend items in thetopic, otherwise false.



canAmendTopic
abstract 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
abstract public boolean canRemoveComment(SecuritySession securitySession, CommentDO comment) 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:
  comment - the comment check. true if the user is entitled to remove this comment,otherwise false.



canRemoveFromTopic
abstract 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
abstract 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
abstract public boolean canUser(SecuritySession securitySession, Integer topicId, 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:
  topicId - 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
abstract 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:
  topicId - the unique identifier of the topic to check. true if the user is entitled to view items in thetopic, otherwise false.



findRightsForItemsInTopic
abstract 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
abstract 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
abstract 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.



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