File |
Project |
Line |
org/kuali/student/common/ui/client/configurable/mvc/Configurer.java |
KS Common UI |
24 |
org/kuali/student/lum/lu/ui/course/client/configuration/CourseConfigurer.java |
KS LUM UI |
853 |
}
protected MessageKeyInfo generateMessageInfo(String labelKey) {
return new MessageKeyInfo(groupName, type, state, labelKey);
}
protected String getLabel(String labelKey) {
return Application.getApplicationContext().getUILabel(groupName, type, state, labelKey);
}
protected SectionTitle getH1Title(String labelKey) {
return SectionTitle.generateH1Title(getLabel(labelKey));
}
protected SectionTitle getH2Title(String labelKey) {
return SectionTitle.generateH2Title(getLabel(labelKey));
}
protected SectionTitle getH3Title(String labelKey) {
return SectionTitle.generateH3Title(getLabel(labelKey));
}
protected SectionTitle getH4Title(String labelKey) {
return SectionTitle.generateH4Title(getLabel(labelKey));
}
protected SectionTitle getH5Title(String labelKey) {
return SectionTitle.generateH5Title(getLabel(labelKey));
}
// TODO - when DOL is pushed farther down into LOBuilder,
// revert these 5 methods to returning void again.
public FieldDescriptor addField(Section section, String fieldKey) {
return addField(section, fieldKey, null, null, null);
}
public FieldDescriptor addField(Section section, String fieldKey, MessageKeyInfo messageKey) {
return addField(section, fieldKey, messageKey, null, null);
}
public FieldDescriptor addField(Section section, String fieldKey, MessageKeyInfo messageKey, Widget widget) {
return addField(section, fieldKey, messageKey, widget, null);
}
public FieldDescriptor addField(Section section, String fieldKey, MessageKeyInfo messageKey, String parentPath) {
return addField(section, fieldKey, messageKey, null, parentPath);
}
public FieldDescriptor addField(Section section, String fieldKey, MessageKeyInfo messageKey, Widget widget, String parentPath) {
QueryPath path = QueryPath.concat(parentPath, fieldKey);
Metadata meta = modelDefinition.getMetadata(path);
FieldDescriptor fd = new FieldDescriptor(path.toString(), messageKey, meta);
if (widget != null) {
fd.setFieldWidget(widget);
}
section.addField(fd);
return fd;
}
|
File |
Project |
Line |
org/kuali/student/common/ui/client/widgets/containers/KSWrapper.java |
KS Common UI |
230 |
org/kuali/student/lum/lu/ui/main/client/widgets/ApplicationHeader.java |
KS LUM UI |
225 |
);
navDropDown.setItems(items);
navDropDown.setArrowImage(Theme.INSTANCE.getCommonImages().getDropDownIconWhite());
}
public void setContent(Widget wrappedContent){
content.setWidget(wrappedContent);
}
public void setHeaderCustomLinks(List<KSLabel> links){
for(KSLabel link: links){
FocusPanel panel = new FocusPanel();
panel.setWidget(link);
//headerTopLinks.add(panel);
panel.addStyleName("KS-Wrapper-Header-Custom-Link-Panel");
link.addStyleName("KS-Wrapper-Header-Custom-Link");
}
}
public void setFooterLinks(List<KSLabel> links){
for(KSLabel link: links){
//footer.add(link);
link.addStyleName("KS-Wrapper-Footer-Link");
}
}
private KSLabel buildLink(final String text, final String title, final String actionUrl) {
//Using KSLabel for now - couldn't change color for Anchor
final KSLabel link = new KSLabel(text);
link.addStyleName("KS-Header-Link");
link.setTitle(title);
link.addMouseOverHandler(new MouseOverHandler() {
@Override
public void onMouseOver(MouseOverEvent event) {
link.addStyleName("KS-Header-Link-Focus");
}});
link.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(MouseOutEvent event) {
link.removeStyleName("KS-Header-Link-Focus");
}});
link.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
Window.Location.assign(actionUrl);
}});
return link;
}
//Method to build the light box for the doc search
private void buildDocSearchPanel(){
if (docSearch == null){
docSearch = new Frame();
docSearch.setSize("700px", "500px");
docSearch.setUrl(docSearchUrl);
VerticalPanel docSearchPanel = new VerticalPanel();
docSearchPanel.add(docSearch);
KSButton closeActionButton = new KSButton(getMessage("wrapperPanelClose"));
closeActionButton.addClickHandler(new ClickHandler(){
public void onClick(ClickEvent event) {
docSearchDialog.hide();
}
});
docSearchPanel.add(closeActionButton);
docSearchDialog.setWidget(docSearchPanel);
|
File |
Project |
Line |
org/kuali/student/common/ui/client/widgets/list/KSCheckBoxList.java |
KS Common UI |
47 |
org/kuali/student/common/ui/client/widgets/list/KSRadioButtonList.java |
KS Common UI |
25 |
public KSRadioButtonList() {
initWidget(selectItemWidget);
}
/**
* @see org.kuali.student.common.ui.client.widgets.list.KSSelectItemWidgetAbstract#deSelectItem(java.lang.String)
*/
public void deSelectItem(String id) {
selectItemWidget.deSelectItem(id);
}
/**
* @see org.kuali.student.common.ui.client.widgets.list.KSSelectItemWidgetAbstract#getSelectedItems()
*/
public List<String> getSelectedItems() {
return selectItemWidget.getSelectedItems();
}
/**
* @see org.kuali.student.common.ui.client.widgets.list.KSSelectItemWidgetAbstract#selectItem(java.lang.String)
*/
public void selectItem(String id) {
selectItemWidget.selectItem(id);
}
public void setListItems(ListItems listItems) {
selectItemWidget.setListItems(listItems);
}
/**
* Use to set number of columns to use when displaying list
*
*/
public void setColumnSize(int cols){
selectItemWidget.setColumnSize(cols);
}
public void setMultipleSelect(boolean isMultipleSelect) {}
/**
* This overridden method is not used
*
* @see org.kuali.student.common.ui.client.widgets.list.KSSelectItemWidgetAbstract#onLoad()
*/
@Override
public void onLoad() {}
public HandlerRegistration addSelectionChangeHandler(SelectionChangeHandler handler) {
return selectItemWidget.addSelectionChangeHandler(handler);
}
public ListItems getListItems() {
return selectItemWidget.getListItems();
}
public String getName() {
return selectItemWidget.getName();
}
public void setName(String name) {
selectItemWidget.setName(name);
}
@Override
public void setEnabled(boolean b) {
selectItemWidget.setEnabled(b);
}
@Override
public boolean isEnabled() {
return selectItemWidget.isEnabled();
}
@Override
public boolean isMultipleSelect() {
return selectItemWidget.isMultipleSelect();
}
@Override
public void redraw() {
selectItemWidget.redraw();
}
@Override
public void clear() {
selectItemWidget.clear();
}
@Override
public HandlerRegistration addBlurHandler(BlurHandler handler) {
return selectItemWidget.addBlurHandler(handler);
}
@Override
public HandlerRegistration addFocusHandler(FocusHandler handler) {
return selectItemWidget.addFocusHandler(handler);
}
public void addWidgetReadyCallback(Callback<Widget> callback) {
selectItemWidget.addWidgetReadyCallback(callback);
}
public boolean isInitialized() {
return selectItemWidget.isInitialized();
}
public void setInitialized(boolean initialized) {
selectItemWidget.setInitialized(initialized);
}
/**
* By default if the list items used by the radiobutton has multiple attributes, the radiobutton
* generated will display all attributes as columns. Set this property to true if this
* behavior is not desired.
*
* @param ignoreMultiple
*/
public void setIgnoreMultipleAttributes(boolean ignoreMultiple){
selectItemWidget.setIgnoreMultipleAttributes(ignoreMultiple);
}
}
|
File |
Project |
Line |
org/kuali/student/common/ui/client/configurable/mvc/multiplicity/MultiplicityGroup.java |
KS Common UI |
489 |
org/kuali/student/common/ui/client/widgets/list/KSCheckBoxList.java |
KS Common UI |
48 |
initWidget(selectItemWidget);
}
/**
* @see org.kuali.student.common.ui.client.widgets.list.KSSelectItemWidgetAbstract#deSelectItem(java.lang.String)
*/
public void deSelectItem(String id) {
selectItemWidget.deSelectItem(id);
}
/**
* @see org.kuali.student.common.ui.client.widgets.list.KSSelectItemWidgetAbstract#getSelectedItems()
*/
public List<String> getSelectedItems() {
return selectItemWidget.getSelectedItems();
}
/**
* @see org.kuali.student.common.ui.client.widgets.list.KSSelectItemWidgetAbstract#selectItem(java.lang.String)
*/
public void selectItem(String id) {
selectItemWidget.selectItem(id);
}
public void setListItems(ListItems listItems) {
selectItemWidget.setListItems(listItems);
}
/**
* Use to set number of columns to use when displaying list
*
*/
public void setColumnSize(int cols){
selectItemWidget.setColumnSize(cols);
}
public void setMultipleSelect(boolean isMultipleSelect) {}
/**
* This overridden method is not used
*
* @see org.kuali.student.common.ui.client.widgets.list.KSSelectItemWidgetAbstract#onLoad()
*/
@Override
public void onLoad() {}
public HandlerRegistration addSelectionChangeHandler(SelectionChangeHandler handler) {
return selectItemWidget.addSelectionChangeHandler(handler);
}
public ListItems getListItems() {
return selectItemWidget.getListItems();
}
public String getName() {
return selectItemWidget.getName();
}
public void setName(String name) {
selectItemWidget.setName(name);
}
@Override
public void setEnabled(boolean b) {
selectItemWidget.setEnabled(b);
}
@Override
public boolean isEnabled() {
return selectItemWidget.isEnabled();
}
@Override
public boolean isMultipleSelect() {
return selectItemWidget.isMultipleSelect();
}
@Override
public void redraw() {
selectItemWidget.redraw();
}
@Override
public void clear() {
selectItemWidget.clear();
}
@Override
public HandlerRegistration addBlurHandler(BlurHandler handler) {
return selectItemWidget.addBlurHandler(handler);
}
@Override
public HandlerRegistration addFocusHandler(FocusHandler handler) {
return selectItemWidget.addFocusHandler(handler);
}
public void addWidgetReadyCallback(Callback<Widget> callback) {
selectItemWidget.addWidgetReadyCallback(callback);
}
public boolean isInitialized() {
return selectItemWidget.isInitialized();
}
public void setInitialized(boolean initialized) {
selectItemWidget.setInitialized(initialized);
}
/**
* By default if the list items used by the checkbox has multiple attributes, the checkbox
* generated will display all attributes as columns. Set this property to true if this
* behavior is not desired.
*
* @param ignoreMultiple
*/
public void setIgnoreMultipleAttributes(boolean ignoreMultiple){
selectItemWidget.setIgnoreMultipleAttributes(ignoreMultiple);
}
}
|
File |
Project |
Line |
org/kuali/student/common/ui/client/widgets/rules/RuleExpressionParser.java |
KS Core UI |
373 |
org/kuali/student/common/ui/client/widgets/table/ExpressionParser.java |
KS Core UI |
337 |
}
/**
* If higher push to stack, else pop till less than or equal, add to list push to stack if ( push to stack if ) pop to
* list till (.
*
* http://en.wikipedia.org/wiki/Reverse_Polish_notation
*
*/
private List<Node<Token>> getRPN(List<Node<Token>> nodeList) {
List<Node<Token>> rpnList = new ArrayList<Node<Token>>();
Stack<Node<Token>> operatorStack = new Stack<Node<Token>>();
for (Node<Token> node : nodeList) {
if (node.getUserObject().type == Token.Condition) {
rpnList.add(node);
} else if (node.getUserObject().type == Token.And) {
operatorStack.push(node);
} else if (node.getUserObject().type == Token.StartParenthesis) {
operatorStack.push(node);
} else if (node.getUserObject().type == Token.Or) {
if (operatorStack.isEmpty() == false && operatorStack.peek().getUserObject().type == Token.And) {
do {
rpnList.add(operatorStack.pop());
} while (operatorStack.isEmpty() == false && operatorStack.peek().getUserObject().type == Token.And);
}
operatorStack.push(node);
} else if (node.getUserObject().type == Token.EndParenthesis) {
while (operatorStack.peek().getUserObject().type != Token.StartParenthesis) {
rpnList.add(operatorStack.pop());
}
operatorStack.pop();// pop the (
}
}
if (operatorStack.isEmpty() == false) {
do {
rpnList.add(operatorStack.pop());
} while (operatorStack.isEmpty() == false);
}
return rpnList;
}
private int findNodeIndex(List<Node<Token>> nodeList, int type) {
|
File |
Project |
Line |
org/kuali/student/core/assembly/helper/RuntimeDataHelper.java |
KS Common Impl |
23 |
org/kuali/student/core/organization/assembly/data/client/RuntimeDataHelper.java |
KS Core UI |
23 |
public class RuntimeDataHelper
{
private static final long serialVersionUID = 1;
public enum Properties implements PropertyEnum
{
CREATED ("created"),
DELETED ("deleted"),
UPDATED ("updated"),
VERSIONS ("versions");
private final String key;
private Properties (final String key)
{
this.key = key;
}
@Override
public String getKey ()
{
return this.key;
}
}
private Data data;
private RuntimeDataHelper (Data data)
{
this.data = data;
}
public static RuntimeDataHelper wrap (Data data)
{
if (data == null)
{
return null;
}
return new RuntimeDataHelper (data);
}
public Data getData ()
{
return data;
}
public void setCreated (Boolean value)
{
data.set (Properties.CREATED.getKey (), value);
}
public Boolean isCreated ()
{
return (Boolean) data.get (Properties.CREATED.getKey ());
}
public void setDeleted (Boolean value)
{
data.set (Properties.DELETED.getKey (), value);
}
public Boolean isDeleted ()
{
return (Boolean) data.get (Properties.DELETED.getKey ());
}
public void setUpdated (Boolean value)
{
data.set (Properties.UPDATED.getKey (), value);
}
public Boolean isUpdated ()
{
return (Boolean) data.get (Properties.UPDATED.getKey ());
}
public void setVersions (Data value)
{
data.set (Properties.VERSIONS.getKey (), value);
}
public Data getVersions ()
{
return (Data) data.get (Properties.VERSIONS.getKey ());
}
}
|
File |
Project |
Line |
org/kuali/student/core/organization/ui/client/mvc/view/MembersTable.java |
KS Core UI |
99 |
org/kuali/student/core/organization/ui/client/mvc/view/PositionTable.java |
KS Core UI |
131 |
}
public void addSelectionHandler(RowSelectionHandler selectionHandler){
pagingScrollTable.getDataTable().addRowSelectionHandler(selectionHandler);
}
public void redraw(){
tableModel.setRows(resultRows);
pagingScrollTable = builder.build(tableModel);
pagingScrollTable.setResizePolicy(ResizePolicy.FILL_WIDTH);
layout.clear();
layout.add(pagingScrollTable);
pagingScrollTable.reloadPage();
pagingScrollTable.fillWidth();
}
public List<ResultRow> getSelectedRows(){
List<ResultRow> rows = new ArrayList<ResultRow>();
Set<Integer> selectedRows = pagingScrollTable.getDataTable().getSelectedRows();
for(Integer i: selectedRows){
rows.add(pagingScrollTable.getRowValue(i));
}
return rows;
}
public List<String> getSelectedIds(){
List<String> ids = new ArrayList<String>();
Set<Integer> selectedRows = pagingScrollTable.getDataTable().getSelectedRows();
for(Integer i: selectedRows){
ids.add(pagingScrollTable.getRowValue(i).getId());
}
return ids;
}
public List<String> getAllIds(){
List<String> ids = new ArrayList<String>();
for(ResultRow r: resultRows){
ids.add(r.getId());
}
return ids;
}
public List<ResultRow> getAllRows(){
List<ResultRow> rows = new ArrayList<ResultRow>();
for(ResultRow r: resultRows){
rows.add(r);
}
return rows;
}
public String getOrgId(){
return this.orgId;
}
public void setOrgId(String orgId){
this.orgId=orgId;
}
|
File |
Project |
Line |
org/kuali/student/common/ui/client/widgets/menus/impl/KSBasicMenuImpl.java |
KS Common UI |
283 |
org/kuali/student/common/ui/client/widgets/menus/impl/KSListMenuImpl.java |
KS Common UI |
295 |
createMenuItems(items, 1);
}
private void createMenuItems(List<KSMenuItemData> theItems, int currentDepth){
int itemNum = 0;
for(KSMenuItemData i: theItems){
itemNum++;
addMenuItem(new MenuItemPanel(i, currentDepth, itemNum));
if(!(i.getSubItems().isEmpty())){
createMenuItems(i.getSubItems(), currentDepth + 1);
}
i.addMenuEventHandler(MenuSelectEvent.TYPE, menuHandler);
i.addMenuEventHandler(MenuChangeEvent.TYPE, menuHandler);
}
}
private void addMenuItem(MenuItemPanel panel){
menuPanel.add(panel);
menuItems.add(panel);
}
public boolean isNumberAllItems() {
return numberAllItems;
}
public void setNumberAllItems(boolean numberAllItems) {
this.numberAllItems = numberAllItems;
}
@Override
public boolean selectMenuItem(String[] hierarchy) {
List<KSMenuItemData> currentItems = items;
KSMenuItemData itemToSelect = null;
for(String s: hierarchy){
s = s.trim();
for(KSMenuItemData i: currentItems){
if(s.equalsIgnoreCase(i.getLabel().trim())){
itemToSelect = i;
currentItems = i.getSubItems();
break;
}
}
}
if(itemToSelect != null){
for(MenuItemPanel p: menuItems){
if(itemToSelect.equals(p.getItem())){
p.getItem().setSelected(true);
return true;
}
}
}
return false;
}
/**
* @see org.kuali.student.common.ui.client.widgets.menus.KSMenu#clearSelected()
*/
@Override
public void clearSelected() {
for(MenuItemPanel m : menuItems){
m.deSelect();
m.getItem().unhandledSetSelected(false);
}
}
|
File |
Project |
Line |
org/kuali/student/lum/lu/assembly/CluSetManagementAssembler.java |
KS LUM UI |
167 |
org/kuali/student/lum/lu/ui/tools/server/gwt/CluSetManagementRpcGwtServlet.java |
KS LUM UI |
116 |
}
private void upWrap(CluSetInfo cluSetInfo) throws AssemblyException {
List<String> cluSetIds = (cluSetInfo == null)? null : cluSetInfo.getCluSetIds();
List<String> unWrappedCluSetIds = null;
List<CluSetInfo> wrappedCluSets = null;
List<CluSetInfo> subCluSets = null;
try {
if (cluSetIds != null && !cluSetIds.isEmpty()) {
subCluSets = luService.getCluSetInfoByIdList(cluSetIds);
}
} catch (Exception e) {
LOG.error(e.getMessage(), e);
throw new AssemblyException("Failed to retrieve the sub clusets of cluset " +
cluSetInfo.getId());
}
// goes through the list of sub clusets and ignore the ones that are not reusable
if (subCluSets != null) {
for (CluSetInfo subCluSet : subCluSets) {
if (subCluSet.getIsReusable()) {
unWrappedCluSetIds = (unWrappedCluSetIds == null)?
new ArrayList<String>() : unWrappedCluSetIds;
unWrappedCluSetIds.add(subCluSet.getId());
} else {
wrappedCluSets = (wrappedCluSets == null)?
new ArrayList<CluSetInfo>() : wrappedCluSets;
wrappedCluSets.add(subCluSet);
}
}
}
cluSetInfo.setCluSetIds(unWrappedCluSetIds);
if (wrappedCluSets != null) {
for (CluSetInfo wrappedCluSet : wrappedCluSets) {
MembershipQueryInfo mqInfo = wrappedCluSet.getMembershipQuery();
if (wrappedCluSet.getCluIds() != null && !wrappedCluSet.getCluIds().isEmpty()) {
cluSetInfo.setCluIds(wrappedCluSet.getCluIds());
}
if (mqInfo != null && mqInfo.getSearchTypeKey() != null && !mqInfo.getSearchTypeKey().isEmpty()) {
cluSetInfo.setMembershipQuery(mqInfo);
}
}
}
}
private List<CluInformation> getCluInformations(List<String> cluIds) throws OperationFailedException {
|
File |
Project |
Line |
org/kuali/student/lum/course/service/assembler/CourseAssembler.java |
KS LUM Impl |
793 |
org/kuali/student/lum/service/assembler/CluAssemblerUtils.java |
KS LUM Impl |
210 |
relation.setState(cluState);
BaseDTOAssemblyNode<LoDisplayInfo, CluLoRelationInfo> relationNode = new BaseDTOAssemblyNode<LoDisplayInfo, CluLoRelationInfo>(
null);
relationNode.setNodeData(relation);
relationNode.setOperation(NodeOperation.CREATE);
results.add(relationNode);
} else if (NodeOperation.UPDATE == operation
&& currentCluLoRelations.containsKey(loDisplay.getLoInfo().getId())) {
// If the clu already has this lo, then just update the lo
BaseDTOAssemblyNode<LoDisplayInfo, LoInfo> loNode = loAssembler
.disassemble(loDisplay, NodeOperation.UPDATE);
results.add(loNode);
// remove this entry from the map so we can tell what needs to
// be deleted at the end
currentCluLoRelations.remove(loDisplay.getLoInfo().getId());
} else if (NodeOperation.DELETE == operation
&& currentCluLoRelations.containsKey(loDisplay.getLoInfo().getId())) {
// Delete the Format and its relation
CluLoRelationInfo relationToDelete = currentCluLoRelations.get(loDisplay.getLoInfo().getId());
BaseDTOAssemblyNode<LoDisplayInfo, CluLoRelationInfo> relationToDeleteNode = new BaseDTOAssemblyNode<LoDisplayInfo, CluLoRelationInfo>(
null);
relationToDeleteNode.setNodeData(relationToDelete);
relationToDeleteNode.setOperation(NodeOperation.DELETE);
results.add(relationToDeleteNode);
BaseDTOAssemblyNode<LoDisplayInfo, LoInfo> loNode = loAssembler
.disassemble(loDisplay, NodeOperation.DELETE);
results.add(loNode);
// remove this entry from the map so we can tell what needs to
// be deleted at the end
currentCluLoRelations.remove(loDisplay.getLoInfo().getId());
}
}
// Now any leftover lo ids are no longer needed, so delete
// los and relations
for (Entry<String, CluLoRelationInfo> entry : currentCluLoRelations.entrySet()) {
// Create a new relation with the id of the relation we want to
// delete
CluLoRelationInfo relationToDelete = entry.getValue();
BaseDTOAssemblyNode<LoDisplayInfo, CluLoRelationInfo> relationToDeleteNode = new BaseDTOAssemblyNode<LoDisplayInfo, CluLoRelationInfo>(
null);
relationToDeleteNode.setNodeData(relationToDelete);
relationToDeleteNode.setOperation(NodeOperation.DELETE);
results.add(relationToDeleteNode);
|
File |
Project |
Line |
org/kuali/student/lum/program/dto/MajorDisciplineInfo.java |
KS LUM API |
361 |
org/kuali/student/lum/program/dto/ProgramVariationInfo.java |
KS LUM API |
321 |
}
/**
* Date and time the Variation became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date.
*/
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
/**
* Abbreviated name of the Variation
*/
public String getShortTitle() {
return shortTitle;
}
public void setShortTitle(String shortTitle) {
this.shortTitle = shortTitle;
}
/**
* Full name of the Variation Discipline
*/
public String getLongTitle() {
return longTitle;
}
public void setLongTitle(String longTitle) {
this.longTitle = longTitle;
}
/**
* Information related to the official identification of the Variation, typically in human readable form. Used to officially reference or publish.
*/
public String getTranscriptTitle() {
return transcriptTitle;
}
public void setTranscriptTitle(String transcriptTitle) {
this.transcriptTitle = transcriptTitle;
}
/**
*
*/
public String getDiplomaTitle() {
return diplomaTitle;
}
public void setDiplomaTitle(String diplomaTitle) {
this.diplomaTitle = diplomaTitle;
}
/**
* Narrative description of the Variation.
*/
public RichTextInfo getDescr() {
return descr;
}
public void setDescr(RichTextInfo descr) {
this.descr = descr;
}
/**
* Narrative description of the Variation that will show up in Catalog
*/
public RichTextInfo getCatalogDescr() {
return catalogDescr;
}
public void setCatalogDescr(RichTextInfo catalogDescr) {
this.catalogDescr = catalogDescr;
}
/**
* List of catalog targets where program variation information will be published.
*/
public List<String> getCatalogPublicationTargets() {
return catalogPublicationTargets;
}
public void setCatalogPublicationTargets(List<String> catalogPublicationTargets) {
this.catalogPublicationTargets = catalogPublicationTargets;
}
/**
* Learning Objectives associated with this Variation.
*/
public List<LoDisplayInfo> getLearningObjectives() {
if (learningObjectives == null) {
learningObjectives = new ArrayList<LoDisplayInfo>(0);
}
return learningObjectives;
}
public void setLearningObjectives(List<LoDisplayInfo> learningObjectives) {
this.learningObjectives = learningObjectives;
}
/**
* Places where this Variation might be offered
*/
public List<String> getCampusLocations() {
if (campusLocations == null) {
campusLocations = new ArrayList<String>(0);
}
return campusLocations;
}
public void setCampusLocations(List<String> campusLocations) {
this.campusLocations = campusLocations;
}
/**
* Program Variation Requirements.
*/
public List<String> getProgramRequirements() {
|
File |
Project |
Line |
org/kuali/student/core/person/dto/PersonRelationTypeInfo.java |
KS Core API |
37 |
org/kuali/student/lum/lo/dto/LoLoRelationTypeInfo.java |
KS LUM API |
43 |
public class LoLoRelationTypeInfo implements Serializable, Idable, HasAttributes {
private static final long serialVersionUID = 1L;
@XmlElement
private String name;
@XmlElement
private String desc;
@XmlElement
private String revName;
@XmlElement
private String revDesc;
@XmlElement
private Date effectiveDate;
@XmlElement
private Date expirationDate;
@XmlElement
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
private Map<String, String> attributes;
@XmlAttribute(name="key")
private String id;
/**
* Short name of the LO to LO relationship type. This is primarily to be used by developers and may end up translated in the end system.
*/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
* Narrative description of the LO to LO relationship type.
*/
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
/**
* Name for the reverse LO to LO relationship type. This is primarily to be used by developers and may end up translated in the end system.
*/
public String getRevName() {
return revName;
}
public void setRevName(String revName) {
this.revName = revName;
}
/**
* Description of the reverse of the LO to LO relationship type
*/
public String getRevDesc() {
return revDesc;
}
public void setRevDesc(String revDesc) {
this.revDesc = revDesc;
}
/**
* Date and time that this LO to LO relationship type became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date.
*/
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
/**
* Date and time that this LO to LO relationship type expires. This is a similar concept to the expiration date on enumerated values. If specified, this should be greater than or equal to the effective date. If this field is not specified, then no expiration date has been currently defined and should automatically be considered greater than the effective date.
*/
public Date getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(Date expirationDate) {
this.expirationDate = expirationDate;
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Unique identifier for the LO to LO relation type.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
|
File |
Project |
Line |
org/kuali/student/lum/program/dto/HonorsProgramInfo.java |
KS LUM API |
47 |
org/kuali/student/lum/program/dto/MinorDisciplineInfo.java |
KS LUM API |
47 |
public class MinorDisciplineInfo implements Serializable, Idable, HasTypeState, HasAttributes {
private static final long serialVersionUID = 1L;
@XmlElement
private String credentialProgramId;
@XmlElement
private List<String> programRequirements;
@XmlElement
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
private Map<String, String> attributes;
@XmlElement
private MetaInfo metaInfo;
@XmlAttribute
private String type;
@XmlAttribute
private String state;
@XmlAttribute
private String id;
/**
* Identifier of the credential program under which the minor belongs
*/
public String getCredentialProgramId() {
return credentialProgramId;
}
public void setCredentialProgramId(String credentialProgramId) {
this.credentialProgramId = credentialProgramId;
}
/**
* Minor Discipline Program Requirements.
*/
public List<String> getProgramRequirements() {
if (programRequirements == null) {
programRequirements = new ArrayList<String>(0);
}
return programRequirements;
}
public void setProgramRequirements(List<String> programRequirements) {
this.programRequirements = programRequirements;
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
/**
* Unique identifier for a learning unit type. Once set at create time, this field may not be updated.
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
/**
* The current status of the credential program. The values for this field are constrained to those in the luState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
*/
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
/**
* Unique identifier for an Minor Discipline. This is optional, due to the identifier being set at the time of creation. Once the Program has been created, this should be seen as required.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
|
File |
Project |
Line |
org/kuali/student/lum/lu/ui/course/client/configuration/CourseSummaryConfigurer.java |
KS LUM UI |
327 |
org/kuali/student/lum/lu/ui/course/client/configuration/CourseSummaryConfigurer.java |
KS LUM UI |
359 |
block.setTitle(getLabel(LUUIConstants.INFORMATION_LABEL_KEY));
//block.addSummaryTableFieldRow(getFieldRow(PROPOSAL_TITLE_PATH, generateMessageInfo(LUConstants.PROPOSAL_TITLE_LABEL_KEY)));
block.addSummaryTableFieldRow(getFieldRow(COURSE + "/" + COURSE_TITLE, generateMessageInfo(LUUIConstants.COURSE_TITLE_LABEL_KEY)));
block.addSummaryTableFieldRow(getFieldRow(COURSE + "/" + TRANSCRIPT_TITLE, generateMessageInfo(LUUIConstants.SHORT_TITLE_LABEL_KEY)));
block.addSummaryTableFieldRow(getFieldRow(COURSE + "/" + SUBJECT_AREA, generateMessageInfo(LUUIConstants.SUBJECT_CODE_LABEL_KEY)));
block.addSummaryTableFieldRow(getFieldRow(COURSE + "/" + COURSE_NUMBER_SUFFIX, generateMessageInfo(LUUIConstants.COURSE_NUMBER_LABEL_KEY)));
block.addSummaryTableFieldRow(getFieldRow(COURSE + "/" + INSTRUCTORS, generateMessageInfo(LUUIConstants.INSTRUCTORS_LABEL_KEY), null, null, null, new KeyListModelWigetBinding("personId"), false));
block.addSummaryMultiplicity(getMultiplicityConfig(COURSE + QueryPath.getPathSeparator() + CROSS_LISTINGS,
LUUIConstants.CROSS_LISTED_ITEM_LABEL_KEY,
Arrays.asList(
Arrays.asList(SUBJECT_AREA, LUUIConstants.SUBJECT_CODE_LABEL_KEY),
Arrays.asList(COURSE_NUMBER_SUFFIX, LUUIConstants.COURSE_NUMBER_LABEL_KEY))));
block.addSummaryMultiplicity(getMultiplicityConfig(COURSE + QueryPath.getPathSeparator() + JOINTS,
LUUIConstants.JOINT_OFFER_ITEM_LABEL_KEY,
Arrays.asList(
Arrays.asList(CreditCourseJointsConstants.COURSE_ID, LUUIConstants.COURSE_NUMBER_OR_TITLE_LABEL_KEY))));
block.addSummaryMultiplicity(getMultiplicityConfig(COURSE + QueryPath.getPathSeparator() + VERSIONS,
LUUIConstants.VERSION_CODE_LABEL_KEY,
Arrays.asList(
Arrays.asList("variationCode", LUUIConstants.VERSION_CODE_LABEL_KEY),
Arrays.asList("variationTitle", LUUIConstants.TITLE_LABEL_KEY))));
block.addSummaryTableFieldRow(getFieldRow(COURSE + "/" + PROPOSAL_DESCRIPTION + "/" + RichTextInfoConstants.PLAIN, generateMessageInfo(LUUIConstants.DESCRIPTION_LABEL_KEY)));
|
File |
Project |
Line |
org/kuali/student/common/ui/client/widgets/search/KSPicker.java |
KS Common UI |
616 |
org/kuali/student/common/ui/client/widgets/search/SearchPanel.java |
KS Common UI |
474 |
for(LookupParamMetadata metaParam: meta.getParams()){
if(metaParam.getWriteAccess() == WriteAccess.NEVER){
if ((metaParam.getDefaultValueString() == null || metaParam.getDefaultValueString().isEmpty())&&
(metaParam.getDefaultValueList() == null || metaParam.getDefaultValueList().isEmpty())) {
//FIXME throw an exception?
GWT.log("Key = " + metaParam.getKey() + " has write access NEVER but has no default value!", null);
continue;
}
SearchParam param = new SearchParam();
param.setKey(metaParam.getKey());
if(metaParam.getDefaultValueList()==null){
param.setValue(metaParam.getDefaultValueString());
}else{
param.setValue(metaParam.getDefaultValueList());
}
params.add(param);
}
else if(metaParam.getWriteAccess() == WriteAccess.WHEN_NULL){
if((metaParam.getDefaultValueString() != null && !metaParam.getDefaultValueString().isEmpty())||
(metaParam.getDefaultValueList() != null && !metaParam.getDefaultValueList().isEmpty())){
SearchParam param = new SearchParam();
param.setKey(metaParam.getKey());
if(metaParam.getDefaultValueList()==null){
param.setValue(metaParam.getDefaultValueString());
}else{
param.setValue(metaParam.getDefaultValueList());
}
params.add(param);
}
}
}
sr.setParams(params);
|
File |
Project |
Line |
org/kuali/student/core/assembly/old/IdTranslatorAssemblerFilter.java |
KS Common Impl |
131 |
org/kuali/student/core/assembly/transform/IdTranslatorFilter.java |
KS Common Impl |
103 |
translateIds((Data) prop.getValue(), fieldMetadata);
}
} else if (fieldData != null && fieldData instanceof String) {
if (fieldMetadata.getInitialLookup() != null
&& !StringUtils.isEmpty((String) fieldData)) {
//This is a string with a lookup so do the translation
IdTranslation trans = idTranslator.getTranslation(fieldMetadata.getInitialLookup(), (String) fieldData);
if (trans != null) {
setTranslation(data, prop.getKey().toString(), null, trans.getDisplay());
}
}
}
}
}
}catch(Exception e){
LOG.error("Error translating", e);
}
}
private static void setTranslation(Data data, String field, Integer index, String translation) {
if (data != null) {
//Get runtime data for the node and create if it doesn't exist
Data runtime = data.get("_runtimeData");
if (runtime == null) {
runtime = new Data();
data.set("_runtimeData", runtime);
}
if(index != null) {
//If the index is set this is a list item (foo/bar/0/, foo/bar/1/)
Data fieldIndexData = runtime.get(index);
if(fieldIndexData==null){
fieldIndexData = new Data();
runtime.set(index, fieldIndexData);
}
fieldIndexData.set("id-translation", translation);
}else{
//Otherwise set the translation directly referenced by the field
//If the index is set this is a list item (foo/bar/0/, foo/bar/1/)
Data fieldData = runtime.get(field);
if(fieldData==null){
fieldData = new Data();
runtime.set(field, fieldData);
}
fieldData.set("id-translation", translation);
}
}
}
}
|
File |
Project |
Line |
org/kuali/student/common/ui/client/widgets/containers/KSWrapper.java |
KS Common UI |
107 |
org/kuali/student/lum/lu/ui/main/client/widgets/ApplicationHeader.java |
KS LUM UI |
107 |
this.initWidget(ksHeader);
}
protected void onLoad() {
super.onLoad();
if (!loaded){
List<String> serverPropertyList = Arrays.asList(APP_URL, DOC_SEARCH_URL, LUM_APP_URL,RICE_URL,RICE_LINK_LABEL, APP_VERSION, CODE_SERVER);
serverPropertiesRpcService.get(serverPropertyList, new KSAsyncCallback<Map<String,String>>() {
public void handleFailure(Throwable caught) {
//ignoring, we'll use the default
init();
}
public void onSuccess(Map<String,String> result) {
GWT.log("ServerProperties fetched: "+result.toString(), null);
if(result != null){
appUrl = result.get(APP_URL);
docSearchUrl = result.get(DOC_SEARCH_URL);
lumAppUrl = result.get(LUM_APP_URL);
riceURL = result.get(RICE_URL);
riceLinkLabel = result.get(RICE_LINK_LABEL);
appVersion = result.get(APP_VERSION);
if (result.get(CODE_SERVER) != null){
codeServer = result.get(CODE_SERVER);
}
}
init();
}
});
loaded = false;
}
}
private void init(){
//headerBottomLinks.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
createUserDropDown();
//headerBottomLinks.add(userDropDown);
ksHeader.setHiLabelText("Hi,");
ksHeader.setUserName(Application.getApplicationContext().getUserId());
Anchor logoutLink = new Anchor(getMessage("wrapperPanelLogout"));
logoutLink.addClickHandler(new WrapperNavigationHandler("j_spring_security_logout"));
ksHeader.addLogout(logoutLink);
ksHeader.addLogout(versionAnchor);
//headerBottomLinks.add(logoutLink);
createHelpInfo();
createNavDropDown();
ksHeader.addNavigation(navDropDown);
|
File |
Project |
Line |
org/kuali/student/lum/program/client/core/edit/CoreEditController.java |
KS LUM Program |
203 |
org/kuali/student/lum/program/client/credential/edit/CredentialEditController.java |
KS LUM Program |
164 |
CredentialEditController.this.updateModelFromCurrentView();
model.validate(new Callback<List<ValidationResultInfo>>() {
@Override
public void exec(List<ValidationResultInfo> result) {
boolean isSectionValid = isValid(result, true);
if (isSectionValid) {
saveData(okCallback);
} else {
okCallback.exec(false);
Window.alert("Save failed. Please check fields for errors.");
}
}
});
}
@Override
public void onRequestFail(Throwable cause) {
GWT.log("Unable to retrieve model for validation and save", cause);
}
});
}
private void saveData(final Callback<Boolean> okCallback) {
programRemoteService.saveData(programModel.getRoot(), new AbstractCallback<DataSaveResult>(ProgramProperties.get().common_savingData()) {
@Override
public void onSuccess(DataSaveResult result) {
super.onSuccess(result);
if (result.getValidationResults() != null && !result.getValidationResults().isEmpty()) {
if (previousState != null) {
ProgramUtils.setStatus(programModel, previousState.getValue());
}
isValid(result.getValidationResults(), false, true);
StringBuilder msg = new StringBuilder();
for (ValidationResultInfo vri : result.getValidationResults()) {
msg.append(vri.getMessage());
}
okCallback.exec(false);
} else {
previousState = null;
programModel.setRoot(result.getValue());
setHeaderTitle();
setStatus();
|
File |
Project |
Line |
org/kuali/student/core/document/dto/RefDocRelationInfo.java |
KS Core API |
108 |
org/kuali/student/lum/lu/dto/LuDocRelationInfo.java |
KS LUM API |
87 |
}
/**
* Unique identifier for a document.
*/
public String getDocumentId() {
return documentId;
}
public void setDocumentId(String documentId) {
this.documentId = documentId;
}
/**
* The title of the document usage in the context of the CLU.
*/
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
/**
* The description of the document usage in the context of the CLU.
*/
public RichTextInfo getDesc() {
return desc;
}
public void setDesc(RichTextInfo desc) {
this.desc = desc;
}
/**
* Date and time that this LU Doc Relation became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date.
*/
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
/**
* Date and time that this LU Doc Relation expires. This is a similar concept to the expiration date on enumerated values. If specified, this should be greater than or equal to the effective date. If this field is not specified, then no expiration date has been currently defined and should automatically be considered greater than the effective date.
*/
public Date getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(Date expirationDate) {
this.expirationDate = expirationDate;
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
/**
* Unique identifier for an LU document relationship type. Describes the type of usage of the document.
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
/**
* The current status of the LU to document relationship. The values for this field are constrained to those in the luDocRelationState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
*/
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
/**
* Unique identifier for a LU to document relation. This is optional, due to the identifier being set at the time of creation. Once the connection has been created, this should be seen as required.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
|
File |
Project |
Line |
org/kuali/student/core/atp/service/impl/AtpServiceImpl.java |
KS Core Impl |
546 |
org/kuali/student/core/enumerationmanagement/service/impl/EnumerationManagementServiceImpl.java |
KS Core Impl |
190 |
}
@Override
public SearchCriteriaTypeInfo getSearchCriteriaType(
String searchCriteriaTypeKey) throws DoesNotExistException,
InvalidParameterException, MissingParameterException,
OperationFailedException {
return searchManager.getSearchCriteriaType(searchCriteriaTypeKey);
}
@Override
public List<SearchCriteriaTypeInfo> getSearchCriteriaTypes()
throws OperationFailedException {
return searchManager.getSearchCriteriaTypes();
}
@Override
public SearchResultTypeInfo getSearchResultType(String searchResultTypeKey)
throws DoesNotExistException, InvalidParameterException,
MissingParameterException, OperationFailedException {
checkForMissingParameter(searchResultTypeKey, "searchResultTypeKey");
return searchManager.getSearchResultType(searchResultTypeKey);
}
@Override
public List<SearchResultTypeInfo> getSearchResultTypes()
throws OperationFailedException {
return searchManager.getSearchResultTypes();
}
@Override
public SearchTypeInfo getSearchType(String searchTypeKey)
throws DoesNotExistException, InvalidParameterException,
MissingParameterException, OperationFailedException {
checkForMissingParameter(searchTypeKey, "searchTypeKey");
return searchManager.getSearchType(searchTypeKey);
}
@Override
public List<SearchTypeInfo> getSearchTypes()
throws OperationFailedException {
return searchManager.getSearchTypes();
}
@Override
public List<SearchTypeInfo> getSearchTypesByCriteria(
String searchCriteriaTypeKey) throws DoesNotExistException,
InvalidParameterException, MissingParameterException,
OperationFailedException {
checkForMissingParameter(searchCriteriaTypeKey, "searchCriteriaTypeKey");
return searchManager.getSearchTypesByCriteria(searchCriteriaTypeKey);
}
@Override
public List<SearchTypeInfo> getSearchTypesByResult(
String searchResultTypeKey) throws DoesNotExistException,
InvalidParameterException, MissingParameterException,
OperationFailedException {
checkForMissingParameter(searchResultTypeKey, "searchResultTypeKey");
return searchManager.getSearchTypesByResult(searchResultTypeKey);
}
@Override
public SearchResult search(SearchRequest searchRequest) throws MissingParameterException {
return searchManager.search(searchRequest, enumDAO);
|
File |
Project |
Line |
org/kuali/student/core/assembly/data/Data.java |
KS Common Impl |
718 |
org/kuali/student/core/assembly/data/Data.java |
KS Common Impl |
783 |
final Iterator<Map.Entry<Key, Value>> impl = map.entrySet().iterator();
return new Iterator<Property>() {
Map.Entry<Key, Value> current;
@Override
public boolean hasNext() {
return impl.hasNext();
}
@Override
public Property next() {
final Map.Entry<Key, Value> entry = impl.next();
current = entry;
return new Property() {
@Override
public <T> T getKey() {
return (T) entry.getKey().get();
}
@Override
public Class<?> getKeyType() {
return entry.getKey().getType();
}
@Override
public <T> T getValue() {
return (T) entry.getValue().get();
}
@Override
public Class<?> getValueType() {
return entry.getValue().getType();
}
@Override
public Key getWrappedKey() {
return entry.getKey();
}
@Override
public Value getWrappedValue() {
return entry.getValue();
}
};
}
@Override
public void remove() {
impl.remove();
QueryPath path = getQueryPath();
path.add(current.getKey());
execChangeCallbacks(ChangeType.REMOVE, path);
}
};
}
|
File |
Project |
Line |
org/kuali/student/lum/lu/bo/CluIdentifier.java |
KS Admin |
11 |
org/kuali/student/lum/lu/entity/CluIdentifier.java |
KS LUM Impl |
28 |
@Column(name = "CD")
private String code;
@Column(name = "SHRT_NAME")
private String shortName;
@Column(name = "LNG_NAME")
private String longName;
@Column(name = "LVL")
private String level;
@Column(name = "DIV")
private String division;
@Column(name = "VARTN")
private String variation;
@Column(name = "SUFX_CD")
private String suffixCode;
@Column(name = "ORG_ID")
private String orgId;
@Column(name = "TYPE")
private String type;
@Column(name = "ST")
private String state;
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getShortName() {
return shortName;
}
public void setShortName(String shortName) {
this.shortName = shortName;
}
public String getLongName() {
return longName;
}
public void setLongName(String longName) {
this.longName = longName;
}
public String getLevel() {
return level;
}
public void setLevel(String level) {
this.level = level;
}
public String getDivision() {
return division;
}
public void setDivision(String division) {
this.division = division;
}
public String getVariation() {
return variation;
}
public void setVariation(String variation) {
this.variation = variation;
}
public String getType() {
|
File |
Project |
Line |
org/kuali/student/core/comment/dto/CommentInfo.java |
KS Core API |
90 |
org/kuali/student/core/comment/dto/TagInfo.java |
KS Core API |
117 |
}
/**
* Unique identifier for a reference type.
*/
public String getReferenceTypeKey() {
return referenceTypeKey;
}
public void setReferenceTypeKey(String referenceTypeKey) {
this.referenceTypeKey = referenceTypeKey;
}
/**
* Identifier component for a reference. This is an external identifier and such may not uniquely identify a particular reference unless combined with the type. A referenceId could be a cluId, a luiId, an orgId, a documentId, etc.
*/
public String getReferenceId() {
return referenceId;
}
public void setReferenceId(String referenceId) {
this.referenceId = referenceId;
}
/**
* Date and time that this tag became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date.
*/
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
/**
* Date and time that this tag expires. This is a similar concept to the expiration date on enumerated values. If specified, this should be greater than or equal to the effective date. If this field is not specified, then no expiration date has been currently defined and should automatically be considered greater than the effective date.
*/
public Date getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(Date expirationDate) {
this.expirationDate = expirationDate;
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
/**
* Unique identifier for a tag type.
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
/**
* The current status of the tag. The values for this field are constrained to those in the tagState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
*/
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
/**
* Unique identifier for a tag. This is optional, due to the identifier being set at the time of creation. Once the tag has been created, this should be seen as required.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
|
File |
Project |
Line |
org/kuali/student/common/ui/client/configurable/mvc/multiplicity/MultiplicityGroup.java |
KS Common UI |
489 |
org/kuali/student/common/ui/client/widgets/list/KSLabelList.java |
KS Common UI |
51 |
selectItemWidget.setInitialized(initialzed);
}
/**
* @see org.kuali.student.common.ui.client.widgets.list.KSSelectItemWidgetAbstract#deSelectItem(java.lang.String)
*/
public void deSelectItem(String id) {
selectItemWidget.deSelectItem(id);
}
/**
* @see org.kuali.student.common.ui.client.widgets.list.KSSelectItemWidgetAbstract#getSelectedItems()
*/
public List<String> getSelectedItems() {
return selectItemWidget.getSelectedItems();
}
/**
* @see org.kuali.student.common.ui.client.widgets.list.KSSelectItemWidgetAbstract#selectItem(java.lang.String)
*/
public void selectItem(String id) {
selectItemWidget.selectItem(id);
}
public void setListItems(ListItems listItems) {
selectItemWidget.setListItems(listItems);
}
/**
* Use to set number of columns to use when displaying list
*
*/
public void setColumnSize(int cols){
selectItemWidget.setColumnSize(cols);
}
public void setMultipleSelect(boolean isMultipleSelect) {}
/**
* This overridden method is not used
*
* @see org.kuali.student.common.ui.client.widgets.list.KSSelectItemWidgetAbstract#onLoad()
*/
@Override
public void onLoad() {}
public HandlerRegistration addSelectionChangeHandler(SelectionChangeHandler handler) {
return selectItemWidget.addSelectionChangeHandler(handler);
}
public ListItems getListItems() {
return selectItemWidget.getListItems();
}
public String getName() {
return selectItemWidget.getName();
}
public void setName(String name) {
selectItemWidget.setName(name);
}
@Override
public void setEnabled(boolean b) {
selectItemWidget.setEnabled(b);
}
@Override
public boolean isEnabled() {
return selectItemWidget.isEnabled();
}
@Override
public boolean isMultipleSelect() {
return selectItemWidget.isMultipleSelect();
}
@Override
public void redraw() {
selectItemWidget.redraw();
}
@Override
public void clear() {
selectItemWidget.clear();
}
@Override
public HandlerRegistration addFocusHandler(FocusHandler handler) {
|
File |
Project |
Line |
org/kuali/student/common/ui/client/widgets/search/TempSearchBackedTable.java |
KS Common UI |
158 |
org/kuali/student/lum/lu/ui/tools/client/widgets/SearchBackedTable.java |
KS LUM UI |
164 |
pagingScrollTable.reloadPage();
}
public void addSelectionHandler (RowSelectionHandler selectionHandler)
{
pagingScrollTable.getDataTable ().addRowSelectionHandler (selectionHandler);
}
public List<ResultRow> getSelectedRows ()
{
List<ResultRow> rows = new ArrayList<ResultRow> ();
Set<Integer> selectedRows =
pagingScrollTable.getDataTable ().getSelectedRows ();
for (Integer i : selectedRows)
{
rows.add (pagingScrollTable.getRowValue (i));
}
return rows;
}
public List<String> getSelectedIds ()
{
List<String> ids = new ArrayList<String> ();
Set<Integer> selectedRows =
pagingScrollTable.getDataTable ().getSelectedRows ();
for (Integer i : selectedRows)
{
ids.add (pagingScrollTable.getRowValue (i).getId ());
}
return ids;
}
public List<String> getAllIds ()
{
List<String> ids = new ArrayList<String> ();
for (ResultRow r : resultRows)
{
ids.add (r.getId ());
}
return ids;
}
public List<ResultRow> getAllRows ()
{
List<ResultRow> rows = new ArrayList<ResultRow> ();
for (ResultRow r : resultRows)
{
rows.add (r);
}
return rows;
}
}
|
File |
Project |
Line |
org/kuali/student/core/person/dto/PersonTypeInfo.java |
KS Core API |
37 |
org/kuali/student/core/proposal/dto/ProposalDocRelationTypeInfo.java |
KS Core API |
43 |
public class LuDocRelationTypeInfo implements Serializable, Idable, HasAttributes {
private static final long serialVersionUID = 1L;
@XmlElement
private String name;
@XmlElement
private String desc;
@XmlElement
private Date effectiveDate;
@XmlElement
private Date expirationDate;
@XmlElement
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
private Map<String, String> attributes;
@XmlAttribute(name="key")
private String id;
/**
* Friendly name of the LU document relationship type
*/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
* Narrative description of the LU document relationship type
*/
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
/**
* Date and time that this LU document relationship type became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date.
*/
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
/**
* Date and time that this LU document relationship type expires. This is a similar concept to the expiration date on enumerated values. If specified, this should be greater than or equal to the effective date. If this field is not specified, then no expiration date has been currently defined and should automatically be considered greater than the effective date.
*/
public Date getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(Date expirationDate) {
this.expirationDate = expirationDate;
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* The page luDocumentTypeKey Structure does not exist.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
|
File |
Project |
Line |
org/kuali/student/core/document/dto/DocumentCategoryInfo.java |
KS Core API |
48 |
org/kuali/student/lum/lrc/dto/ScaleInfo.java |
KS LUM API |
44 |
public class ScaleInfo implements Serializable, Idable, HasAttributes {
private static final long serialVersionUID = 1L;
@XmlElement
private String name;
@XmlElement
private RichTextInfo desc;
@XmlElement
private Date effectiveDate;
@XmlElement
private Date expirationDate;
@XmlElement
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
private Map<String, String> attributes;
@XmlAttribute(name="key")
private String id;
/**
* Name of the scale.
*/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
* Description of the scale.
*/
public RichTextInfo getDesc() {
return desc;
}
public void setDesc(RichTextInfo desc) {
this.desc = desc;
}
/**
* Date and time that this scale became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date.
*/
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
/**
* Date and time that this scale expires. This is a similar concept to the expiration date on enumerated values. If specified, this should be greater than or equal to the effective date. If this field is not specified, then no expiration date has been currently defined and should automatically be considered greater than the effective date.
*/
public Date getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(Date expirationDate) {
this.expirationDate = expirationDate;
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Unique identifier for a scale.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
|
File |
Project |
Line |
org/kuali/student/core/dto/ReferenceTypeInfo.java |
KS Common Api |
41 |
org/kuali/student/lum/lrc/dto/CredentialTypeInfo.java |
KS LUM API |
43 |
public class PersonTypeInfo implements Serializable, Idable, HasAttributes {
private static final long serialVersionUID = 1L;
@XmlElement
private String name;
@XmlElement
private String desc;
@XmlElement
private Date effectiveDate;
@XmlElement
private Date expirationDate;
@XmlElement
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
private Map<String, String> attributes;
@XmlAttribute(name="key")
private String id;
/**
* Friendly name for a person type.
*/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
* Narrative description for a person type.
*/
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
/**
* Date and time that this person type became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date.
*/
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
/**
* Date and time that this person type expires. This is a similar concept to the expiration date on enumerated values. If specified, this should be greater than or equal to the effective date. If this field is not specified, then no expiration date has been currently defined and should automatically be considered greater than the effective date.
*/
public Date getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(Date expirationDate) {
this.expirationDate = expirationDate;
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Unique identifier for a person type.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
|
File |
Project |
Line |
org/kuali/student/common/ui/client/widgets/table/summary/SummaryTableSection.java |
KS Common UI |
174 |
org/kuali/student/common/ui/client/widgets/table/summary/SummaryTableSection.java |
KS Common UI |
234 |
MultiplicityFieldConfiguration field = fields.get(i).get(j);
String fieldKey = translatePath(field.getFieldPath(), path, number);
FieldDescriptorReadOnly fd1 = new FieldDescriptorReadOnly(fieldKey, field.getMessageKeyInfo(), field.getMetadata());
fd1.setOptional(field.isOptional());
if(field.getModelWidgetBinding() != null){
fd1.setWidgetBinding(field.getModelWidgetBinding());
}
FieldDescriptorReadOnly fd2 = new FieldDescriptorReadOnly(fieldKey, field.getMessageKeyInfo(), field.getMetadata());
fd2.setOptional(field.isOptional());
if(field.getModelWidgetBinding() != null){
fd2.setWidgetBinding(field.getModelWidgetBinding());
}
SummaryTableFieldRow row = new SummaryTableFieldRow(fd1, fd2);
row.setTemporaryRowFlag(true);
rowList.add(index, row);
index++;
fieldRowsCreated++;
}
}
if(config.getNestedConfig() != null){
MultiplicityConfiguration nestedConfig = config.getNestedConfig();
nestedConfig.getParentFd().getFieldKey().replace(config.getParentFd().getFieldKey(), path);
SummaryTableMultiplicityFieldRow mRow = new SummaryTableMultiplicityFieldRow(nestedConfig);
mRow.setTemporaryRowFlag(true);
rowList.add(index, mRow);
index++;
fieldRowsCreated++;
|
File |
Project |
Line |
org/kuali/student/lum/workflow/qualifierresolver/AbstractOrganizationServiceQualifierResolver.java |
KS LUM Rice |
62 |
org/kuali/student/lum/workflow/qualifierresolver/CocOrgTypeQualifierResolver.java |
KS LUM Rice |
149 |
}
/**
* Method to fetch the organization ids from the KEW document content XML
*
* @param context
* - RouteContext class that holds data about the current document's routing and data
* @return A list of organization ids that are listed in the XML (may have duplicates if duplicates are allowed by
* KS code)
*/
protected Set<String> getOrganizationIdsFromDocumentContent(RouteContext context) {
String baseXpathExpression = "/" + KEWConstants.DOCUMENT_CONTENT_ELEMENT + "/" + KEWConstants.APPLICATION_CONTENT_ELEMENT + "/" + DOCUMENT_CONTENT_XML_ROOT_ELEMENT_NAME;
String orgXpathExpression = "./" + getOrganizationIdDocumentContentFieldKey(context);
Document xmlContent = context.getDocumentContent().getDocument();
XPath xPath = XPathHelper.newXPath();
try {
NodeList baseElements = (NodeList) xPath.evaluate(baseXpathExpression, xmlContent, XPathConstants.NODESET);
if (LOG.isDebugEnabled()) {
LOG.debug("Found " + baseElements.getLength() + " baseElements to parse for AttributeSets using document XML:");
XmlHelper.printDocumentStructure(xmlContent);
}
Set<String> distinctiveOrganizationIds = new HashSet<String>();
for (int i = 0; i < baseElements.getLength(); i++) {
Node baseNode = baseElements.item(i);
NodeList attributes = (NodeList) xPath.evaluate(orgXpathExpression, baseNode, XPathConstants.NODESET);
for (int j = 0; j < attributes.getLength(); j++) {
Element attributeElement = (Element) attributes.item(j);
distinctiveOrganizationIds.add(attributeElement.getTextContent());
}
}
return distinctiveOrganizationIds;
} catch (XPathExpressionException e) {
throw new RuntimeException("Encountered an issue executing XPath.", e);
}
}
protected List<SearchResultRow> relatedOrgsFromOrgId(String orgId, String relationType, String relatedOrgType) {
|
File |
Project |
Line |
org/kuali/student/core/enumerationmanagement/service/impl/EnumerationManagementServiceImpl.java |
KS Core Impl |
189 |
org/kuali/student/lum/lo/service/impl/LearningObjectiveServiceImpl.java |
KS LUM Impl |
726 |
return dictionaryServiceDelegate.getObjectTypes();
}
/* (non-Javadoc)
* @see org.kuali.student.core.search.service.SearchService#getSearchCriteriaType(java.lang.String)
*/
@Override
public SearchCriteriaTypeInfo getSearchCriteriaType(
String searchCriteriaTypeKey) throws DoesNotExistException,
InvalidParameterException, MissingParameterException,
OperationFailedException {
return searchManager.getSearchCriteriaType(searchCriteriaTypeKey);
}
/* (non-Javadoc)
* @see org.kuali.student.core.search.service.SearchService#getSearchCriteriaTypes()
*/
@Override
public List<SearchCriteriaTypeInfo> getSearchCriteriaTypes()
throws OperationFailedException {
return searchManager.getSearchCriteriaTypes();
}
/* (non-Javadoc)
* @see org.kuali.student.core.search.service.SearchService#getSearchResultType(java.lang.String)
*/
@Override
public SearchResultTypeInfo getSearchResultType(String searchResultTypeKey)
throws DoesNotExistException, InvalidParameterException,
MissingParameterException, OperationFailedException {
checkForMissingParameter(searchResultTypeKey, "searchResultTypeKey");
return searchManager.getSearchResultType(searchResultTypeKey);
}
/* (non-Javadoc)
* @see org.kuali.student.core.search.service.SearchService#getSearchResultTypes()
*/
@Override
public List<SearchResultTypeInfo> getSearchResultTypes()
throws OperationFailedException {
return searchManager.getSearchResultTypes();
}
/* (non-Javadoc)
* @see org.kuali.student.core.search.service.SearchService#getSearchType(java.lang.String)
*/
@Override
public SearchTypeInfo getSearchType(String searchTypeKey)
throws DoesNotExistException, InvalidParameterException,
MissingParameterException, OperationFailedException {
checkForMissingParameter(searchTypeKey, "searchTypeKey");
return searchManager.getSearchType(searchTypeKey);
}
/* (non-Javadoc)
* @see org.kuali.student.core.search.service.SearchService#getSearchTypes()
*/
@Override
public List<SearchTypeInfo> getSearchTypes()
throws OperationFailedException {
return searchManager.getSearchTypes();
}
/* (non-Javadoc)
* @see org.kuali.student.core.search.service.SearchService#getSearchTypesByCriteria(java.lang.String)
*/
@Override
public List<SearchTypeInfo> getSearchTypesByCriteria(
String searchCriteriaTypeKey) throws DoesNotExistException,
InvalidParameterException, MissingParameterException,
OperationFailedException {
checkForMissingParameter(searchCriteriaTypeKey, "searchCriteriaTypeKey");
return searchManager.getSearchTypesByCriteria(searchCriteriaTypeKey);
}
/* (non-Javadoc)
* @see org.kuali.student.core.search.service.SearchService#getSearchTypesByResult(java.lang.String)
*/
@Override
public List<SearchTypeInfo> getSearchTypesByResult(
String searchResultTypeKey) throws DoesNotExistException,
InvalidParameterException, MissingParameterException,
OperationFailedException {
checkForMissingParameter(searchResultTypeKey, "searchResultTypeKey");
return searchManager.getSearchTypesByResult(searchResultTypeKey);
}
@Override
public LoLoRelationInfo createLoLoRelation(String loId, String relatedLoId,
|
File |
Project |
Line |
org/kuali/student/lum/lu/ui/course/client/configuration/CourseSummaryConfigurer.java |
KS LUM UI |
129 |
org/kuali/student/lum/lu/ui/tools/client/configuration/ClusetView.java |
KS LUM UI |
252 |
}
protected SummaryTableFieldRow getFieldRow(String fieldKey, MessageKeyInfo messageKey) {
return getFieldRow(fieldKey, messageKey, null, null, null, null, false);
}
protected SummaryTableFieldRow getFieldRow(String fieldKey, MessageKeyInfo messageKey, boolean optional) {
return getFieldRow(fieldKey, messageKey, null, null, null, null, optional);
}
protected SummaryTableFieldRow getFieldRow(String fieldKey, MessageKeyInfo messageKey, Widget widget, Widget widget2, String parentPath, ModelWidgetBinding<?> binding, boolean optional) {
QueryPath path = QueryPath.concat(parentPath, fieldKey);
Metadata meta = modelDefinition.getMetadata(path);
FieldDescriptorReadOnly fd = new FieldDescriptorReadOnly(path.toString(), messageKey, meta);
if (widget != null) {
fd.setFieldWidget(widget);
}
if(binding != null){
fd.setWidgetBinding(binding);
}
fd.setOptional(optional);
FieldDescriptorReadOnly fd2 = new FieldDescriptorReadOnly(path.toString(), messageKey, meta);
if (widget2 != null) {
fd2.setFieldWidget(widget2);
}
if(binding != null){
fd2.setWidgetBinding(binding);
}
fd2.setOptional(optional);
SummaryTableFieldRow fieldRow = new SummaryTableFieldRow(fd,fd2);
return fieldRow;
}
|
File |
Project |
Line |
org/kuali/student/core/atp/service/impl/AtpServiceImpl.java |
KS Core Impl |
546 |
org/kuali/student/lum/lo/service/impl/LearningObjectiveServiceImpl.java |
KS LUM Impl |
727 |
}
/* (non-Javadoc)
* @see org.kuali.student.core.search.service.SearchService#getSearchCriteriaType(java.lang.String)
*/
@Override
public SearchCriteriaTypeInfo getSearchCriteriaType(
String searchCriteriaTypeKey) throws DoesNotExistException,
InvalidParameterException, MissingParameterException,
OperationFailedException {
return searchManager.getSearchCriteriaType(searchCriteriaTypeKey);
}
/* (non-Javadoc)
* @see org.kuali.student.core.search.service.SearchService#getSearchCriteriaTypes()
*/
@Override
public List<SearchCriteriaTypeInfo> getSearchCriteriaTypes()
throws OperationFailedException {
return searchManager.getSearchCriteriaTypes();
}
/* (non-Javadoc)
* @see org.kuali.student.core.search.service.SearchService#getSearchResultType(java.lang.String)
*/
@Override
public SearchResultTypeInfo getSearchResultType(String searchResultTypeKey)
throws DoesNotExistException, InvalidParameterException,
MissingParameterException, OperationFailedException {
checkForMissingParameter(searchResultTypeKey, "searchResultTypeKey");
return searchManager.getSearchResultType(searchResultTypeKey);
}
/* (non-Javadoc)
* @see org.kuali.student.core.search.service.SearchService#getSearchResultTypes()
*/
@Override
public List<SearchResultTypeInfo> getSearchResultTypes()
throws OperationFailedException {
return searchManager.getSearchResultTypes();
}
/* (non-Javadoc)
* @see org.kuali.student.core.search.service.SearchService#getSearchType(java.lang.String)
*/
@Override
public SearchTypeInfo getSearchType(String searchTypeKey)
throws DoesNotExistException, InvalidParameterException,
MissingParameterException, OperationFailedException {
checkForMissingParameter(searchTypeKey, "searchTypeKey");
return searchManager.getSearchType(searchTypeKey);
}
/* (non-Javadoc)
* @see org.kuali.student.core.search.service.SearchService#getSearchTypes()
*/
@Override
public List<SearchTypeInfo> getSearchTypes()
throws OperationFailedException {
return searchManager.getSearchTypes();
}
/* (non-Javadoc)
* @see org.kuali.student.core.search.service.SearchService#getSearchTypesByCriteria(java.lang.String)
*/
@Override
public List<SearchTypeInfo> getSearchTypesByCriteria(
String searchCriteriaTypeKey) throws DoesNotExistException,
InvalidParameterException, MissingParameterException,
OperationFailedException {
checkForMissingParameter(searchCriteriaTypeKey, "searchCriteriaTypeKey");
return searchManager.getSearchTypesByCriteria(searchCriteriaTypeKey);
}
/* (non-Javadoc)
* @see org.kuali.student.core.search.service.SearchService#getSearchTypesByResult(java.lang.String)
*/
@Override
public List<SearchTypeInfo> getSearchTypesByResult(
String searchResultTypeKey) throws DoesNotExistException,
InvalidParameterException, MissingParameterException,
OperationFailedException {
checkForMissingParameter(searchResultTypeKey, "searchResultTypeKey");
return searchManager.getSearchTypesByResult(searchResultTypeKey);
}
@Override
public LoLoRelationInfo createLoLoRelation(String loId, String relatedLoId,
|
File |
Project |
Line |
org/kuali/student/core/organization/service/impl/OrganizationServiceImpl.java |
KS Core Impl |
786 |
org/kuali/student/lum/lrc/service/impl/LrcServiceImpl.java |
KS LUM Impl |
399 |
}
@Override
public SearchCriteriaTypeInfo getSearchCriteriaType(
String searchCriteriaTypeKey) throws DoesNotExistException,
InvalidParameterException, MissingParameterException,
OperationFailedException {
return searchManager.getSearchCriteriaType(searchCriteriaTypeKey);
}
@Override
public List<SearchCriteriaTypeInfo> getSearchCriteriaTypes()
throws OperationFailedException {
return searchManager.getSearchCriteriaTypes();
}
@Override
public SearchResultTypeInfo getSearchResultType(String searchResultTypeKey)
throws DoesNotExistException, InvalidParameterException,
MissingParameterException, OperationFailedException {
checkForMissingParameter(searchResultTypeKey, "searchResultTypeKey");
return searchManager.getSearchResultType(searchResultTypeKey);
}
@Override
public List<SearchResultTypeInfo> getSearchResultTypes()
throws OperationFailedException {
return searchManager.getSearchResultTypes();
}
@Override
public SearchTypeInfo getSearchType(String searchTypeKey)
throws DoesNotExistException, InvalidParameterException,
MissingParameterException, OperationFailedException {
checkForMissingParameter(searchTypeKey, "searchTypeKey");
return searchManager.getSearchType(searchTypeKey);
}
@Override
public List<SearchTypeInfo> getSearchTypes()
throws OperationFailedException {
return searchManager.getSearchTypes();
}
@Override
public List<SearchTypeInfo> getSearchTypesByCriteria(
String searchCriteriaTypeKey) throws DoesNotExistException,
InvalidParameterException, MissingParameterException,
OperationFailedException {
checkForMissingParameter(searchCriteriaTypeKey, "searchCriteriaTypeKey");
return searchManager.getSearchTypesByCriteria(searchCriteriaTypeKey);
}
@Override
public List<SearchTypeInfo> getSearchTypesByResult(
String searchResultTypeKey) throws DoesNotExistException,
InvalidParameterException, MissingParameterException,
OperationFailedException {
checkForMissingParameter(searchResultTypeKey, "searchResultTypeKey");
return searchManager.getSearchTypesByResult(searchResultTypeKey);
}
public SearchManager getSearchManager() {
|
File |
Project |
Line |
org/kuali/student/core/atp/service/impl/AtpServiceImpl.java |
KS Core Impl |
546 |
org/kuali/student/lum/lrc/service/impl/LrcServiceImpl.java |
KS LUM Impl |
399 |
}
/**************************************************************************
* SEARCH OPERATIONS *
**************************************************************************/
@Override
public SearchCriteriaTypeInfo getSearchCriteriaType(
String searchCriteriaTypeKey) throws DoesNotExistException,
InvalidParameterException, MissingParameterException,
OperationFailedException {
return searchManager.getSearchCriteriaType(searchCriteriaTypeKey);
}
@Override
public List<SearchCriteriaTypeInfo> getSearchCriteriaTypes()
throws OperationFailedException {
return searchManager.getSearchCriteriaTypes();
}
@Override
public SearchResultTypeInfo getSearchResultType(String searchResultTypeKey)
throws DoesNotExistException, InvalidParameterException,
MissingParameterException, OperationFailedException {
checkForMissingParameter(searchResultTypeKey, "searchResultTypeKey");
return searchManager.getSearchResultType(searchResultTypeKey);
}
@Override
public List<SearchResultTypeInfo> getSearchResultTypes()
throws OperationFailedException {
return searchManager.getSearchResultTypes();
}
@Override
public SearchTypeInfo getSearchType(String searchTypeKey)
throws DoesNotExistException, InvalidParameterException,
MissingParameterException, OperationFailedException {
checkForMissingParameter(searchTypeKey, "searchTypeKey");
return searchManager.getSearchType(searchTypeKey);
}
@Override
public List<SearchTypeInfo> getSearchTypes()
throws OperationFailedException {
return searchManager.getSearchTypes();
}
@Override
public List<SearchTypeInfo> getSearchTypesByCriteria(
String searchCriteriaTypeKey) throws DoesNotExistException,
InvalidParameterException, MissingParameterException,
OperationFailedException {
checkForMissingParameter(searchCriteriaTypeKey, "searchCriteriaTypeKey");
return searchManager.getSearchTypesByCriteria(searchCriteriaTypeKey);
}
@Override
public List<SearchTypeInfo> getSearchTypesByResult(
String searchResultTypeKey) throws DoesNotExistException,
InvalidParameterException, MissingParameterException,
OperationFailedException {
checkForMissingParameter(searchResultTypeKey, "searchResultTypeKey");
return searchManager.getSearchTypesByResult(searchResultTypeKey);
}
|
File |
Project |
Line |
org/kuali/student/core/organization/assembly/data/server/org/OrgHelper.java |
KS Core UI |
105 |
org/kuali/student/core/organization/assembly/data/server/org/OrgorgRelationHelper.java |
KS Core UI |
96 |
return data.get(Properties.TYPE.getKey());
}
public Date getEffectiveDate() {
if(data.get(Properties.EFFECTIVE_DATE.getKey()) instanceof String){
DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
try {
return df.parse((String) data.get(Properties.EFFECTIVE_DATE.getKey()));
} catch (Exception e) {
LOG.error(e);
}
}
return data.get(Properties.EFFECTIVE_DATE.getKey());
}
public void setEffectiveDate(Date value) {
data.set(Properties.EFFECTIVE_DATE.getKey(), value);
}
public Date getExpirationDate() {
if(data.get(Properties.EXPIRATION_DATE.getKey()) instanceof String){
DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
try {
return df.parse((String) data.get(Properties.EXPIRATION_DATE.getKey()));
} catch (Exception e) {
LOG.error(e);
}
}
return data.get(Properties.EXPIRATION_DATE.getKey());
}
public void setExpirationDate(Date value) {
data.set(Properties.EXPIRATION_DATE.getKey(), value);
}
|
File |
Project |
Line |
org/kuali/student/lum/lrc/dto/CredentialInfo.java |
KS LUM API |
71 |
org/kuali/student/lum/lrc/dto/CreditInfo.java |
KS LUM API |
71 |
private String id;
/**
* Name of this credit. This may have a direct relation to the combination of value and type fields.
*/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
* Description of this credit.
*/
public RichTextInfo getDesc() {
return desc;
}
public void setDesc(RichTextInfo desc) {
this.desc = desc;
}
/**
* Value of the credit. This may be numeric based on the type of credit (ex. academic credit hours could be an integer).
*/
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
/**
* Date and time that this credit value became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date.
*/
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
/**
* Date and time that this credit value expires. This is a similar concept to the expiration date on enumerated values. If specified, this should be greater than or equal to the effective date. If this field is not specified, then no expiration date has been currently defined and should automatically be considered greater than the effective date.
*/
public Date getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(Date expirationDate) {
this.expirationDate = expirationDate;
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Unique identifier for a credit type.
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
/**
* The page creditId Structure does not exist.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
|
File |
Project |
Line |
org/kuali/student/common/ui/client/widgets/list/impl/KSCheckBoxListImpl.java |
KS Common UI |
135 |
org/kuali/student/common/ui/client/widgets/list/impl/KSRadioButtonListImpl.java |
KS Common UI |
148 |
row++;
col = 0;
}
}
else if (maxCols <= 2){
//Row flow - increment row faster than column
int maxRows = (itemCount / maxCols) + (itemCount % 2);
for (String id:super.getListItems().getItemIds()){
currCount++;
row = (currCount % maxRows);
row = ((row == 0) ? maxRows:row) - 1;
layout.setWidget(row, col, createCheckboxWithLabel(id));
col += ((row + 1)/ maxRows) * 1;
}
} else {
//Column flow - increment column faster than row
for (String id:super.getListItems().getItemIds()){
currCount++;
col = currCount % maxCols;
col = ((col == 0) ? maxCols:col) - 1;
layout.setWidget(row, col, createCheckboxWithLabel(id));
row += ((col + 1 )/ maxCols) * 1;
}
}
setInitialized(true);
}
@Override
public <T extends Idable> void setListItems(ListItems listItems) {
if(listItems instanceof ModelListItems){
Callback<T> redrawCallback = new Callback<T>(){
@Override
public void exec(T result){
|
File |
Project |
Line |
org/kuali/student/lum/program/client/core/view/CoreViewController.java |
KS LUM Program |
55 |
org/kuali/student/lum/program/client/credential/view/CredentialViewController.java |
KS LUM Program |
55 |
HistoryManager.navigate(AppLocations.Locations.EDIT_BACC_PROGRAM.getLocation(), viewContext);
}
}
});
eventBus.addHandler(ProgramViewEvent.TYPE, new ProgramViewEvent.Handler() {
@Override
public void onEvent(ProgramViewEvent event) {
actionBox.setSelectedIndex(0);
}
});
eventBus.addHandler(ModelLoadedEvent.TYPE, new ModelLoadedEvent.Handler() {
@Override
public void onEvent(ModelLoadedEvent event) {
resetActionList();
}
});
}
@Override
protected void configureView() {
super.configureView();
addContentWidget(actionBox);
initialized = true;
}
protected void resetActionList() {
//Only allow modify with version option for an active course that id also the latest version
ProgramStatus status = ProgramStatus.of(programModel.<String>get(ProgramConstants.STATE));
String versionIndId = programModel.get(ProgramConstants.VERSION_IND_ID);
Long sequenceNumber = programModel.get(ProgramConstants.VERSION_SEQUENCE_NUMBER);
actionBox.clear();
if (status == ProgramStatus.ACTIVE) {
programRemoteService.isLatestVersion(versionIndId, sequenceNumber, new KSAsyncCallback<Boolean>() {
public void onSuccess(Boolean isLatest) {
actionBox.setList(ActionType.getValues(isLatest));
}
});
} else {
actionBox.setList(ActionType.getValues(false));
}
}
}
|
File |
Project |
Line |
org/kuali/student/lum/program/dto/CoreProgramInfo.java |
KS LUM API |
278 |
org/kuali/student/lum/program/dto/CredentialProgramInfo.java |
KS LUM API |
326 |
}
/**
* The first academic time period that this credential program would be effective. This may not reflect the first "real" academic time period for this program.
*/
public String getStartTerm() {
return startTerm;
}
public void setStartTerm(String startTerm) {
this.startTerm = startTerm;
}
/**
* The last academic time period that this credential program would be effective.
*/
public String getEndTerm() {
return endTerm;
}
public void setEndTerm(String endTerm) {
this.endTerm = endTerm;
}
/**
* The last academic time period that this credential program would be available for enrollment. This may not reflect the last "real" academic time period for this program.
*/
public String getEndProgramEntryTerm() {
return endProgramEntryTerm;
}
public void setEndProgramEntryTerm(String endProgramEntryTerm) {
this.endProgramEntryTerm = endProgramEntryTerm;
}
/**
* Divisions responsible to make changes to the credential program
*/
public List<String> getDivisionsContentOwner() {
return divisionsContentOwner;
}
public void setDivisionsContentOwner(List<String> divisionsContentOwner) {
this.divisionsContentOwner = divisionsContentOwner;
}
/**
* Divisions responsible for student exceptions to the credential program.
*/
public List<String> getDivisionsStudentOversight() {
return divisionsStudentOversight;
}
public void setDivisionsStudentOversight(List<String> divisionsStudentOversight) {
this.divisionsStudentOversight = divisionsStudentOversight;
}
/*
* Unit responsible to make changes to the credential program
*/
public List<String> getUnitsContentOwner() {
return unitsContentOwner;
}
public void setUnitsContentOwner(List<String> unitsContentOwner) {
this.unitsContentOwner = unitsContentOwner;
}
/**
* Unit responsible for student exceptions to the credential program.
*/
public List<String> getUnitsStudentOversight() {
return unitsStudentOversight;
}
public void setUnitsStudentOversight(List<String> unitsStudentOversight) {
this.unitsStudentOversight = unitsStudentOversight;
}
/**
* Narrative description of the Credential program.
*/
public RichTextInfo getDescr() {
return descr;
}
public void setDescr(RichTextInfo descr) {
this.descr = descr;
}
/**
* Learning Objectives associated with this credential program.
*/
public List<LoDisplayInfo> getLearningObjectives() {
|
File |
Project |
Line |
org/kuali/student/common/ui/client/widgets/search/TempSearchBackedTable.java |
KS Common UI |
162 |
org/kuali/student/core/organization/ui/client/mvc/view/PositionTable.java |
KS Core UI |
143 |
pagingScrollTable.fillWidth();
}
public List<ResultRow> getSelectedRows(){
List<ResultRow> rows = new ArrayList<ResultRow>();
Set<Integer> selectedRows = pagingScrollTable.getDataTable().getSelectedRows();
for(Integer i: selectedRows){
rows.add(pagingScrollTable.getRowValue(i));
}
return rows;
}
public List<String> getSelectedIds(){
List<String> ids = new ArrayList<String>();
Set<Integer> selectedRows = pagingScrollTable.getDataTable().getSelectedRows();
for(Integer i: selectedRows){
ids.add(pagingScrollTable.getRowValue(i).getId());
}
return ids;
}
public List<String> getAllIds(){
List<String> ids = new ArrayList<String>();
for(ResultRow r: resultRows){
ids.add(r.getId());
}
return ids;
}
public List<ResultRow> getAllRows(){
List<ResultRow> rows = new ArrayList<ResultRow>();
for(ResultRow r: resultRows){
rows.add(r);
}
return rows;
}
|
File |
Project |
Line |
org/kuali/student/core/dictionary/service/impl/old/DictionaryBeanDefinitionParser.java |
KS Common Impl |
228 |
org/kuali/student/core/search/service/impl/SearchBeanDefinitionParser.java |
KS Common Impl |
202 |
}
//This builds up a list of the child nodes so that the spring parseListElement can be used
//it also translates <fooRef> elements into straight spring <ref> elements
private Element getChildList(Element element, String localName) {
try{
//Create a new document to contain our list of elements
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = dbf.newDocumentBuilder();
Document doc = builder.newDocument();
Element root = doc.createElement("listRoot");
for(int i = 0;i<element.getChildNodes().getLength();i++){
Node node = element.getChildNodes().item(i);
if(Node.ELEMENT_NODE == node.getNodeType() && localName.equals(node.getLocalName())){
//Copy the node from the spring config to our list
Node copied = doc.importNode(node, true);
root.appendChild(copied);
}
if(Node.ELEMENT_NODE == node.getNodeType() && (localName+"Ref").equals(node.getLocalName())){
//Create a new spring ref element and copy the bean attribute
Element ref = doc.createElement("ref");
ref.setAttribute("bean", ((Element)node).getAttribute("bean"));
root.appendChild(ref);
}
}
return root;
}catch(Exception e){
logger.error("Exception occured: ", e);
}
return null;
}
private Element getFirstChildElement(Node node) {
|
File |
Project |
Line |
org/kuali/student/lum/lu/ui/course/client/configuration/CourseSummaryConfigurer.java |
KS LUM UI |
431 |
org/kuali/student/lum/lu/ui/course/client/configuration/CourseSummaryConfigurer.java |
KS LUM UI |
696 |
courseBriefSection.addShowRowCallback(new ShowRowConditionCallback(){
@Override
public void processShowConditions(SummaryTableFieldRow row,
DataModel column1, DataModel column2) {
if(row.getFieldDescriptor1() != null &&
row.getFieldDescriptor1().getFieldKey().contains(CREDIT_OPTIONS) &&
row.getFieldDescriptor1().getFieldKey().contains("resultValues")){
String type = row.getFieldDescriptor1().getFieldKey().replace("resultValues", CreditCourseConstants.TYPE);
Object data1 = null;
Object data2 = null;
if(column1 != null){
data1 = column1.get(type);
}
if(column2 != null){
data2 = column2.get(type);
}
if(data1 != null && data1 instanceof String){
if(!((String)data1).equals("kuali.resultComponentType.credit.degree.multiple")){
row.setShown(false);
}
}
else if(data2 != null && data2 instanceof String){
if(!((String)data2).equals("kuali.resultComponentType.credit.degree.multiple")){
row.setShown(false);
}
}
}
}
});
block.addSummaryMultiplicity(outcomesConfig);
|
File |
Project |
Line |
org/kuali/student/lum/program/client/core/edit/CoreLeaningObjectivesEditConfiguration.java |
KS LUM Program |
23 |
org/kuali/student/lum/program/client/major/edit/LearningObjectivesEditConfiguration.java |
KS LUM Program |
23 |
public LearningObjectivesEditConfiguration() {
rootSection = new VerticalSectionView(ProgramSections.LEARNING_OBJECTIVES_EDIT, ProgramProperties.get().program_menu_sections_learningObjectives(), ProgramConstants.PROGRAM_MODEL_ID);
}
protected void buildLayout() {
VerticalSection section = new VerticalSection();
QueryPath path = QueryPath.concat("", ProgramConstants.LEARNING_OBJECTIVES, "*", "loInfo", "desc");
Metadata meta = configurer.getModelDefinition().getMetadata(path);
FieldDescriptor fd = addField(section, ProgramConstants.LEARNING_OBJECTIVES,
null,
new LOBuilder("type", "state", "course", "kuali.loRepository.key.singleUse", meta),
"");
fd.setWidgetBinding(LOBuilderBinding.INSTANCE);
section.addStyleName("KS-LUM-Section-Divider");
rootSection.addSection(section);
}
public FieldDescriptor addField(Section section, String fieldKey, MessageKeyInfo messageKey, Widget widget, String parentPath) {
QueryPath path = QueryPath.concat(parentPath, fieldKey);
Metadata meta = configurer.getModelDefinition().getMetadata(path);
FieldDescriptor fd = new FieldDescriptor(path.toString(), messageKey, meta);
if (widget != null) {
fd.setFieldWidget(widget);
}
section.addField(fd);
return fd;
}
}
|
File |
Project |
Line |
org/kuali/student/common/ui/client/widgets/menus/impl/KSBasicMenuImpl.java |
KS Common UI |
124 |
org/kuali/student/common/ui/client/widgets/menus/impl/KSListMenuImpl.java |
KS Common UI |
136 |
private class EventHandler implements ClickHandler, MouseOverHandler, MouseOutHandler{
@Override
public void onClick(ClickEvent event) {
Widget sender = (Widget) event.getSource();
if(sender instanceof MenuItemPanel){
selectMenuItemPanel((MenuItemPanel)sender);
sender.removeStyleName("KS-Basic-Menu-Item-Panel-Hover");
((MenuItemPanel) sender).getItemLabel().removeStyleName("KS-Basic-Menu-Item-Label-Hover");
}
}
@Override
public void onMouseOver(MouseOverEvent event) {
Widget sender = (Widget) event.getSource();
if(sender instanceof MenuItemPanel){
if(((MenuItemPanel) sender).isSelectable() && !((MenuItemPanel) sender).isSelected()){
sender.addStyleName("KS-Basic-Menu-Item-Panel-Hover");
((MenuItemPanel) sender).getItemLabel().addStyleName("KS-Basic-Menu-Item-Label-Hover");
}
}
}
@Override
public void onMouseOut(MouseOutEvent event) {
Widget sender = (Widget) event.getSource();
if(sender instanceof MenuItemPanel){
if(((MenuItemPanel) sender).isSelectable()){
sender.removeStyleName("KS-Basic-Menu-Item-Panel-Hover");
((MenuItemPanel) sender).getItemLabel().removeStyleName("KS-Basic-Menu-Item-Label-Hover");
}
}
}
|
File |
Project |
Line |
org/kuali/student/lum/lo/dto/LoInfo.java |
KS LUM API |
112 |
org/kuali/student/lum/lu/dto/CluLoRelationInfo.java |
KS LUM API |
97 |
}
/**
* Date and time that this LU publication type became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date.
*/
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
/**
* Date and time that this LU publication type expires. This is a similar concept to the expiration date on enumerated values. If specified, this should be greater than or equal to the effective date. If this field is not specified, then no expiration date has been currently defined and should automatically be considered greater than the effective date.
*/
public Date getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(Date expirationDate) {
this.expirationDate = expirationDate;
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
/**
* Type of publication for which this information should be used.
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
/**
* Current state of the information for this publication type. This value should be constrained to those within the cluPublishingState enumeration. In general, an "active" record for a type indicates that the clu should be published within that media, though that may be further constrained by the cycle information included.
*/
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
/**
* Identifier for the publishing information. This is set by the service to be able to determine changes and alterations to the structure as well as provides a handle for searches. This structure is not currently accessible through unique operations, and it is strongly recommended that no external references to this particular identifier be maintained.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Override
public String toString() {
return "CluPublicationInfo[id=" + id + ", cluId=" + cluId + ", type=" + type + "]";
|
File |
Project |
Line |
org/kuali/student/common/ui/client/widgets/menus/impl/KSBasicMenuImpl.java |
KS Common UI |
53 |
org/kuali/student/common/ui/client/widgets/menus/impl/KSListMenuImpl.java |
KS Common UI |
54 |
private EventHandler handler = new EventHandler();
private MenuEventHandler menuHandler = new MenuEventHandler(){
@Override
public void onChange(MenuChangeEvent e) {
KSMenuItemData i = (KSMenuItemData) e.getSource();
MenuItemPanel itemToChange = null;
for(MenuItemPanel p: menuItems){
if(i.equals(p.getItem())){
itemToChange = p;
}
}
if(itemToChange != null){
if(!(i.getLabel().equals(itemToChange.getItemLabel().getText()))){
itemToChange.getItemLabel().setText(i.getLabel());
}
else if(i.getShownIcon() != null){
itemToChange.addImage(i.getShownIcon());
}
}
}
@Override
public void onSelect(MenuSelectEvent e) {
KSMenuItemData i = (KSMenuItemData) e.getSource();
MenuItemPanel itemToSelect = null;
for(MenuItemPanel p: menuItems){
if(i.equals(p.getItem())){
itemToSelect = p;
}
}
if(itemToSelect != null){
|
File |
Project |
Line |
org/kuali/student/core/assembly/old/BaseAssembler.java |
KS Common Impl |
70 |
org/kuali/student/core/assembly/transform/AuthorizationFilter.java |
KS Common Impl |
203 |
AttributeSet qualification = getQualification(idType, id, docType);
AttributeSet permissionDetails = new AttributeSet("dtoName", dtoName);
List<KimPermissionInfo> permissions = permissionService.getAuthorizedPermissionsByTemplateName(principalId,
PermissionType.FIELD_ACCESS.getPermissionNamespace(), PermissionType.FIELD_ACCESS.getPermissionTemplateName(), permissionDetails, qualification);
Map<String, String> permMap = new HashMap<String, String>();
if (permissions != null) {
for (KimPermissionInfo permission : permissions) {
String dtoFieldKey = permission.getDetails().get("dtoFieldKey");
String fieldAccessLevel = permission.getDetails().get("fieldAccessLevel");
permMap.put(dtoFieldKey, fieldAccessLevel);
}
}
return permMap;
} catch (Exception e) {
LOG.warn("Error calling permission service.", e);
}
return null;
}
/**
* Sets the metadata node and all it's children to readOnly (i.e. canEdit=false).
*
* @param metadata
* @param readOnly
*/
private void setReadOnly(Metadata metadata, boolean readOnly) {
metadata.setCanEdit(!readOnly);
Map<String, Metadata> childProperties = metadata.getProperties();
if (childProperties != null && childProperties.size() > 0) {
for (Metadata child : childProperties.values()) {
setReadOnly(child, readOnly);
}
}
}
|
File |
Project |
Line |
org/kuali/student/lum/program/client/core/edit/CoreManagingBodiesEditConfiguration.java |
KS LUM Program |
17 |
org/kuali/student/lum/program/client/credential/edit/CredentialManagingBodiesEditConfiguration.java |
KS LUM Program |
17 |
public CredentialManagingBodiesEditConfiguration() {
rootSection = new VerticalSectionView(ProgramSections.MANAGE_BODIES_EDIT, ProgramProperties.get().program_menu_sections_managingBodies(), ProgramConstants.PROGRAM_MODEL_ID);
}
@Override
protected void buildLayout() {
HorizontalSection horizontalSection = new HorizontalSection();
horizontalSection.addSection(createLeftSection());
horizontalSection.addSection(createRightSection());
rootSection.addSection(horizontalSection);
}
private VerticalSection createLeftSection() {
VerticalSection section = new VerticalSection();
configurer.addField(section, ProgramConstants.CURRICULUM_OVERSIGHT_UNIT, new MessageKeyInfo(ProgramProperties.get().managingBodies_curriculumOversightUnit()));
configurer.addField(section, ProgramConstants.STUDENT_OVERSIGHT_UNIT, new MessageKeyInfo(ProgramProperties.get().managingBodies_studentOversightUnit()));
return section;
}
private VerticalSection createRightSection() {
VerticalSection section = new VerticalSection();
configurer.addField(section, ProgramConstants.CURRICULUM_OVERSIGHT_DIVISION, new MessageKeyInfo(ProgramProperties.get().managingBodies_curriculumOversightDivision()));
configurer.addField(section, ProgramConstants.STUDENT_OVERSIGHT_DIVISION, new MessageKeyInfo(ProgramProperties.get().managingBodies_studentOversightDivision()));
return section;
}
}
|
File |
Project |
Line |
org/kuali/student/lum/lo/dto/LoCategoryInfo.java |
KS LUM API |
112 |
org/kuali/student/lum/lrc/dto/ResultComponentInfo.java |
KS LUM API |
117 |
}
/**
* Date and time that this LUI to LUI relationship type became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date.
*/
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
/**
* Date and time that this LUI to LUI relationship type expires. This is a similar concept to the expiration date on enumerated values. If specified, this should be greater than or equal to the effective date. If this field is not specified, then no expiration date has been currently defined and should automatically be considered greater than the effective date.
*/
public Date getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(Date expirationDate) {
this.expirationDate = expirationDate;
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
/**
* Unique identifier for the LU to LU relation type.
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
/**
* The current status of the LUI to LUI relationship. The values for this field are constrained to those in the luLuRelationState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
*/
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
/**
* Unique identifier for a LUI to LUI relation. This is optional, due to the identifier being set at the time of creation. Once the relation has been created, this should be seen as required.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
|
File |
Project |
Line |
org/kuali/student/core/proposal/dto/ProposalInfo.java |
KS Core API |
181 |
org/kuali/student/lum/course/dto/CourseInfo.java |
KS LUM API |
546 |
}
/**
* Date and time the Course became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date.
*/
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
/**
* Date and time that this Course expires. This is a similar concept to the expiration date on enumerated values. If specified, this should be greater than or equal to the effective date. If this field is not specified, then no expiration date has been currently defined and should automatically be considered greater than the effective date.
*/
public Date getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(Date expirationDate) {
this.expirationDate = expirationDate;
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
/**
* Unique identifier for a learning unit type. Once set at create time, this field may not be updated.
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
/**
* The current status of the course. The values for this field are constrained to those in the luState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value. This field may not be updated through updating this structure and must instead be updated through a dedicated operation.
*/
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
/**
* Unique identifier for a Course. This is optional, due to the identifier being set at the time of creation. Once the Course has been created, this should be seen as required.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public VersionInfo getVersionInfo() {
|
File |
Project |
Line |
org/kuali/student/core/comment/dto/CommentInfo.java |
KS Core API |
112 |
org/kuali/student/core/document/dto/DocumentInfo.java |
KS Core API |
129 |
}
/**
* Date and time that this learning objective category became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date.
*/
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
/**
* Date and time that this learning objective category expires. This is a similar concept to the expiration date on enumerated values. If specified, this should be greater than or equal to the effective date. If this field is not specified, then no expiration date has been currently defined and should automatically be considered greater than the effective date.
*/
public Date getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(Date expirationDate) {
this.expirationDate = expirationDate;
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
/**
* Unique identifier for a learning objective category type.
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
/**
* The current status of the learning objective category. The values for this field are constrained to those in the loCategoryState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
*/
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
/**
* Unique identifier for a learning objective category record. This is optional, due to the identifier being set at the time of creation. Once the learning objective category has been created, this should be seen as required.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
|
File |
Project |
Line |
org/kuali/student/core/atp/dto/AtpInfo.java |
KS Core API |
92 |
org/kuali/student/core/atp/dto/DateRangeInfo.java |
KS Core API |
106 |
}
/**
* Start date and time for the date range. This must be less than or equal to the end date of this range.
*/
public Date getStartDate() {
return startDate;
}
public void setStartDate(Date startDate) {
this.startDate = startDate;
}
/**
* End date and time for the date range. This must be greater than or equal to the start date of this range.
*/
public Date getEndDate() {
return endDate;
}
public void setEndDate(Date endDate) {
this.endDate = endDate;
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String,String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String,String>();
}
return attributes;
}
public void setAttributes(Map<String,String> attributes) {
this.attributes = attributes;
}
/**
* Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
/**
* Unique identifier for a date range type.
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
/**
* The current status of the date range. The values for this field are constrained to those in the dateRangeState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
*/
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
/**
* Unique identifier for a date range.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
|
File |
Project |
Line |
org/kuali/student/lum/bo/options/RemoteOrganizationValuesFinder.java |
KS Admin |
25 |
org/kuali/rice/student/lookup/keyvalues/AllOrgsValuesFinder.java |
KS LUM Rice |
29 |
public List<KeyLabelPair> getKeyValues() {
List<KeyLabelPair> departments = new ArrayList<KeyLabelPair>();
SearchRequest searchRequest = new SearchRequest();
searchRequest.setSearchKey("org.search.generic");
try {
for (SearchResultRow result : getOrganizationService().search(searchRequest).getRows()) {
String orgId = "";
String orgShortName = "";
String orgOptionalLongName = "";
String orgType = "";
for (SearchResultCell resultCell : result.getCells()) {
if ("org.resultColumn.orgId".equals(resultCell.getKey())) {
orgId = resultCell.getValue();
} else if ("org.resultColumn.orgShortName".equals(resultCell.getKey())) {
orgShortName = resultCell.getValue();
} else if ("org.resultColumn.orgOptionalLongName".equals(resultCell.getKey())) {
orgOptionalLongName = resultCell.getValue();
} else if ("org.resultColumn.orgType".equals(resultCell.getKey())) {
orgType = resultCell.getValue();
}
}
departments.add(buildKeyLabelPair(orgId, orgShortName, orgOptionalLongName, orgType));
}
|
File |
Project |
Line |
org/kuali/student/core/comment/dto/CommentInfo.java |
KS Core API |
112 |
org/kuali/student/lum/lu/dto/CluPublicationInfo.java |
KS LUM API |
130 |
}
/**
* Date and time that this learning objective became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date.
*/
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
/**
* Date and time that this learning objective expires. This is a similar concept to the expiration date on enumerated values. If specified, this should be greater than or equal to the effective date. If this field is not specified, then no expiration date has been currently defined and should automatically be considered greater than the effective date.
*/
public Date getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(Date expirationDate) {
this.expirationDate = expirationDate;
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
/**
* Unique identifier for a learning objective type.
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
/**
* The current status of the learning objective. The values for this field are constrained to those in the loState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
*/
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
/**
* Unique identifier for a learning objective record. This is optional, due to the identifier being set at the time of creation. Once the learning objective has been created, this should be seen as required.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
|
File |
Project |
Line |
org/kuali/student/common/ui/client/widgets/containers/KSWrapper.java |
KS Common UI |
169 |
org/kuali/student/lum/lu/ui/main/client/widgets/ApplicationHeader.java |
KS LUM UI |
166 |
content.addStyleName("KS-Wrapper-Content");
}
private void createHelpInfo(){
versionAnchor.addClickHandler(new ClickHandler(){
public void onClick(ClickEvent event) {
final PopupPanel helpPopup = new PopupPanel(true);
helpPopup.setWidget(new HTML("<br><h3> " + appVersion + " <h3>"));
helpPopup.setPopupPositionAndShow(new PopupPanel.PositionCallback() {
public void setPosition(int offsetWidth, int offsetHeight) {
int left = (Window.getClientWidth() - offsetWidth);
int top = 0;
helpPopup.setPopupPosition(left, top);
}
});
}
});
}
private void createUserDropDown() {
List<KSMenuItemData> items = new ArrayList<KSMenuItemData>();
items.add(new KSMenuItemData(getMessage("wrapperPanelLogout"),new WrapperNavigationHandler("j_spring_security_logout")));
}
private void createNavDropDown() {
navDropDown.setImageLocation(MenuImageLocation.LEFT);
List<KSMenuItemData> items = new ArrayList<KSMenuItemData>();
items.add(new KSMenuItemData(getMessage("wrapperPanelTitleHome"),Theme.INSTANCE.getCommonImages().getApplicationIcon(),
|
File |
Project |
Line |
org/kuali/student/core/assembly/data/LookupMetadata.java |
KS Common Impl |
43 |
org/kuali/student/core/assembly/data/UILookupData.java |
KS Common Impl |
33 |
private String resultDisplayKey;
private String resultSortKey;
// how a search criteria will be used. ADVANCED_CUSTOM is shown on both advanced
// and custom screens of the advanced search lightbox
//TODO is DEFAULT needed? it has 0 references
public enum Usage {
DEFAULT, ADVANCED, CUSTOM, ADVANCED_CUSTOM
}
private Usage usage;
//TODO BUTTON has 0 references. Is it needed?
public enum Widget {
NO_WIDGET, SUGGEST_BOX, ADVANCED_LIGHTBOX, DROP_DOWN, BUTTON, CHECKBOX_LIST, RADIO
}
private Widget widget;
public enum WidgetOption {
ADVANCED_LIGHTBOX_PREVIEW_MODE, ADVANCED_LIGHTBOX_ACTION_LABEL
}
private Map<WidgetOption, String> widgetOptions;
public Map<WidgetOption, String> getWidgetOptions() {
return widgetOptions;
}
public void setWidgetOptions(Map<WidgetOption, String> widgetOptions) {
this.widgetOptions = widgetOptions;
}
public String getWidgetOptionValue(WidgetOption widgetOption) {
if (widgetOptions == null) return null;
return widgetOptions.get(widgetOption);
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
// public List<LookupParamMetadata> getParams() {
// if (params == null) {
// params = new ArrayList<LookupParamMetadata>();
// }
// return params;
// }
//
// public void setParams(List<LookupParamMetadata> params) {
// this.params = params;
// }
public List<LookupResultMetadata> getResults() {
|
File |
Project |
Line |
org/kuali/student/common/ui/client/widgets/search/KSPicker.java |
KS Common UI |
624 |
org/kuali/student/common/ui/client/widgets/search/SearchPanel.java |
KS Common UI |
300 |
SearchParam param = new SearchParam();
param.setKey(metaParam.getKey());
if(metaParam.getDefaultValueList()==null){
param.setValue(metaParam.getDefaultValueString());
}else{
param.setValue(metaParam.getDefaultValueList());
}
params.add(param);
}
else if(metaParam.getWriteAccess() == WriteAccess.WHEN_NULL){
if((metaParam.getDefaultValueString() != null && !metaParam.getDefaultValueString().isEmpty())||
(metaParam.getDefaultValueList() != null && !metaParam.getDefaultValueList().isEmpty())){
SearchParam param = new SearchParam();
param.setKey(metaParam.getKey());
if(metaParam.getDefaultValueList()==null){
param.setValue(metaParam.getDefaultValueString());
}else{
param.setValue(metaParam.getDefaultValueList());
}
params.add(param);
}
}
}
sr.setParams(params);
|
File |
Project |
Line |
org/kuali/student/core/organization/ui/client/mvc/view/OrgTree.java |
KS Core UI |
172 |
org/kuali/student/core/organization/ui/client/mvc/view/OrgTree.java |
KS Core UI |
246 |
orgController.fireApplicationEvent(new ModifyActionEvent(id));
}
};
label.addClickHandler(handlerModify);
ClickHandler memberHandler = new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
if(!showMembers){
((KSLabel)event.getSource()).getElement().setInnerText("Hide Members " + "["+ positions + "]");
w.add(memberTable);
memberTable.fetchMemberTable();
memberTable.setVisible(true);
showMembers = true;
}
else{
((KSLabel)event.getSource()).getElement().setInnerText("Members " + "["+ positions + "]");
memberTable.setVisible(false);
showMembers = false;
}
}
};
final KSLabel members = new KSLabel("Members " + "["+ positions + "]");
members.addStyleName("action");
members.addClickHandler(memberHandler);
members.getElement().setAttribute("value", "");
w.add(label);
w.add(members);
w.addStyleName("KS-Org-Tree-Section");
addStyleName("KS-Org-Widget");
}
}
|
File |
Project |
Line |
org/kuali/rice/student/core/config/spring/RiceConfigPropertyPlaceholderConfigurer.java |
KS Common Util |
149 |
org/kuali/student/common/util/ModPropertyPlaceholderConfigurer.java |
KS Common Util |
131 |
ModBeanDefinitionVisitor visitor = new ModBeanDefinitionVisitor(valueResolver);
String[] beanNames = beanFactoryToProcess.getBeanDefinitionNames();
for (int i = 0; i < beanNames.length; i++) {
// Check that we're not parsing our own bean definition,
// to avoid failing on unresolvable placeholders in properties file locations.
if (!(beanNames[i].equals(this.beanName) && beanFactoryToProcess.equals(this.beanFactory))) {
BeanDefinition bd = beanFactoryToProcess.getBeanDefinition(beanNames[i]);
try {
visitor.visitBeanDefinition(bd);
}
catch (BeanDefinitionStoreException ex) {
throw new BeanDefinitionStoreException(bd.getResourceDescription(), beanNames[i], ex.getMessage());
}
}
}
// New in Spring 2.5: resolve placeholders in alias target names and aliases as well.
beanFactoryToProcess.resolveAliases(valueResolver);
}
/**
* BeanDefinitionVisitor that resolves placeholders in String values,
* delegating to the <code>parseStringValue</code> method of the
* containing class.
*/
public class PlaceholderResolvingStringValueResolver implements StringValueResolver {
private final Properties props;
public PlaceholderResolvingStringValueResolver(Properties props) {
this.props = props;
}
public String resolveStringValue(String strVal) throws BeansException {
String value = parseStringValue(strVal, this.props, new HashSet<String>());
return (value.equals(nullValue) ? null : value);
}
public Properties resolvePropertyValue(String strVal){
|
File |
Project |
Line |
org/kuali/student/core/assembly/old/IdTranslatorAssemblerFilter.java |
KS Common Impl |
44 |
org/kuali/student/lum/lu/assembly/CluSetManagementIdTranslatorAssemblerFilter.java |
KS LUM UI |
35 |
public CluSetManagementIdTranslatorAssemblerFilter(IdTranslator idTranslator) {
this.idTranslator = idTranslator;
}
@Override
public void doGetFilter(FilterParamWrapper<String> id, FilterParamWrapper<Data> response, GetFilterChain<Data, Void> chain) throws AssemblyException {
chain.doGetFilter(id, response);
Data data = response.getValue();
if (data != null) {
translateIds(data, chain);
}
}
@Override
public void doSaveFilter(FilterParamWrapper<Data> request, FilterParamWrapper<SaveResult<Data>> response, SaveFilterChain<Data, Void> chain) throws AssemblyException {
chain.doSaveFilter(request, response);
SaveResult<Data> saveResult = response.getValue();
Data data = saveResult != null && saveResult.getValue() != null ? saveResult.getValue() : null;
if(data != null) {
translateIds(data, chain);
}
}
private void translateIds(Data data, AssemblerManagerAccessable<Data, Void> chain) throws AssemblyException {
|
File |
Project |
Line |
org/kuali/student/common/validator/BeanConstraintDataProvider.java |
KS Common Impl |
71 |
org/kuali/student/common/validator/old/BeanConstraintDataProvider.java |
KS Common Impl |
57 |
}
}
@Override
public String getObjectId() {
return (dataMap.containsKey("id") && null != dataMap.get("id")) ? dataMap.get("id").toString() : null;
}
@Override
public Object getValue(String fieldKey) {
return dataMap.get(fieldKey);
}
@Override
public Boolean hasField(String fieldKey) {
return dataMap.containsKey(fieldKey);
}
private Map<String, PropertyDescriptor> getBeanInfo(Class<?> clazz) {
Map<String, PropertyDescriptor> properties = new HashMap<String, PropertyDescriptor>();
BeanInfo beanInfo = null;
try {
beanInfo = Introspector.getBeanInfo(clazz);
} catch (IntrospectionException e) {
throw new RuntimeException(e);
}
PropertyDescriptor[] propertyDescriptors = beanInfo
.getPropertyDescriptors();
for (PropertyDescriptor propertyDescriptor : propertyDescriptors) {
properties.put(propertyDescriptor.getName(), propertyDescriptor);
}
return properties;
}
}
|
File |
Project |
Line |
org/kuali/student/lum/lu/dto/CluInfo.java |
KS LUM API |
445 |
org/kuali/student/lum/program/dto/CoreProgramInfo.java |
KS LUM API |
146 |
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
public VersionInfo getVersionInfo() {
return versionInfo;
}
public void setVersionInfo(VersionInfo versionInfo) {
this.versionInfo = versionInfo;
}
/**
* Unique identifier for a learning unit type. Once set at create time, this field may not be updated.
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
/**
* The current status of the credential program. The values for this field are constrained to those in the luState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
*/
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
/**
* Unique identifier for an Core Program Requirement. This is optional, due to the identifier being set at the time of creation. Once the Program has been created, this should be seen as required.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
/**
* Abbreviated name of the Core requirement
*/
public String getShortTitle() {
|
File |
Project |
Line |
org/kuali/student/lum/workflow/qualifierresolver/CocOrgTypeQualifierResolver.java |
KS LUM Rice |
110 |
org/kuali/student/lum/workflow/qualifierresolver/CocOrganizationQualifierResolver.java |
KS LUM Rice |
75 |
}
public String getNodeSpecificOrganizationIdAttributeSetKey(RouteContext context) {
String organizationIdFieldKey = RouteNodeUtils.getValueOfCustomProperty(context.getNodeInstance().getRouteNode(), ROUTE_NODE_XML_ORG_ID_QUALIFIER_KEY);
if (StringUtils.isBlank(organizationIdFieldKey)) {
if (usesNonDerivedOrganizationRoles(context)) {
throw new RuntimeException("Cannot find required XML element '" + ROUTE_NODE_XML_ORG_ID_QUALIFIER_KEY + "' on the Route Node XML configuration.");
}
}
return organizationIdFieldKey;
}
public String getNodeSpecificOrganizationShortNameAttributeSetKey(RouteContext context) {
String organizationShortNameFieldKey = RouteNodeUtils.getValueOfCustomProperty(context.getNodeInstance().getRouteNode(), ROUTE_NODE_XML_ORG_SHORT_NAME_QUALIFIER_KEY);
if (StringUtils.isBlank(organizationShortNameFieldKey)) {
if (usesNonDerivedOrganizationRoles(context)) {
throw new RuntimeException("Cannot find required XML element '" + ROUTE_NODE_XML_ORG_SHORT_NAME_QUALIFIER_KEY + "' on the Route Node XML configuration.");
}
}
return organizationShortNameFieldKey;
}
public Boolean usesNonDerivedOrganizationRoles(RouteContext context) {
String useNonDerivedOrganizationRoles = RouteNodeUtils.getValueOfCustomProperty(context.getNodeInstance().getRouteNode(), ROUTE_NODE_XML_USE_NON_DERIVED_ROLES);
if (StringUtils.isNotBlank(useNonDerivedOrganizationRoles)) {
return Boolean.valueOf(useNonDerivedOrganizationRoles);
}
return true;
}
|
File |
Project |
Line |
org/kuali/student/lum/program/dto/MajorDisciplineInfo.java |
KS LUM API |
157 |
org/kuali/student/lum/program/dto/ProgramVariationInfo.java |
KS LUM API |
136 |
@XmlElement
private List<String> divisionsContentOwner;
@XmlElement
private List<String> divisionsStudentOversight;
@XmlElement
private List<String> divisionsDeployment;
@XmlElement
private List<String> divisionsFinancialResources;
@XmlElement
private List<String> divisionsFinancialControl;
@XmlElement
private List<String> unitsContentOwner;
@XmlElement
private List<String> unitsStudentOversight;
@XmlElement
private List<String> unitsDeployment;
@XmlElement
private List<String> unitsFinancialResources;
@XmlElement
private List<String> unitsFinancialControl;
@XmlElement
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
private Map<String, String> attributes;
@XmlElement
private MetaInfo metaInfo;
@XmlElement
private VersionInfo versionInfo;
@XmlAttribute
private String type;
@XmlAttribute
private String state;
@XmlAttribute
private String id;
/**
* Indicates if the program is full time, part time, both etc
*/
public String getIntensity() {
return intensity;
}
public void setIntensity(String intensity) {
this.intensity = intensity;
}
/**
* An URL for additional information about the Variation.
*/
public String getReferenceURL() {
return referenceURL;
}
public void setReferenceURL(String referenceURL) {
this.referenceURL = referenceURL;
}
/**
* The composite string that is used to officially reference or publish the Variation. Note it may have an internal structure that each Institution may want to enforce.
*/
public String getCode() {
|
File |
Project |
Line |
org/kuali/student/core/person/dto/PersonInfo.java |
KS Core API |
331 |
org/kuali/student/lum/lu/dto/LuiInfo.java |
KS LUM API |
116 |
}
/**
* Date and time that this LUI became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date.
*/
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
/**
* Date and time that this LUI expires. This is a similar concept to the expiration date on enumerated values. If specified, this should be greater than or equal to the effective date. If this field is not specified, then no expiration date has been currently defined and should automatically be considered greater than the effective date.
*/
public Date getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(Date expirationDate) {
this.expirationDate = expirationDate;
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
/**
* The current status of the LUI. The values for this field are constrained to those in the luState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
*/
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
/**
* Unique identifier for a Learning Unit Instance (LUI). This is optional, due to the identifier being set at the time of creation. Once the LUI has been created, this should be seen as required.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
|
File |
Project |
Line |
org/kuali/student/core/organization/service/jaxws/AddPositionRestrictionToOrg.java |
KS Core API |
34 |
org/kuali/student/core/organization/service/jaxws/UpdatePositionRestrictionForOrg.java |
KS Core API |
34 |
public class UpdatePositionRestrictionForOrg {
@XmlElement(name = "orgId")
private java.lang.String orgId;
@XmlElement(name = "orgPersonRelationTypeKey")
private java.lang.String orgPersonRelationTypeKey;
@XmlElement(name = "orgPositionRestrictionInfo")
private org.kuali.student.core.organization.dto.OrgPositionRestrictionInfo orgPositionRestrictionInfo;
public java.lang.String getOrgId() {
return this.orgId;
}
public void setOrgId(java.lang.String newOrgId) {
this.orgId = newOrgId;
}
public java.lang.String getOrgPersonRelationTypeKey() {
return this.orgPersonRelationTypeKey;
}
public void setOrgPersonRelationTypeKey(java.lang.String newOrgPersonRelationTypeKey) {
this.orgPersonRelationTypeKey = newOrgPersonRelationTypeKey;
}
public org.kuali.student.core.organization.dto.OrgPositionRestrictionInfo getOrgPositionRestrictionInfo() {
return this.orgPositionRestrictionInfo;
}
public void setOrgPositionRestrictionInfo(org.kuali.student.core.organization.dto.OrgPositionRestrictionInfo newOrgPositionRestrictionInfo) {
this.orgPositionRestrictionInfo = newOrgPositionRestrictionInfo;
}
}
|
File |
Project |
Line |
org/kuali/student/core/assembly/dictionary/MetadataFormatter.java |
KS Common Impl |
104 |
org/kuali/student/core/dictionary/service/impl/DictionaryFormatter.java |
KS Common Impl |
102 |
builder.append (rowSeperator);
builder.append (colSeperator);
builder.append (colSeperator);
builder.append ("Field");
builder.append (colSeperator);
builder.append (colSeperator);
builder.append ("Required?");
builder.append (colSeperator);
builder.append (colSeperator);
builder.append ("DataType");
builder.append (colSeperator);
builder.append (colSeperator);
builder.append ("Length");
builder.append (colSeperator);
builder.append (colSeperator);
builder.append ("Dynamic");
builder.append (colSeperator);
builder.append (colSeperator);
builder.append ("Default");
builder.append (colSeperator);
builder.append (colSeperator);
builder.append ("Repeats?");
builder.append (colSeperator);
builder.append (colSeperator);
builder.append ("Valid Characters");
builder.append (colSeperator);
builder.append (colSeperator);
builder.append ("Lookup");
|
File |
Project |
Line |
org/kuali/student/lum/lu/ui/course/client/configuration/CourseSummaryConfigurer.java |
KS LUM UI |
462 |
org/kuali/student/lum/lu/ui/course/client/configuration/CourseSummaryConfigurer.java |
KS LUM UI |
731 |
block.addSummaryTableFieldRow(getFieldRow(COURSE + "/" + AUDIT, generateMessageInfo(LUUIConstants.LEARNING_RESULT_AUDIT_LABEL_KEY), true));
MultiplicityConfiguration formatsConfig = getMultiplicityConfig(COURSE + QueryPath.getPathSeparator() + FORMATS,
LUUIConstants.FORMAT_LABEL_KEY,
null);
MultiplicityConfiguration activitiesConfig = getMultiplicityConfig(COURSE + QueryPath.getPathSeparator() + FORMATS + QueryPath.getPathSeparator()
+ QueryPath.getWildCard() + QueryPath.getPathSeparator() + ACTIVITIES,
LUUIConstants.ACTIVITY_LITERAL_LABEL_KEY,
Arrays.asList(
Arrays.asList(ACTIVITY_TYPE, LUUIConstants.ACTIVITY_TYPE_LABEL_KEY),
Arrays.asList(CONTACT_HOURS + "/" + "unitQuantity", LUUIConstants.CONTACT_HOURS_LABEL_KEY),
Arrays.asList(CONTACT_HOURS + "/" + "unitType", "per"),
Arrays.asList(CreditCourseActivityConstants.DURATION + "/" + "atpDurationTypeKey", LUUIConstants.DURATION_TYPE_LABEL_KEY),
Arrays.asList(CreditCourseActivityConstants.DURATION + "/" + "timeQuantity", LUUIConstants.DURATION_LITERAL_LABEL_KEY),
Arrays.asList(DEFAULT_ENROLLMENT_ESTIMATE, LUUIConstants.CLASS_SIZE_LABEL_KEY)));
formatsConfig.setNestedConfig(activitiesConfig);
block.addSummaryMultiplicity(formatsConfig);
|
File |
Project |
Line |
org/kuali/student/lum/lu/LUConstants.java |
KS LUM API |
27 |
org/kuali/student/lum/common/client/lu/LUUIConstants.java |
KS LUM UI Common |
28 |
public class LUUIConstants {
// FIXME: Duplicated from lum-api LUConstants
public final static String COURSE_GROUP_NAME = "course";
public final static String PROPOSAL_TYPE_COURSE_CREATE = "kuali.proposal.type.course.create";
public final static String CLU_TYPE_CREDIT_COURSE = "kuali.lu.type.CreditCourse";
public final static String PROGRAM_GROUP_NAME = "program";
public final static String PROPOSAL_TYPE_PROGRAM_CREATE = "kuali.proposal.type.program.create";
public final static String CLU_TYPE_CREDIT_PROGRAM = "kuali.lu.type.CreditProgram";
// found this in https://test.kuali.org/confluence/display/KULSTU/LuConfig.Types.LuLuRelationType
public final static String LU_LU_RELATION_TYPE_HAS_COURSE_FORMAT = "luLuRelationType.hasCourseFormat";
public final static String LU_LU_RELATION_TYPE_CONTAINS = "luLuRelationType.contains";
public final static String LU_LU_RELATION_TYPE_CROSS_LISTED = "luLuRelationType.alias";
public final static String LU_LU_RELATION_TYPE_JOINTLY_OFFERED = "luLuRelationType.colocated";
// Valid states for Credit Course
public final static String LU_STATE_DRAFT = "Draft";
public final static String LU_STATE_SUBMITTED = "Submitted";
public final static String LU_STATE_WITHDRAWN = "Withdrawn";
public final static String LU_STATE_APPROVED = "Approved";
public final static String LU_STATE_NOT_APPROVED = "Not Approved";
public final static String LU_STATE_ACTIVE = "Active";
public final static String LU_STATE_INACTIVE = "Inactive";
public final static String LU_STATE_SUPERSEDED = "Superseded";
public final static String LU_STATE_RETIRED = "Retired";
// Dictionary definitions
public static final String STRUCTURE_CLU_INFO = "org.kuali.student.lum.lu.dto.CluInfo";
public static final String STRUCTURE_CLU_ID_INFO = "org.kuali.student.lum.lu.dto.CluIdentifierInfo";
public static final String STRUCTURE_PROPOSAL_INFO = "org.kuali.student.lum.proposal.dto.ProposalInfo";
public static final String REF_DOC_RELATION_PROPOSAL_TYPE = "kuali.org.RefObjectType.ProposalInfo";
|
File |
Project |
Line |
org/kuali/student/lum/program/dto/MajorDisciplineInfo.java |
KS LUM API |
608 |
org/kuali/student/lum/program/dto/ProgramRequirementInfo.java |
KS LUM API |
148 |
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
@Override
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
@Override
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
/**
* Unique identifier for a learning unit type. Once set at create time, this field may not be updated.
*/
@Override
public String getType() {
return type;
}
@Override
public void setType(String type) {
this.type = type;
}
/**
* The current status of the credential program. The values for this field are constrained to those in the luState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
*/
@Override
public String getState() {
return state;
}
@Override
public void setState(String state) {
this.state = state;
}
/**
* Unique identifier for a Program Requirement This is optional, due to the identifier being set at the time of creation. Once the Program has been created, this should be seen as required.
*/
@Override
public String getId() {
return id;
}
@Override
public void setId(String id) {
this.id = id;
}
|
File |
Project |
Line |
org/kuali/student/lum/program/server/MajorDisciplineRpcServlet.java |
KS LUM Program |
104 |
org/kuali/student/lum/lu/ui/course/server/gwt/CourseRpcGwtServlet.java |
KS LUM UI |
217 |
}
private void setReqCompNL(StatementTreeViewInfo tree) throws Exception {
List<StatementTreeViewInfo> statements = tree.getStatements();
List<ReqComponentInfo> reqComponentInfos = tree.getReqComponents();
if ((statements != null) && (statements.size() > 0)) {
// retrieve all statements
for (StatementTreeViewInfo statement : statements) {
setReqCompNL(statement); // inside set the children of this statementTreeViewInfo
}
} else if ((reqComponentInfos != null) && (reqComponentInfos.size() > 0)) {
// retrieve all req. component LEAFS
for (int i = 0; i < reqComponentInfos.size(); i++) {
ReqComponentInfoUi reqUi = RulesUtil.clone(reqComponentInfos.get(i));
reqUi.setNaturalLanguageTranslation(statementService.translateReqComponentToNL(reqUi, "KUALI.RULE", "en"));
reqUi.setPreviewNaturalLanguageTranslation(statementService.translateReqComponentToNL(reqUi, "KUALI.RULE.PREVIEW", "en"));
reqComponentInfos.set(i, reqUi);
}
}
}
|
File |
Project |
Line |
org/kuali/student/core/assembly/dictionary/MetadataFormatter.java |
KS Common Impl |
468 |
org/kuali/student/core/dictionary/service/impl/DictionaryFormatter.java |
KS Common Impl |
489 |
+ fd.getInclusiveMax ();
}
private static final String PAGE_PREFIX = "Formatted View of ";
private static final String PAGE_SUFFIX = " Searches";
private String calcWikiSearchPage (String searchType)
{
return PAGE_PREFIX + calcWikigPageAbbrev (searchType) + PAGE_SUFFIX;
}
private String calcWikigPageAbbrev (String searchType)
{
if (searchType == null)
{
return null;
}
if (searchType.equals ("enumeration.management.search"))
{
return "EM";
}
if (searchType.startsWith ("lu."))
{
return "LU";
}
if (searchType.startsWith ("cluset."))
{
return "LU";
}
if (searchType.startsWith ("lo."))
{
return "LO";
}
if (searchType.startsWith ("lrc."))
{
return "LRC";
}
if (searchType.startsWith ("comment."))
{
return "Comment";
}
if (searchType.startsWith ("org."))
{
return "Organization";
}
if (searchType.startsWith ("atp."))
{
return "ATP";
}
|
File |
Project |
Line |
org/kuali/student/lum/kim/role/type/KSActionRequestDerivedRoleTypeServiceImpl.java |
KS LUM Rice |
78 |
org/kuali/student/lum/kim/role/type/KSRouteLogDerivedRoleTypeServiceImpl.java |
KS LUM Rice |
48 |
{
checkRequiredAttributes = true;
// add document number as one required attribute set
List<String> listOne = new ArrayList<String>();
listOne.add( KimAttributes.DOCUMENT_NUMBER );
newRequiredAttributes.add(listOne);
// add document type name and KEW application id as one required attribute set
List<String> listTwo = new ArrayList<String>();
listTwo.add( KimAttributes.DOCUMENT_TYPE_NAME );
listTwo.add( StudentIdentityConstants.QUALIFICATION_KEW_OBJECT_ID );
newRequiredAttributes.add(listTwo);
// add object id and object type as one required attribute set
List<String> listThree = new ArrayList<String>();
listThree.add( StudentIdentityConstants.QUALIFICATION_KEW_OBJECT_ID );
listThree.add( StudentIdentityConstants.QUALIFICATION_KEW_OBJECT_TYPE );
newRequiredAttributes.add(listThree);
// add each proposal reference type as a required attribute set
for (String proposalReferenceType : StudentIdentityConstants.QUALIFICATION_PROPOSAL_ID_REF_TYPES) {
List<String> tempList = new ArrayList<String>();
tempList.add( proposalReferenceType );
newRequiredAttributes.add(tempList);
}
}
/**
* The part about where the receivedAttributes list being empty does not return errors is copied from Rice base class.
*
* @see org.kuali.rice.kim.service.support.impl.KimTypeServiceBase#validateRequiredAttributesAgainstReceived(org.kuali.rice.kim.bo.types.dto.AttributeSet)
**/
@Override
protected void validateRequiredAttributesAgainstReceived(AttributeSet receivedAttributes){
KimQualificationHelper.validateRequiredAttributesAgainstReceived(newRequiredAttributes, receivedAttributes, isCheckFutureRequests(), COMMA_SEPARATOR);
|
File |
Project |
Line |
org/kuali/student/lum/program/client/core/edit/CoreEditController.java |
KS LUM Program |
111 |
org/kuali/student/lum/program/client/major/edit/MajorEditController.java |
KS LUM Program |
96 |
doSave(event.getOkCallback());
}
});
eventBus.addHandler(StateChangeEvent.TYPE, new StateChangeEvent.Handler() {
@Override
public void onEvent(final StateChangeEvent event) {
programModel.validateNextState(new Callback<List<ValidationResultInfo>>() {
@Override
public void exec(List<ValidationResultInfo> result) {
boolean isSectionValid = isValid(result, true);
if (isSectionValid) {
Callback<Boolean> callback = new Callback<Boolean>() {
@Override
public void exec(Boolean result) {
if (result) {
reloadMetadata = true;
loadMetadata(new Callback<Boolean>() {
@Override
public void exec(Boolean result) {
if (result) {
ProgramUtils.syncMetadata(configurer, programModel.getDefinition());
HistoryManager.navigate(AppLocations.Locations.VIEW_PROGRAM.getLocation(), context);
|
File |
Project |
Line |
org/kuali/student/core/statement/dto/AbstractStatementInfo.java |
KS Core API |
99 |
org/kuali/student/lum/lu/dto/CluPublicationInfo.java |
KS LUM API |
152 |
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
/**
* Unique identifier for a learning objective type.
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
/**
* The current status of the learning objective. The values for this field are constrained to those in the loState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
*/
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
/**
* Unique identifier for a learning objective record. This is optional, due to the identifier being set at the time of creation. Once the learning objective has been created, this should be seen as required.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Override
public String toString() {
return "LoInfo[id=" + id + "]";
|
File |
Project |
Line |
org/kuali/student/core/atp/service/impl/AtpServiceImpl.java |
KS Core Impl |
554 |
org/kuali/student/core/proposal/service/impl/ProposalServiceImpl.java |
KS Core Impl |
336 |
return searchManager.getSearchCriteriaType(searchCriteriaTypeKey);
}
/**
* @see org.kuali.student.core.search.service.SearchService#getSearchCriteriaTypes()
*/
@Override
public List<SearchCriteriaTypeInfo> getSearchCriteriaTypes() throws OperationFailedException {
return searchManager.getSearchCriteriaTypes();
}
/**
* @see org.kuali.student.core.search.service.SearchService#getSearchResultType(java.lang.String)
*/
@Override
public SearchResultTypeInfo getSearchResultType(String searchResultTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
checkForMissingParameter(searchResultTypeKey, "searchResultTypeKey");
return searchManager.getSearchResultType(searchResultTypeKey);
}
/**
* @see org.kuali.student.core.search.service.SearchService#getSearchResultTypes()
*/
@Override
public List<SearchResultTypeInfo> getSearchResultTypes() throws OperationFailedException {
return searchManager.getSearchResultTypes();
}
/**
* @see org.kuali.student.core.search.service.SearchService#getSearchType(java.lang.String)
*/
@Override
public SearchTypeInfo getSearchType(String searchTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
checkForMissingParameter(searchTypeKey, "searchTypeKey");
return searchManager.getSearchType(searchTypeKey);
}
/**
* @see org.kuali.student.core.search.service.SearchService#getSearchTypes()
*/
@Override
public List<SearchTypeInfo> getSearchTypes() throws OperationFailedException {
return searchManager.getSearchTypes();
}
/**
* @see org.kuali.student.core.search.service.SearchService#getSearchTypesByCriteria(java.lang.String)
*/
@Override
public List<SearchTypeInfo> getSearchTypesByCriteria(String searchCriteriaTypeKey) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
|
File |
Project |
Line |
org/kuali/student/lum/common/client/widgets/CluSetRangeDataHelper.java |
KS LUM UI Common |
43 |
org/kuali/student/lum/lu/ui/tools/client/widgets/CluSetRangeLabel.java |
KS LUM UI |
114 |
}
private String getParameterDisplayName(String parameterKey) {
String parameterDisplayName = null;
if (lookupMetadata == null) {
parameterDisplayName = parameterKey;
} else {
List<LookupParamMetadata> searchParams = lookupMetadata.getParams();
if (searchParams != null) {
for (LookupParamMetadata searchParam : searchParams) {
if (nullSafeEquals(searchParam.getKey(), parameterKey)) {
parameterDisplayName = searchParam.getName();
}
}
}
if (parameterDisplayName == null) {
parameterDisplayName = parameterKey;
}
}
return parameterDisplayName;
}
private boolean nullSafeEquals(Object str1, Object str2) {
return (str1 == null && str2 == null ||
str1 != null && str2 != null && str1.equals(str2));
}
// public class MyGwtEvent extends ValueChangeEvent<Data.Value> {
// public MyGwtEvent(Data.Value value) {
// super(value);
// }
// }
public LookupMetadata getLookupMetadata() {
return lookupMetadata;
}
public void setLookupMetadata(LookupMetadata lookupMetadata) {
this.lookupMetadata = lookupMetadata;
}
}
|
File |
Project |
Line |
org/kuali/student/lum/common/client/widgets/CluSetEditorWidget.java |
KS LUM UI Common |
357 |
org/kuali/student/lum/lu/ui/tools/client/configuration/ClusetView.java |
KS LUM UI |
366 |
return SectionTitle.generateH3Title(getLabel(labelKey));
}
protected MessageKeyInfo generateMessageInfo(String labelKey) {
return new MessageKeyInfo("clusetmanagement", "clusetmanagement", "draft", labelKey);
}
private FieldDescriptor getFieldDescriptor(
String fieldKey,
MessageKeyInfo messageKey,
Widget widget,
String parentPath) {
QueryPath path = QueryPath.concat(parentPath, fieldKey);
Metadata meta = modelDefinition.getMetadata(path);
FieldDescriptor fd;
if (widget != null) {
fd = new FieldDescriptor(path.toString(), messageKey, meta, widget);
}
else{
fd = new FieldDescriptor(path.toString(), messageKey, meta);
}
return fd;
}
private FieldDescriptor addField(Section section,
String fieldKey,
MessageKeyInfo messageKey,
Widget widget,
String parentPath) {
FieldDescriptor fd = getFieldDescriptor(fieldKey, messageKey, widget, parentPath);
section.addField(fd);
return fd;
}
private Picker configureSearch(String fieldKey) {
|
File |
Project |
Line |
org/kuali/student/lum/lu/ui/tools/client/configuration/CluSetsConfigurer.java |
KS LUM UI |
474 |
org/kuali/student/lum/lu/ui/tools/client/configuration/ClusetView.java |
KS LUM UI |
402 |
Metadata metaData = searchDefinition.getMetadata(path);
Picker picker = new Picker(metaData.getInitialLookup(), metaData.getAdditionalLookups());
return picker;
}
public static class Picker extends KSPicker {
private String name;
private LookupMetadata initLookupMetadata;
private List<LookupMetadata> additionalLookupMetadata;
public Picker(LookupMetadata inLookupMetadata, List<LookupMetadata> additionalLookupMetadata) {
super(inLookupMetadata, additionalLookupMetadata);
this.initLookupMetadata = inLookupMetadata;
this.additionalLookupMetadata = additionalLookupMetadata;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public LookupMetadata getInitLookupMetadata() {
return initLookupMetadata;
}
public void setInitLookupMetadata(LookupMetadata initLookupMetadata) {
this.initLookupMetadata = initLookupMetadata;
}
public List<LookupMetadata> getAdditionalLookupMetadata() {
return additionalLookupMetadata;
}
public void setAdditionalLookupMetadata(List<LookupMetadata> additionalLookupMetadata) {
this.additionalLookupMetadata = additionalLookupMetadata;
}
}
|
File |
Project |
Line |
org/kuali/student/core/assembly/old/IdTranslatorAssemblerFilter.java |
KS Common Impl |
110 |
org/kuali/student/core/assembly/transform/IdTranslatorFilter.java |
KS Common Impl |
71 |
translateIds((Data) prop.getValue(), listChildMetadata);
}else{
//its a list of fields so loop through and translate using the "index"
for(Iterator<Property> listIter = ((Data)fieldData).realPropertyIterator(); listIter.hasNext();){
Property listItem = listIter.next();
Object listData = listItem.getValue();
if (listData != null && listData instanceof String) {
if (fieldMetadata.getInitialLookup() != null
&& !StringUtils.isEmpty((String) listData)) {
//This is a string with a lookup so do the translation
IdTranslation trans = idTranslator.getTranslation(fieldMetadata.getInitialLookup(), (String) listData);
if (trans != null) {
Integer index = listItem.getKey();
setTranslation((Data)fieldData, listItem.getKey().toString(), index, trans.getDisplay());
}
}
}
|
File |
Project |
Line |
org/kuali/student/lum/program/client/requirements/ProgramRequirementsSummaryView.java |
KS LUM Program |
364 |
org/kuali/student/lum/lu/ui/course/client/requirements/CourseRequirementsSummaryView.java |
KS LUM UI |
307 |
static private void findCluSetIds(StatementTreeViewInfo rule, Set<String> list) {
List<StatementTreeViewInfo> statements = rule.getStatements();
List<ReqComponentInfo> reqComponentInfos = rule.getReqComponents();
if ((statements != null) && (statements.size() > 0)) {
// retrieve all statements
for (StatementTreeViewInfo statement : statements) {
findCluSetIds(statement, list); // inside set the children of this statementTreeViewInfo
}
} else if ((reqComponentInfos != null) && (reqComponentInfos.size() > 0)) {
// retrieve all req. component LEAFS
for (ReqComponentInfo reqComponent : reqComponentInfos) {
List<ReqCompFieldInfo> fieldInfos = reqComponent.getReqCompFields();
for (ReqCompFieldInfo fieldInfo : fieldInfos) {
if (RulesUtil.isCluSetWidget(fieldInfo.getType())) {
list.add(fieldInfo.getValue());
}
}
}
}
}
private void setupSaveCancelButtons() {
|
File |
Project |
Line |
org/kuali/student/lum/program/client/core/edit/CoreEditController.java |
KS LUM Program |
79 |
org/kuali/student/lum/program/client/major/edit/MajorEditController.java |
KS LUM Program |
189 |
HistoryManager.navigate(AppLocations.Locations.EDIT_VARIATION.getLocation(), viewContext);
}
});
eventBus.addHandler(StoreRequirementIDsEvent.TYPE, new StoreRequirementIDsEvent.Handler() {
@Override
public void onEvent(StoreRequirementIDsEvent event) {
List<String> ids = event.getProgramRequirementIds();
programModel.set(QueryPath.parse(ProgramConstants.PROGRAM_REQUIREMENTS), new Data());
Data programRequirements = programModel.get(ProgramConstants.PROGRAM_REQUIREMENTS);
if (programRequirements == null) {
Window.alert("Cannot find program requirements in data model.");
GWT.log("Cannot find program requirements in data model", null);
return;
}
for (String id : ids) {
programRequirements.add(id);
}
doSave();
}
});
eventBus.addHandler(ChangeViewEvent.TYPE, new ChangeViewEvent.Handler() {
@Override
public void onEvent(ChangeViewEvent event) {
showView(event.getViewToken());
}
});
|
File |
Project |
Line |
org/kuali/student/lum/program/server/transform/VersionCoreProgramFilter.java |
KS LUM Program |
26 |
org/kuali/student/lum/program/server/transform/VersionCredentialProgramFilter.java |
KS LUM Program |
26 |
CredentialProgramInfo previousVersionCoreInfo = programService.getCredentialProgram(versionFromId);
if (previousVersionData == null){
//This is an initial get. Create previous version data to send back to client
previousVersionData = new Data();
previousVersionData.set(ProgramConstants.ID, previousVersionCoreInfo.getId());
previousVersionData.set(ProgramConstants.END_PROGRAM_ENTRY_TERM, previousVersionCoreInfo.getEndProgramEntryTerm());
previousVersionData.set(ProgramConstants.END_PROGRAM_ENROLL_TERM, previousVersionCoreInfo.getEndTerm());
previousVersionData.set(ProgramConstants.STATE, previousVersionCoreInfo.getState());
} else {
//This is a save operation. Check state field change for previous version state, indicating an "Activate" action,
//which requires updating previous program with new states and end terms and setting activated program
//to be the current version.
String state = previousVersionData.get(ProgramConstants.STATE);
if (state!= null && !state.equals(previousVersionCoreInfo.getState())){
//Update previous program version with new state and terms
String endEntryTerm = previousVersionData.get(ProgramConstants.END_PROGRAM_ENTRY_TERM);
String endEnrollTerm = previousVersionData.get(ProgramConstants.END_PROGRAM_ENROLL_TERM);
previousVersionCoreInfo.setState(state);
previousVersionCoreInfo.setEndProgramEntryTerm(endEntryTerm);
previousVersionCoreInfo.setEndTerm(endEnrollTerm);
programService.updateCredentialProgram(previousVersionCoreInfo);
|
File |
Project |
Line |
org/kuali/student/lum/lrc/dto/ResultComponentInfo.java |
KS LUM API |
139 |
org/kuali/student/lum/program/dto/MinorDisciplineInfo.java |
KS LUM API |
96 |
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
/**
* Unique identifier for a learning unit type. Once set at create time, this field may not be updated.
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
/**
* The current status of the credential program. The values for this field are constrained to those in the luState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
*/
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
/**
* Unique identifier for an Honors Program. This is optional, due to the identifier being set at the time of creation. Once the Program has been created, this should be seen as required.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
|
File |
Project |
Line |
org/kuali/student/lum/lrc/dto/CredentialInfo.java |
KS LUM API |
104 |
org/kuali/student/lum/lrc/dto/GradeInfo.java |
KS LUM API |
117 |
}
/**
* Date and time that this grade value became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date.
*/
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
/**
* Date and time that this grade value expires. This is a similar concept to the expiration date on enumerated values. If specified, this should be greater than or equal to the effective date. If this field is not specified, then no expiration date has been currently defined and should automatically be considered greater than the effective date.
*/
public Date getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(Date expirationDate) {
this.expirationDate = expirationDate;
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Unique identifier for a grade type.
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
/**
* Unique identifier for a grade value.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
|
File |
Project |
Line |
org/kuali/student/lum/lo/dto/LoRepositoryInfo.java |
KS LUM API |
105 |
org/kuali/student/lum/lu/dto/AccreditationInfo.java |
KS LUM API |
63 |
}
/*
* Date and time the accreditation became effective.
*/
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
/*
* Date and time the accreditation expires.
*/
public Date getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(Date expirationDate) {
this.expirationDate = expirationDate;
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/*
* Create and last update info for the structure.
* This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
/*
* Unique identifier for the accreditation.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
|
File |
Project |
Line |
org/kuali/student/core/person/dto/PersonReferenceIdInfo.java |
KS Core API |
113 |
org/kuali/student/lum/course/dto/FormatInfo.java |
KS LUM API |
81 |
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
/**
* Unique identifier for a learning unit type. Once set at create time, this field may not be updated.
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
/**
* The current status of the course. The values for this field are constrained to those in the luState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value. This field may not be updated through updating this structure and must instead be updated through a dedicated operation.
*/
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
/**
* Unique identifier for a Canonical Learning Unit (CLU). This is optional, due to the identifier being set at the time of creation. Once the Format has been created, this should be seen as required.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
|
File |
Project |
Line |
org/kuali/student/core/person/dto/PersonCitizenshipInfo.java |
KS Core API |
98 |
org/kuali/student/lum/lu/dto/AccreditationInfo.java |
KS LUM API |
63 |
}
/**
* Date and time that this learning objective repository became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date.
*/
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
/**
* Date and time that this learning objective repository expires. This is a similar concept to the expiration date on enumerated values. If specified, this should be greater than or equal to the effective date. If this field is not specified, then no expiration date has been currently defined and should automatically be considered greater than the effective date.
*/
public Date getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(Date expirationDate) {
this.expirationDate = expirationDate;
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
/**
* Unique identifier for a learning objective repository.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
|
File |
Project |
Line |
org/kuali/student/core/atp/dto/AtpInfo.java |
KS Core API |
114 |
org/kuali/student/core/person/dto/PersonResidencyInfo.java |
KS Core API |
127 |
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
/**
* Unique identifier for an organization type.
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
/**
* The current status of the organization. The values for this field are constrained to those in the orgState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
*/
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
/**
* Unique identifier for an organization. This is optional, due to the identifier being set at the time of creation. Once the organization has been created, this should be seen as required.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
|
File |
Project |
Line |
org/kuali/student/lum/lu/dto/CluLoRelationInfo.java |
KS LUM API |
119 |
org/kuali/student/lum/program/dto/MinorDisciplineInfo.java |
KS LUM API |
96 |
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
/**
* Unique identifier for a learning unit type. Once set at create time, this field may not be updated.
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
/**
* The current status of the credential program. The values for this field are constrained to those in the luState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
*/
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
/**
* Unique identifier for an Honors Program. This is optional, due to the identifier being set at the time of creation. Once the Program has been created, this should be seen as required.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
|
File |
Project |
Line |
org/kuali/student/lum/lo/dto/LoRepositoryInfo.java |
KS LUM API |
105 |
org/kuali/student/lum/lu/dto/CluSetTreeViewInfo.java |
KS LUM API |
108 |
}
/**
* Date and time that this CLU Set became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date.
*/
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
/**
* Date and time that this CLU Set expires. This is a similar concept to the expiration date on enumerated values. If specified, this should be greater than or equal to the effective date. If this field is not specified, then no expiration date has been currently defined and should automatically be considered greater than the effective date.
*/
public Date getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(Date expirationDate) {
this.expirationDate = expirationDate;
}
// /**
// * Specifies a search for CLU identifiers. Present for dynamic CLU Sets
// */
// public CluCriteriaInfo getCluCriteria() {
// return cluCriteria;
// }
//
// public void setCluCriteria(CluCriteriaInfo cluCriteria) {
// this.cluCriteria = cluCriteria;
// }
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
/**
* Unique identifier for a CLU Set. This is optional, due to the identifier being set at the time of creation. Once the CLU Set has been created, this should be seen as required.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
|
File |
Project |
Line |
org/kuali/student/core/person/dto/PersonReferenceIdInfo.java |
KS Core API |
113 |
org/kuali/student/core/statement/dto/AbstractStatementInfo.java |
KS Core API |
99 |
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
/**
* Unique identifier for an LU statement type.
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
/**
* The current status of the statement. The values for this field are constrained to those in the StatementState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
*/
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
/**
* Unique identifier for a single LU statement record. This is optional, due to the identifier being set at the time of creation. Once the LU statement has been created, this should be seen as required.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
|
File |
Project |
Line |
org/kuali/student/core/person/dto/PersonCitizenshipInfo.java |
KS Core API |
98 |
org/kuali/student/lum/lu/dto/CluSetTreeViewInfo.java |
KS LUM API |
108 |
}
/**
* Date and time that this CLU Set became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date.
*/
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
/**
* Date and time that this CLU Set expires. This is a similar concept to the expiration date on enumerated values. If specified, this should be greater than or equal to the effective date. If this field is not specified, then no expiration date has been currently defined and should automatically be considered greater than the effective date.
*/
public Date getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(Date expirationDate) {
this.expirationDate = expirationDate;
}
// /**
// * Specifies a search for CLU identifiers. Present for dynamic CLU Sets
// */
// public CluCriteriaInfo getCluCriteria() {
// return cluCriteria;
// }
//
// public void setCluCriteria(CluCriteriaInfo cluCriteria) {
// this.cluCriteria = cluCriteria;
// }
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
/**
* Unique identifier for a CLU Set. This is optional, due to the identifier being set at the time of creation. Once the CLU Set has been created, this should be seen as required.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
|
File |
Project |
Line |
org/kuali/student/core/atp/dto/AtpInfo.java |
KS Core API |
114 |
org/kuali/student/lum/lo/dto/LoInfo.java |
KS LUM API |
134 |
}
/**
* List of key/value pairs, typically used for dynamic attributes.
*/
public Map<String, String> getAttributes() {
if (attributes == null) {
attributes = new HashMap<String, String>();
}
return attributes;
}
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
/**
* Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
/**
* Unique identifier for an LU statement type.
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
/**
* The current status of the statement. The values for this field are constrained to those in the StatementState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
*/
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
/**
* Unique identifier for a single LU statement record. This is optional, due to the identifier being set at the time of creation. Once the LU statement has been created, this should be seen as required.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
|
File |
Project |
Line |
org/kuali/student/common/messagebuilder/impl/FailureMessageBuilder.java |
KS Common Util |
137 |
org/kuali/student/common/messagebuilder/impl/SuccessMessageBuilder.java |
KS Common Util |
78 |
node.getRightNode().getValue() == true &&
node.getLeftNode().getNodeMessage() != null &&
node.getRightNode().getNodeMessage() != null) {
String logMessage = node.getLeftNode().getNodeMessage() + " " +
this.booleanOperators.getAndOperator() + " " +
node.getRightNode().getNodeMessage();
if(node.getParent() != null &&
( (node.getLabel().equals("+") &&
node.getParent().getLabel().equals("*")) ||
(node.getLabel().equals("*") &&
node.getParent().getLabel().equals("+")))) {
logMessage = "(" + logMessage + ")";
}
node.setNodeMessage(logMessage);
}
}
|
File |
Project |
Line |
org/kuali/student/common/messagebuilder/impl/FailureMessageBuilder.java |
KS Common Util |
78 |
org/kuali/student/common/messagebuilder/impl/SuccessMessageBuilder.java |
KS Common Util |
137 |
node.getRightNode().getValue() == true &&
node.getLeftNode().getNodeMessage() != null &&
node.getRightNode().getNodeMessage() != null) {
String logMessage = node.getLeftNode().getNodeMessage() + " " +
this.booleanOperators.getOrOperator() + " " +
node.getRightNode().getNodeMessage();
if(node.getParent() != null &&
( (node.getLabel().equals("+") &&
node.getParent().getLabel().equals("*")) ||
(node.getLabel().equals("*") &&
node.getParent().getLabel().equals("+")))) {
logMessage = "(" + logMessage + ")";
}
node.setNodeMessage(logMessage);
}
}
|
File |
Project |
Line |
org/kuali/student/common/validator/old/Validator.java |
KS Common Impl |
736 |
org/kuali/student/common/validator/old/Validator.java |
KS Common Impl |
873 |
Integer minValue = ValidatorUtils.getInteger(bcb.minValue);
if (maxValue != null && minValue != null) {
// validate range
if (v > maxValue || v < minValue) {
val.setError(MessageUtils.interpolate(
getMessage("validation.outOfRange"), bcb.toMap()));
}
} else if (maxValue != null) {
if (v > maxValue) {
val.setError(MessageUtils.interpolate(
getMessage("validation.maxValueFailed"), bcb
.toMap()));
}
} else if (minValue != null) {
if (v < minValue) {
val.setError(MessageUtils.interpolate(
getMessage("validation.minValueFailed"), bcb
.toMap()));
}
}
}
if (!val.isOk()) {
results.add(val);
}
}
private void validateDate(Object value, BaseConstraintBean bcb,
|
File |
Project |
Line |
org/kuali/student/lum/common/client/lo/LoCategoryInfoHelper.java |
KS LUM UI Common |
93 |
org/kuali/student/lum/common/client/widgets/CluSetHelper.java |
KS LUM UI Common |
117 |
return MetaInfoHelper.wrap ((Data) data.get (Properties.META_INFO.getKey ()));
}
public void setName(String name) {
data.set(Properties.NAME.getKey(), name);
}
public String getName() {
return (String) data.get(Properties.NAME.getKey());
}
public void setState(String state) {
data.set(Properties.STATE.getKey(), state);
}
public String getState() {
return (String) data.get(Properties.STATE.getKey());
}
public void setType(String type) {
data.set(Properties.TYPE.getKey(), type);
}
public String getType() {
return (String) data.get(Properties.TYPE.getKey());
}
public void setReusable(Boolean reusable) {
|
File |
Project |
Line |
org/kuali/student/lum/program/client/core/view/CoreManagingBodiesViewConfiguration.java |
KS LUM Program |
26 |
org/kuali/student/lum/program/client/credential/view/CredentialManagingBodiesViewConfiguration.java |
KS LUM Program |
27 |
private CredentialManagingBodiesViewConfiguration(SectionView sectionView) {
rootSection = sectionView;
}
@Override
protected void buildLayout() {
VerticalSection section = createMainSection();
rootSection.addSection(section);
}
private VerticalSection createMainSection() {
VerticalSection section = new VerticalSection();
configurer.addReadOnlyField(section, ProgramConstants.CURRICULUM_OVERSIGHT_DIVISION, new MessageKeyInfo(ProgramProperties.get().managingBodies_curriculumOversightDivision()));
configurer.addReadOnlyField(section, ProgramConstants.CURRICULUM_OVERSIGHT_UNIT, new MessageKeyInfo(ProgramProperties.get().managingBodies_curriculumOversightUnit()));
configurer.addReadOnlyField(section, ProgramConstants.STUDENT_OVERSIGHT_DIVISION, new MessageKeyInfo(ProgramProperties.get().managingBodies_studentOversightDivision()));
configurer.addReadOnlyField(section, ProgramConstants.STUDENT_OVERSIGHT_UNIT, new MessageKeyInfo(ProgramProperties.get().managingBodies_studentOversightUnit()));
return section;
}
}
|
File |
Project |
Line |
org/kuali/student/core/assembly/old/BaseAssembler.java |
KS Common Impl |
134 |
org/kuali/student/core/assembly/transform/AuthorizationFilter.java |
KS Common Impl |
168 |
Map<String, String> permissions = getFieldAccessPermissions(dtoName,idType,id, docType);
if (permissions != null) {
for (Map.Entry<String, String> permission : permissions.entrySet()) {
String dtoFieldPath = permission.getKey();
String fieldAccessLevel = permission.getValue();
String[] fieldPathTokens = getPathTokens(dtoFieldPath);
Metadata fieldMetadata = metadata.getProperties().get(fieldPathTokens[0]);
for(int i = 1; i < fieldPathTokens.length; i++) {
if(fieldMetadata == null) {
break;
}
fieldMetadata = fieldMetadata.getProperties().get(fieldPathTokens[i]);
}
if (fieldMetadata != null) {
Permission perm = Permission.kimValueOf(fieldAccessLevel);
if (Permission.EDIT.equals(perm)) {
setReadOnly(fieldMetadata, false);
} else if (Permission.PARTIAL_UNMASK.equals(perm)){
|
File |
Project |
Line |
org/kuali/student/common/validator/DefaultValidatorImpl.java |
KS Common Impl |
589 |
org/kuali/student/common/validator/DefaultValidatorImpl.java |
KS Common Impl |
708 |
Integer minValue = ValidatorUtils.getInteger(constraint.getExclusiveMin());
if (maxValue != null && minValue != null) {
// validate range
if (v > maxValue || v < minValue) {
val.setError(MessageUtils.interpolate(getMessage("validation.outOfRange"), toMap(constraint)));
}
} else if (maxValue != null) {
if (v > maxValue) {
val.setError(MessageUtils.interpolate(getMessage("validation.maxValueFailed"), toMap(constraint)));
}
} else if (minValue != null) {
if (v < minValue) {
val.setError(MessageUtils.interpolate(getMessage("validation.minValueFailed"), toMap(constraint)));
}
}
}
if (!val.isOk()) {
results.add(val);
}
}
protected void validateDate(Object value, Constraint constraint, String element, List<ValidationResultInfo> results, DateParser dateParser) {
|
File |
Project |
Line |
org/kuali/student/common/validator/DefaultValidatorImpl.java |
KS Common Impl |
48 |
org/kuali/student/common/validator/old/Validator.java |
KS Common Impl |
54 |
private String messageLocaleKey = "en";
private String messageGroupKey = "validation";
private DateParser dateParser = new ServerDateParser();
private boolean serverSide = true;
public MessageService getMessageService() {
return messageService;
}
public void setMessageService(MessageService messageService) {
this.messageService = messageService;
}
public String getMessageLocaleKey() {
return messageLocaleKey;
}
public void setMessageLocaleKey(String messageLocaleKey) {
this.messageLocaleKey = messageLocaleKey;
}
public String getMessageGroupKey() {
return messageGroupKey;
}
public void setMessageGroupKey(String messageGroupKey) {
this.messageGroupKey = messageGroupKey;
}
public void setDateParser(DateParser dateParser) {
this.dateParser = dateParser;
}
/**
* @return the serverSide
*/
public boolean isServerSide() {
return serverSide;
}
/**
* @param serverSide
* the serverSide to set
*/
public void setServerSide(boolean serverSide) {
this.serverSide = serverSide;
}
/**
* @return the dateParser
*/
public DateParser getDateParser() {
return dateParser;
}
/**
* Validate Object and all its nested child objects for given type and state
*
* @param data
* @param objStructure
* @return
*/
public List<ValidationResultInfo> validateTypeStateObject(Object data,
|
File |
Project |
Line |
org/kuali/student/lum/lu/service/impl/LuServiceAssembler.java |
KS LUM Impl |
1088 |
org/kuali/student/lum/lu/service/impl/LuServiceAssembler.java |
KS LUM Impl |
1119 |
feeRec.setAffiliatedOrgs(toAffiliatedOrgs(isUpdate, feeRec.getAffiliatedOrgs(), feeRecordInfo.getAffiliatedOrgs(),dao));
feeRec.setFeeType(feeRecordInfo.getFeeType());
feeRec.setRateType(feeRecordInfo.getRateType());
feeRec.setDescr(toRichText(LuRichText.class, feeRecordInfo.getDescr()));
feeRec.setFeeAmounts(toFeeAmounts(isUpdate, feeRec.getFeeAmounts(), feeRecordInfo.getFeeAmounts(),dao));
feeRec.setAttributes(LuServiceAssembler.toGenericAttributes(
CluFeeRecordAttribute.class, feeRecordInfo
.getAttributes(), feeRec, dao));
if(cluFee.getCluFeeRecords()==null){
cluFee.setCluFeeRecords(new ArrayList<CluFeeRecord>());
}
cluFee.getCluFeeRecords().add(feeRec);
}
|
File |
Project |
Line |
org/kuali/student/core/statement/dto/ReqComponentInfo.java |
KS Core API |
95 |
org/kuali/student/lum/lu/dto/CluResultInfo.java |
KS LUM API |
108 |
}
/**
* Date and time that this CLU result became effective. This is a similar concept to the effective date on enumerated values. When an expiration date has been specified, this field must be less than or equal to the expiration date.
*/
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
/**
* Date and time that this CLU result expires. This is a similar concept to the expiration date on enumerated values. If specified, this must be greater than or equal to the effective date. If this field is not specified, then no expiration date has been currently defined and should automatically be considered greater than the effective date.
*/
public Date getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(Date expirationDate) {
this.expirationDate = expirationDate;
}
/**
* Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations.
*/
public MetaInfo getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(MetaInfo metaInfo) {
this.metaInfo = metaInfo;
}
/**
* Unique identifier for a clu learning result object type.
*/
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
/**
* The current status of the CLU Result. The values for this field are constrained to those in the cluResultState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
*/
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
/**
* Unique identifier for a CLU result. This is optional, due to the identifier being set at the time of creation. Once the result set has been created, this should be seen as required.
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
|
File |
Project |
Line |
org/kuali/student/common/ui/client/widgets/menus/impl/KSBasicMenuImpl.java |
KS Common UI |
234 |
org/kuali/student/common/ui/client/widgets/menus/impl/KSListMenuImpl.java |
KS Common UI |
244 |
}
public void addImage(Image shownIcon) {
shownIcon.addStyleName("KS-Basic-Menu-Item-Image");
contentPanel.add(shownIcon);
}
public void deSelect(){
this.removeStyleName("KS-Basic-Menu-Item-Panel-Selected");
itemLabel.removeStyleName("KS-Basic-Menu-Item-Label-Selected");
selected = false;
}
public void select(){
this.addStyleName("KS-Basic-Menu-Item-Panel-Selected");
itemLabel.addStyleName("KS-Basic-Menu-Item-Label-Selected");
selected = true;
}
public KSLabel getItemLabel() {
return itemLabel;
}
public boolean isSelectable() {
return selectable;
}
public void setSelectable(boolean selectable) {
this.selectable = selectable;
}
public KSMenuItemData getItem() {
return item;
}
public boolean isSelected() {
return selected;
}
public void setSelected(boolean selected) {
this.selected = selected;
}
}
@Override
protected void populateMenu() {
|
File |
Project |
Line |
org/kuali/student/common/ui/client/widgets/KSTextArea.java |
KS Common UI |
170 |
org/kuali/student/common/ui/client/widgets/KSTextBox.java |
KS Common UI |
139 |
KSTextBox.super.setText(watermarkText);
watermarkShowing = true;
}
}
}
@Override
public boolean hasWatermark(){
return hasWatermark;
}
@Override
public boolean watermarkShowing() {
return watermarkShowing;
}
@Override
public String getText() {
if(!watermarkShowing){
return super.getText();
}
return null;
}
@Override
public String getValue() {
if(!watermarkShowing){
return super.getValue();
}
return null;
}
@Override
public void setValue(String value) {
if(hasWatermark){
if(value == null || (value != null && value.isEmpty())){
super.setValue(watermarkText);
addStyleName("watermark-text");
watermarkShowing = true;
}
else{
super.setValue(value);
|
File |
Project |
Line |
org/kuali/student/core/bo/Meta.java |
KS Admin |
10 |
org/kuali/student/core/entity/Meta.java |
KS Common Impl |
25 |
@Embeddable
public class Meta {
// Hibernate will not allow @Version in @Embeddable for some annoying reason
// @Version
// private long versionInd;
// public long getVersionNumber() {
// return versionInd;
// }
//
// public void setVersionInd(long versionInd) {
// this.versionInd = versionInd;
// }
@Temporal(TemporalType.TIMESTAMP)
@Column(updatable=false)
private Date createTime;
@Column(updatable=false)
private String createId;
@Temporal(TemporalType.TIMESTAMP)
private Date updateTime;
private String updateId;
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getCreateId() {
return createId;
}
public void setCreateId(String createId) {
this.createId = createId;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public String getUpdateId() {
return updateId;
}
public void setUpdateId(String updateId) {
this.updateId = updateId;
}
}
|
File |
Project |
Line |
org/kuali/student/common/ui/client/widgets/table/summary/SectionRow.java |
KS Common UI |
13 |
org/kuali/student/common/ui/client/widgets/table/summary/SummaryTableRow.java |
KS Common UI |
16 |
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public boolean isRequired() {
return isRequired;
}
public void setRequired(boolean isRequired) {
this.isRequired = isRequired;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public int getContentCellCount() {
return contentCellCount;
}
public void setContentCellCount(int contentCellCount) {
this.contentCellCount = contentCellCount;
}
public Widget getCell1() {
return cell1;
}
public void setCell1(Widget cell1) {
this.cell1 = cell1;
}
public Widget getCell2() {
return cell2;
}
public void setCell2(Widget cell2) {
this.cell2 = cell2;
}
|
File |
Project |
Line |
org/kuali/student/lum/program/client/requirements/ProgramRequirementsManageView.java |
KS LUM Program |
348 |
org/kuali/student/lum/program/client/requirements/ProgramRequirementsManageView.java |
KS LUM Program |
385 |
programWidget.addGetCluNameCallback(new Callback() {
@Override
public void exec(Object id) {
statementRpcServiceAsync.getCurrentVersion(CLU_NAMESPACE_URI, (String)id, new AsyncCallback<VersionDisplayInfo>() {
@Override
public void onFailure(Throwable throwable) {
Window.alert(throwable.getMessage());
GWT.log("Failed to retrieve clu for id: '" + "'", throwable);
}
@Override
public void onSuccess(final VersionDisplayInfo versionInfo) {
statementRpcServiceAsync.getClu(versionInfo.getId(), new AsyncCallback<CluInfo>() {
@Override
public void onFailure(Throwable throwable) {
Window.alert(throwable.getMessage());
GWT.log("Failed to retrieve clu", throwable);
}
@Override
public void onSuccess(CluInfo cluInfo) {
|
File |
Project |
Line |
org/kuali/student/security/trust/service/SecurityTokenRequestService.java |
KS Security Token Service |
17 |
org/kuali/student/security/trust/service/WSSecurityRequestor.java |
KS Security Token Service |
18 |
@WebService(targetNamespace = "http://schemas.xmlsoap.org/ws/2005/02/trust/wsdl", name = "WSSecurityRequestor")
@XmlSeeAlso({org.kuali.student.security.wssecurity.secext.dto.ObjectFactory.class,org.kuali.student.security.trust.dto.ObjectFactory.class,org.kuali.student.security.wssecurity.utility.dto.ObjectFactory.class,org.kuali.student.security.addressing.dto.ObjectFactory.class,org.kuali.student.security.policy.dto.ObjectFactory.class,org.kuali.student.security.xmldsig.dto.ObjectFactory.class})
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
public interface WSSecurityRequestor {
|
File |
Project |
Line |
org/kuali/student/lum/common/client/lo/CategoryManagement.java |
KS LUM UI Common |
404 |
org/kuali/student/lum/common/client/lo/CategoryManagement.java |
KS LUM UI Common |
506 |
public CreateCategoryDialog() {
this.setSize(540, 200);
spacer.setStyleName("KS-LOSpacer");
cancelButton.setStyleName("KS-LODialogCancel");
typeListBox.setHeight("21px");
KSLabel catLabel = new KSLabel("Category");
catLabel.setStyleName("KS-LODialogFieldLabel");
KSLabel typeLabel = new KSLabel("Type");
typeLabel.setStyleName("KS-LODialogFieldLabel");
layoutTable.setWidget(0, 0, catLabel);
layoutTable.setWidget(0, 1, typeLabel);
layoutTable.setWidget(1, 0, nameTextBox);
layoutTable.setWidget(1, 1, typeListBox);
HorizontalPanel buttonPanel = new HorizontalPanel();
buttonPanel.add(okButton);
buttonPanel.add(cancelButton);
VerticalPanel mainPanel = new VerticalPanel();
mainPanel.add(spacer);
KSLabel titleLabel = new KSLabel("Create New Category");
|
File |
Project |
Line |
org/kuali/student/lum/common/client/widgets/CommonWidgetConstants.java |
KS LUM UI Common |
30 |
org/kuali/student/lum/lu/ui/tools/client/configuration/ToolsConstants.java |
KS LUM UI |
57 |
|