Ignore:
Timestamp:
May 6, 2009, 3:40:07 AM (15 years ago)
Author:
gav
Message:

Logins now route through a welcome action to allow flash message and user environment setup. Session timeout now user configurable and defaults to 12 hours. Work on Planned Maintenance.

Location:
trunk/grails-app/domain
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/MaintenanceAction.groovy

    r124 r127  
    1 class MaintenanceAction {
     1class TaskAction {
     2    Task task
    23    MaintenancePolicy maintenancePolicy
    3     PlannedMaintenance plannedMaintenance
    44    SystemSection systemSection
    55    Asset asset
     
    88    SubAssembly subAssembly
    99    ComponentItem componentItem
    10     String maintenanceAction
     10    String action
    1111    String reasoning = ""
    12     Integer pmStepNumber
     12    Integer stepNumber
    1313    boolean isActive = true
    1414
    1515//     static hasMany = []
    1616
    17     static belongsTo = [PlannedMaintenance]
     17//     static belongsTo = []
    1818
    1919    static constraints = {
     
    2424        subAssembly(blank:true, nullable:true)
    2525        componentItem(blank:true, nullable:true)
    26         pmStepNumber(blank:true, nullable:true)
     26        stepNumber(blank:true, nullable:true)
    2727    }
    2828
  • trunk/grails-app/domain/Person.groovy

    r93 r127  
    1313    String lastName
    1414    String employeeID
     15
     16    /* Set after login by 'welcome' action, default to 12 hours, aka "sess.setMaxInactiveInterval(seconds) */
     17    Integer sessionTimeout = 720
    1518
    1619        /** MD5 Password */
     
    4245        //So we need to use pass for validation then encode it for above.
    4346        pass(blank: false, minSize:4)
     47        sessionTimeout(min:60, max:720)
    4448
    4549        }
  • trunk/grails-app/domain/RecurringSchedule.groovy

    r125 r127  
    1 class RecurringSchedule {
     1class TaskRecurringSchedule {
    22
    33    Task task
     4//     Task lastGeneratedSubTask
    45    Period period
    5     PlannedMaintenance plannedMaintenance
    66
    77    Integer recurEvery
    88    Date startDate = new Date()
    9     Date lastExecutedDate
     9    Date lastGeneratedDate
    1010    Date nextDueDate
    1111    boolean isActive = true
     
    1616
    1717    static constraints = {
    18         plannedMaintenance(blank:true, nullable:true)
    19         lastExecutedDate(blank:true, nullable:true)
     18//         lastGeneratedDate(blank:true, nullable:true)
    2019    }
    2120
Note: See TracChangeset for help on using the changeset viewer.