com.logicaldoc.web.document
Class RightsRecordsManager

java.lang.Object
  extended by com.logicaldoc.web.document.RightsRecordsManager

public class RightsRecordsManager
extends java.lang.Object

Control that allows the user to select access rights

Since:
3.0
Author:
Marco Meschieri - Logical Objects

Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
RightsRecordsManager()
           
 
Method Summary
 void assignGroups()
          Moves the selected available groups to the allowed groups list associated to a menu
 java.lang.String back()
           
 void cleanSelection()
           
 void dispose()
          Cleans up the resources used by this class.
 void filterAllowedGroups(javax.faces.event.ValueChangeEvent event)
          Filters the allowed groups if group's name contains the string on "Filter" input text
 void filterAvailableGroups(javax.faces.event.ValueChangeEvent event)
          Filters the available groups if group's name contains the string on "Filter" input text
 java.lang.String getAllowedGroupFilter()
           
 java.util.Collection<javax.faces.model.SelectItem> getAllowedGroups()
           
 java.lang.String getAvailableGroupFilter()
           
 java.util.Collection<javax.faces.model.SelectItem> getAvailableGroups()
           
 java.util.List<GroupRule> getRules()
          Gets the list of rules which will be used by the ice:dataTable component.
 long[] getSelectedAllowedGroups()
           
 long[] getSelectedAvailableGroups()
           
 Directory getSelectedDirectory()
           
 boolean isRecursive()
           
 java.lang.String save()
           
 void selectDirectory(Directory dir)
          Changes the currently selected directory and updates the rules list.
 void setAllowedGroupFilter(java.lang.String allowedGroupFilter)
           
 void setAllowedGroups(java.util.Collection<javax.faces.model.SelectItem> allowedGroups)
           
 void setAvailableGroupFilter(java.lang.String availableGroupFilter)
           
 void setAvailableGroups(java.util.Collection<javax.faces.model.SelectItem> availableGroups)
           
 void setDocumentNavigation(DocumentNavigation documentNavigation)
           
 void setRecursive(boolean recursive)
           
 void setSelectedAllowedGroups(long[] selectedAllowedGroups)
           
 void setSelectedAvailableGroups(long[] selectedAvailableGroups)
           
 void unassignGroups()
          Moves the selected allowed groups to the available groups list associated to a menu
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Constructor Detail

RightsRecordsManager

public RightsRecordsManager()
Method Detail

getAvailableGroupFilter

public java.lang.String getAvailableGroupFilter()

setAvailableGroupFilter

public void setAvailableGroupFilter(java.lang.String availableGroupFilter)

getAllowedGroupFilter

public java.lang.String getAllowedGroupFilter()

setAllowedGroupFilter

public void setAllowedGroupFilter(java.lang.String allowedGroupFilter)

isRecursive

public boolean isRecursive()

getSelectedAvailableGroups

public long[] getSelectedAvailableGroups()

setSelectedAvailableGroups

public void setSelectedAvailableGroups(long[] selectedAvailableGroups)

getSelectedAllowedGroups

public long[] getSelectedAllowedGroups()

setSelectedAllowedGroups

public void setSelectedAllowedGroups(long[] selectedAllowedGroups)

setRecursive

public void setRecursive(boolean recursive)

getAvailableGroups

public java.util.Collection<javax.faces.model.SelectItem> getAvailableGroups()

getAllowedGroups

public java.util.Collection<javax.faces.model.SelectItem> getAllowedGroups()

setAvailableGroups

public void setAvailableGroups(java.util.Collection<javax.faces.model.SelectItem> availableGroups)

setAllowedGroups

public void setAllowedGroups(java.util.Collection<javax.faces.model.SelectItem> allowedGroups)

selectDirectory

public void selectDirectory(Directory dir)
Changes the currently selected directory and updates the rules list.

Parameters:
dir -

cleanSelection

public void cleanSelection()

assignGroups

public void assignGroups()
Moves the selected available groups to the allowed groups list associated to a menu


unassignGroups

public void unassignGroups()
Moves the selected allowed groups to the available groups list associated to a menu


dispose

public void dispose()
Cleans up the resources used by this class. This method could be called when a session destroyed event is called.


getRules

public java.util.List<GroupRule> getRules()
Gets the list of rules which will be used by the ice:dataTable component.

Returns:
array list of rights

back

public java.lang.String back()

save

public java.lang.String save()

getSelectedDirectory

public Directory getSelectedDirectory()

setDocumentNavigation

public void setDocumentNavigation(DocumentNavigation documentNavigation)

filterAvailableGroups

public void filterAvailableGroups(javax.faces.event.ValueChangeEvent event)
Filters the available groups if group's name contains the string on "Filter" input text

Parameters:
event -

filterAllowedGroups

public void filterAllowedGroups(javax.faces.event.ValueChangeEvent event)
Filters the allowed groups if group's name contains the string on "Filter" input text

Parameters:
event -


Copyright © 2008-2010 Logical Objects. All Rights Reserved.