1 17 18 19 20 package org.apache.lenya.cms.workflow; 21 22 import org.apache.lenya.workflow.Situation; 23 24 public class CMSSituation implements Situation { 25 26 30 public String getMachineIp() { 31 return machineIp; 32 } 33 34 38 public String getUserId() { 39 return userId; 40 } 41 42 48 protected CMSSituation(String [] roleIds, String userId, String machineIp) { 49 this.roleIds = roleIds; 50 this.userId = userId; 51 this.machineIp = machineIp; 52 } 53 54 private String [] roleIds; 55 56 61 public String [] getRoleIds() { 62 return roleIds; 63 } 64 65 68 public String toString() { 69 return "(roles: " + roleIds + ")"; 70 } 71 72 private String userId; 73 private String machineIp; 74 75 } 76 | Popular Tags |