Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] Lite UI customisation

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] Lite UI customisation


Chronological Thread 
  • From: Chris Hyzer <>
  • To: "" <>, "" <>
  • Subject: RE: [grouper-users] Lite UI customisation
  • Date: Wed, 23 Nov 2011 17:35:45 +0000
  • Accept-language: en-US

> Currently the advanced features options appear by default, I was wondering
> if
> there is any simple way of disabling this menu option appearing? We want to
> reduce what a user can do to simple adding/deleting members from a group,
> and
> therefore not present the import/export, delete multiple members etc. In the
> past to do this I've amended the code to comment out the link for the menu,
> but was wondering if this can be done in one of the properties files?

Not right now, but I opened a jira:

https://bugs.internet2.edu/jira/browse/GRP-709

The code to change or comment out is in simpleMembershipUpdateMain.jsp:

<a id="advancedLink" href="#"
><grouper:message
>value="${simpleMembershipUpdateContainer.text.advancedButton}"/></a>

<%-- register the menu, and attach it to the advanced button --%>
<grouper:menu menuId="advancedMenu"
operation="SimpleMembershipUpdateMenu.advancedMenu"
structureOperation="SimpleMembershipUpdateMenu.advancedMenuStructure"
contextZoneJqueryHandle="#advancedLink" contextMenu="true" />

>
> Secondly, also in the Lite Ui, in the membership list, if a group is a
> member
> of the group that you are admining it shows the full group path. Could
> someone
> point me in the right direction to possibly amend this to just the display
> name for the group?

This was already done in the upcoming 2.0.2, any chance you can upgrade? You
can change it, but the user might want the whole path on a tooltip which is
not as easy. To just show the extension, try changing this in
GrouperUiUtils.java

FROM:

public static String convertSubjectToLabel(Subject subject) {
String label = null;
if ("g:gsa".equals(subject.getSource().getId())) {

label = subject.getAttributeValue(GrouperConfig.ATTRIBUTE_DISPLAY_NAME);
if (!StringUtils.isBlank(label)) {
return label;
}

}

TO:

public static String convertSubjectToLabel(Subject subject) {
String label = null;
if ("g:gsa".equals(subject.getSource().getId())) {

label =
subject.getAttributeValue(GrouperConfig.ATTRIBUTE_DISPLAY_EXTENSION);
if (!StringUtils.isBlank(label)) {
return label;
}

}

> Ideally, I would quite like to get the indirect members
> listed as uneditable members in the Lite UI.

Im sure there is a jira about that too, but not done yet, probably v2.2

Thanks,
Chris

>
> Hope everyone has a nice Thanksgiving holiday :)
>
> Thanks,
> Richie
>



Archive powered by MHonArc 2.6.16.

Top of Page