| 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 $ |
Method Summary | |
public void | amendAddRightsForItem(SecuritySession securitySession, Integer id, Collection rights)
This method changes ADD rights. | public void | amendAmendRightsForItem(SecuritySession securitySession, Integer id, Collection rights) This method changing AMEND rights. | public void | amendAmendRightsForTopic(SecuritySession securitySession, Integer id, Collection rights) This method changing AMEND rights of TOPIC. | public void | amendRemoveRightsForItem(SecuritySession securitySession, Integer id, Collection rights) This method changing REMOVE rights. | public void | amendRemoveRightsForTopic(SecuritySession securitySession, Integer id, Collection rights) This method changing REMOVE rights of TOPIC. | public void | amendViewRightsForItem(SecuritySession securitySession, Integer id, Collection rights) This method changing VIEW rights of ITEMS. | public void | amendViewRightsForTopic(SecuritySession securitySession, Integer id, Collection rights) This method changing VIEW rights of TOPIC. | public boolean | canAddComment(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 boolean | canAddToTopic(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 boolean | canAddTopic(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 boolean | canAmendComment(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 boolean | canAmendInTopic(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 boolean | canAmendTopic(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 boolean | canRemoveComment(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 boolean | canRemoveFromTopic(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 boolean | canRemoveTopic(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 boolean | canUser(SecuritySession securitySession, Integer integerParam, Integer detail, Integer access) Internal helper method. | public boolean | canViewInTopic(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 Collection | findRightsForItemsInTopic(SecuritySession securitySession, Integer id, Integer access) Find groups which have access to items with topic. | public Collection | findRightsForTopic(SecuritySession securitySession, Integer id, Integer access) Find groups which have access to topic. | public Collection | findTopicsByGroupAccess(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. |
LibraryRightsImpl | public LibraryRightsImpl(QueryPersistenceManager persistenceManager)(Code) | | Construct a new library rights instance.
Parameters: persistenceManager - used to store objects in db. |
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. |
|
|