| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kns.util.MaintenanceUtils
public final class MaintenanceUtils
| Method Summary | |
|---|---|
| protected static void | addRowsToErrorKeySet(List<Row> listOfRows,
                     Set<String> errorKeys)This method recurses through all the fields of the list of rows and adds each field's property name to the set if it starts with Constants.MAINTENANCE_NEW_MAINTAINABLE | 
| static void | checkForLockingDocument(Maintainable maintainable,
                        boolean throwExceptionIfLocked)This method will throw a ValidationExceptionif there is a valid locking document in existence and throwExceptionIfLocked is true. | 
| static void | checkForLockingDocument(MaintenanceDocument document,
                        boolean throwExceptionIfLocked)This method will throw a ValidationExceptionif there is a valid locking document in existence and throwExceptionIfLocked is true. | 
| static MaintainableCollectionDefinition | findMaintainableCollectionDefinition(List<MaintainableSectionDefinition> sections,
                                     String collectionName)Finds the MaintainableCollectionDefinition corresponding to the given collection name. | 
| static String | generateErrorKeyForSection(Section section)Given a section, returns a comma delimited string of all fields, representing the error keys that exist for a section | 
| static Map<String,String> | generateMultipleValueLookupBOTemplate(List<MaintainableSectionDefinition> sections,
                                      String collectionName)Returns the field templates defined in the maint dictionary xml files. | 
| static boolean | isMaintenanceDocumentCreatingNewRecord(String maintenanceAction) | 
| static Map<String,AttributeSecurity> | retrievePropertyPathToAttributeSecurityMappings(String docTypeName) | 
| static void | setFieldDirectInquiry(org.kuali.rice.kns.bo.BusinessObject businessObject,
                      String collectionName,
                      boolean addLine,
                      int index,
                      String attributeName,
                      Field field,
                      List<String> displayedFieldNames,
                      Maintainable maintainable,
                      MaintainableFieldDefinition maintainableFieldDefinition) | 
| static void | setFieldDirectInquiry(org.kuali.rice.kns.bo.BusinessObject businessObject,
                      String attributeName,
                      MaintainableFieldDefinition maintainableFieldDefinition,
                      Field field,
                      List<String> displayedFieldNames) | 
| static Field | setFieldQuickfinder(org.kuali.rice.kns.bo.BusinessObject businessObject,
                    String collectionName,
                    boolean addLine,
                    int index,
                    String attributeName,
                    Field field,
                    List<String> displayedFieldNames,
                    Maintainable maintainable,
                    MaintainableFieldDefinition maintainableFieldDefinition) | 
| static Field | setFieldQuickfinder(org.kuali.rice.kns.bo.BusinessObject businessObject,
                    String attributeName,
                    MaintainableFieldDefinition maintainableFieldDefinition,
                    Field field,
                    List<String> displayedFieldNames,
                    SelectiveReferenceRefresher srr)Checks to see if there has been an override lookup declared for the maintenance field. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static Map<String,String> generateMultipleValueLookupBOTemplate(List<MaintainableSectionDefinition> sections,
                                                                       String collectionName)
sections - the sections of a documentcollectionName - the name of a collection. May be a nested collection with indices (e.g. collA[1].collB)
public static MaintainableCollectionDefinition findMaintainableCollectionDefinition(List<MaintainableSectionDefinition> sections,
                                                                                    String collectionName)
sections - the sections of a maint doccollectionName - the name of a collection, relative to the root of the BO being maintained. This value may have index
                       values (e.g. [1]), but these are ignored.
public static final Field setFieldQuickfinder(org.kuali.rice.kns.bo.BusinessObject businessObject,
                                              String attributeName,
                                              MaintainableFieldDefinition maintainableFieldDefinition,
                                              Field field,
                                              List<String> displayedFieldNames,
                                              SelectiveReferenceRefresher srr)
public static final Field setFieldQuickfinder(org.kuali.rice.kns.bo.BusinessObject businessObject,
                                              String collectionName,
                                              boolean addLine,
                                              int index,
                                              String attributeName,
                                              Field field,
                                              List<String> displayedFieldNames,
                                              Maintainable maintainable,
                                              MaintainableFieldDefinition maintainableFieldDefinition)
public static final void setFieldDirectInquiry(org.kuali.rice.kns.bo.BusinessObject businessObject,
                                               String attributeName,
                                               MaintainableFieldDefinition maintainableFieldDefinition,
                                               Field field,
                                               List<String> displayedFieldNames)
public static final void setFieldDirectInquiry(org.kuali.rice.kns.bo.BusinessObject businessObject,
                                               String collectionName,
                                               boolean addLine,
                                               int index,
                                               String attributeName,
                                               Field field,
                                               List<String> displayedFieldNames,
                                               Maintainable maintainable,
                                               MaintainableFieldDefinition maintainableFieldDefinition)
public static String generateErrorKeyForSection(Section section)
section - a section
protected static void addRowsToErrorKeySet(List<Row> listOfRows,
                                           Set<String> errorKeys)
listOfRows - errorKeys - KNSConstants.MAINTENANCE_NEW_MAINTAINABLEpublic static boolean isMaintenanceDocumentCreatingNewRecord(String maintenanceAction)
public static void checkForLockingDocument(MaintenanceDocument document,
                                           boolean throwExceptionIfLocked)
ValidationException if there is a valid locking document in existence and throwExceptionIfLocked is true.
public static void checkForLockingDocument(Maintainable maintainable,
                                           boolean throwExceptionIfLocked)
ValidationException if there is a valid locking document in existence and throwExceptionIfLocked is true.
public static Map<String,AttributeSecurity> retrievePropertyPathToAttributeSecurityMappings(String docTypeName)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||