|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.bebop.Completable
com.arsdigita.bebop.SimpleComponent
com.arsdigita.bebop.TextStylable
com.arsdigita.bebop.BlockStylable
com.arsdigita.bebop.SimpleContainer
com.arsdigita.ui.permissions.PermissionsPane
A pane used to administer the permissions of one ACSObject
. This is a reusable component that can be embedded into
a page to provide a generic UI. The page must have the "?po_id="
parameter to supply to ACSObject id of the item one is managing
permissions for. This component attaches a
UserAuthenticationListener
to restrict access to users who are logged in.
Fields inherited from class com.arsdigita.bebop.SimpleContainer |
versionId |
Fields inherited from class com.arsdigita.bebop.BlockStylable |
ABSBOTTOM, ABSMIDDLE, BASELINE, BOTTOM, CENTER, FULL_WIDTH, INSERT, LEFT, MIDDLE, RIGHT, TEXTTOP, TOP |
Fields inherited from class com.arsdigita.bebop.SimpleComponent |
m_attr |
Fields inherited from interface com.arsdigita.bebop.Resettable |
versionId |
Fields inherited from interface com.arsdigita.bebop.event.ActionListener |
versionId |
Fields inherited from interface com.arsdigita.bebop.Component |
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE |
Constructor Summary | |
PermissionsPane()
Default constructor creates components that show the default privileges as defined in PermissionsConstants interface |
|
PermissionsPane(PrivilegeDescriptor[] privs)
Creates a PermissionsPane with components showing the privileges that are passed in as argument. |
Method Summary | |
void |
actionPerformed(ActionEvent e)
Invoked when an action has been performed. |
SimpleComponent |
getContextPanel()
Returns a bebop panel with a link to the permissions administration page of the object's direct ancestor (parent). |
SimpleContainer |
getDirectPermissionsPanel()
Returns the bebop component with a table for the direct permission on the privileges defined in the constructor |
SimpleContainer |
getInheritedPermissionsPanel()
Returns the bebop component with a table for the inherited permission on the privileges defined in the constructor. |
SimpleContainer |
getNoSearchResultPanel()
Returns a bebop panel indicating that the user search yielded no results. |
ACSObject |
getObject(PageState s)
Utility method to get the ACSObject from the page state |
SimpleContainer |
getPermissionGrantPanel()
Returns a panel with a form with 2 checkbox groups, one for parties to choose, one for privileges to assign. |
SimpleContainer |
getPermissionsHeader()
Returns a bebop container with the title to this object and a navigation bar, specific for the UI at /permissions/. |
String[] |
getPrivileges()
Returns a string array of privilege names as defined in the constructor |
Party |
getRequestingUser(PageState s)
Utility method to get the authenicated user or group |
Label |
getTitle()
Returns the title "Permissions on object articles", e.g. |
SegmentedPanel |
getUniversalPermissionsPanel()
This is an outstanding item. |
Form |
getUserSearchForm()
Returns a bebop form for user and group search. |
void |
register(Page p)
Overwrite this method to construct your default Permissions Pane with the components you need. |
void |
reset(PageState ps)
Implementation of interface bebop.Resettable. |
void |
showAdmin(PageState s)
Shows the administration page of permissions to one object. |
void |
showGrant(PageState s)
Show the Grant privileges panel |
void |
showNoResults(PageState s)
Shows panel with no results to user search. |
Methods inherited from class com.arsdigita.bebop.SimpleContainer |
add, add, children, contains, generateChildrenXML, generateParent, generateXML, get, getNamespace, getTag, indexOf, isEmpty, setNamespace, setTag, size |
Methods inherited from class com.arsdigita.bebop.BlockStylable |
setBorder, setBorder, setBorderColor, setHorizontalAlignment, setMargin, setMargin, setPadding, setPadding, setVerticalAlignment |
Methods inherited from class com.arsdigita.bebop.TextStylable |
setBackgroundColor, setColor |
Methods inherited from class com.arsdigita.bebop.SimpleComponent |
clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, lock, register, respond, setAttribute, setClassAttr, setIdAttr, setKey, setMetaDataAttribute, setStyleAttr, setVisible |
Methods inherited from class com.arsdigita.bebop.Completable |
addCompletionListener, fireCompletionEvent |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.arsdigita.bebop.Component |
getClassAttr, getIdAttr, getKey, getStyleAttr, isVisible, register, respond, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible |
Methods inherited from interface com.arsdigita.util.Lockable |
isLocked, lock |
Field Detail |
public static final PrivilegeDescriptor[] DEFAULT_PRIVILEGES
public static final String BUNDLE_NAME
public static final GlobalizedMessage SEARCH_LABEL
public static final GlobalizedMessage SEARCH_BUTTON
public static final GlobalizedMessage SAVE_BUTTON
public static final GlobalizedMessage NO_RESULTS
public static final GlobalizedMessage PERM_TABLE_DIRECT_HEADING
public static final GlobalizedMessage PERM_TABLE_DIRECT_EXPLANATION
public static final GlobalizedMessage PERM_TABLE_INDIRECT_HEADING
public static final GlobalizedMessage PERM_TABLE_INDIRECT_EXPLANATION
public static final GlobalizedMessage PERM_TABLE_INDIRECT_CONTEXT
public static final GlobalizedMessage PERM_TABLE_GRANTEE
public static final GlobalizedMessage PERM_TABLE_ACTIONS
public static final GlobalizedMessage REMOVE_ALL_CONFIRM
public static final GlobalizedMessage PERM_TABLE_INHERITED
public static final GlobalizedMessage PERM_TABLE_NO_PARENT_CONTEXT
public static final GlobalizedMessage PAGE_TITLE
public static final GlobalizedMessage MAIN_SITE
public static final GlobalizedMessage PERSONAL_SITE
public static final GlobalizedMessage PERMISSIONS_INDEX
public static final GlobalizedMessage PERMISSIONS_INDEX_NAVBAR
public static final GlobalizedMessage PAGE_GRANT_TITLE
public static final GlobalizedMessage PAGE_GRANT_LEFT
public static final GlobalizedMessage PAGE_GRANT_RIGHT
public static final GlobalizedMessage PAGE_DENIED_TITLE
public static final GlobalizedMessage PAGE_OBJECT_INDEX
public static final GlobalizedMessage PAGE_OBJECT_PANEL_TITLE
public static final GlobalizedMessage PAGE_OBJECT_NONE
public static final int DIRECT
public static final int INHERITED
public static final String OBJECT_ID
public static final String DIRECT_PERMISSIONS
public static final String INDIRECT_PERMISSIONS
public static final String SEARCH_QUERY
public static final String PRIV_SET
public static final String RETRIEVE_USERS
Constructor Detail |
public PermissionsPane()
public PermissionsPane(PrivilegeDescriptor[] privs)
Method Detail |
public void register(Page p)
register
in interface Component
register
in class SimpleComponent
public void reset(PageState ps)
reset
in interface Resettable
ps
- the page statepublic Party getRequestingUser(PageState s)
public ACSObject getObject(PageState s)
public Label getTitle()
public String[] getPrivileges()
public SimpleContainer getDirectPermissionsPanel()
getInheritedPermissionsPanel()
public SimpleContainer getInheritedPermissionsPanel()
getDirectPermissionsPanel()
public SegmentedPanel getUniversalPermissionsPanel()
public Form getUserSearchForm()
public SimpleContainer getPermissionGrantPanel()
public SimpleContainer getPermissionsHeader()
public SimpleContainer getNoSearchResultPanel()
public SimpleComponent getContextPanel()
public void showNoResults(PageState s)
public void showGrant(PageState s)
public void showAdmin(PageState s)
public void actionPerformed(ActionEvent e)
ActionListener
actionPerformed
in interface ActionListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |