public class PermissionsPanel extends com.google.gwt.user.client.ui.FlexTable implements IFileModifier
com.google.gwt.user.client.ui.FlexTable.FlexCellFormattercom.google.gwt.user.client.ui.HTMLTable.Cell, com.google.gwt.user.client.ui.HTMLTable.CellFormatter, com.google.gwt.user.client.ui.HTMLTable.ColumnFormatter, com.google.gwt.user.client.ui.HTMLTable.RowFormatter| Modifier and Type | Field and Description |
|---|---|
static int |
PERM_ALL |
static int |
PERM_DELETE |
static int |
PERM_GRANT_PERM |
static int |
PERM_READ |
static int |
PERM_WRITE |
static int |
ROLE_TYPE |
static int |
USER_TYPE |
| Constructor and Description |
|---|
PermissionsPanel(org.pentaho.gwt.widgets.client.filechooser.RepositoryFile theFileSummary) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply()
PUT acl changes back via REST call to /acl
|
void |
buildPermissionsTable(com.google.gwt.xml.client.Document fileInfo)
Set the widgets according to what is currently in the DOM.
|
protected List<String> |
getNames(com.google.gwt.xml.client.Document fileInfo,
int type) |
void |
init() |
void |
init(org.pentaho.gwt.widgets.client.filechooser.RepositoryFile fileSummary,
com.google.gwt.xml.client.Document fileInfo)
Take permissions from fileInfo response and create roles and users list
|
List<com.google.gwt.http.client.RequestBuilder> |
prepareRequests()
Use this method to create RequestBuilder objects and use RequestBuilder.setRequestData Add RequestBuilder
objects to the List which is then used by FilePropertiesDialog to iterate through and call each request
sequentially by chaining them in the callbacks.
|
protected void |
setAclResponse(com.google.gwt.http.client.Response response)
Get owner name from acl response
|
void |
updatePermissionMask(com.google.gwt.xml.client.Document fileInfo,
boolean grant,
int perm) |
addCell, getCellCount, getFlexCellFormatter, getRowCount, insertCell, insertRow, prepareCell, prepareRow, removeAllRows, removeCell, removeCells, removeRowaddClickHandler, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addTableListener, checkCellBounds, checkRowBounds, clear, clear, clearCell, createCell, getBodyElement, getCellForEvent, getCellFormatter, getCellPadding, getCellSpacing, getColumnFormatter, getDOMCellCount, getDOMCellCount, getDOMRowCount, getDOMRowCount, getEventTargetCell, getHTML, getRowFormatter, getText, getWidget, insertCells, internalClearCell, isCellPresent, iterator, onEnsureDebugId, prepareColumn, remove, removeTableListener, setBorderWidth, setCellFormatter, setCellPadding, setCellSpacing, setColumnFormatter, setHTML, setHTML, setRowFormatter, setText, setWidget, setWidgetadd, add, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEventsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final int USER_TYPE
public static final int ROLE_TYPE
public static final int PERM_READ
public static final int PERM_WRITE
public static final int PERM_DELETE
public static final int PERM_GRANT_PERM
public static final int PERM_ALL
public PermissionsPanel(org.pentaho.gwt.widgets.client.filechooser.RepositoryFile theFileSummary)
fileSummary - public void buildPermissionsTable(com.google.gwt.xml.client.Document fileInfo)
public void updatePermissionMask(com.google.gwt.xml.client.Document fileInfo,
boolean grant,
int perm)
grant - perm - public void apply()
apply in interface IFileModifierpublic List<com.google.gwt.http.client.RequestBuilder> prepareRequests()
IFileModifierprepareRequests in interface IFileModifierFilePropertiesDialog.applyPanel()public void init(org.pentaho.gwt.widgets.client.filechooser.RepositoryFile fileSummary,
com.google.gwt.xml.client.Document fileInfo)
init in interface IFileModifierfileSummary - fileInfo - public void init()
protected List<String> getNames(com.google.gwt.xml.client.Document fileInfo, int type)
type - protected void setAclResponse(com.google.gwt.http.client.Response response)
response - Copyright © 2021 Hitachi Vantara. All rights reserved.