1 20 21 package com.methodhead; 22 23 import com.methodhead.test.*; 24 import com.methodhead.sitecontext.*; 25 import com.methodhead.auth.*; 26 import com.methodhead.util.*; 27 import com.methodhead.property.*; 28 import com.methodhead.event.*; 29 import javax.servlet.http.*; 30 import org.apache.struts.action.*; 31 32 public class TestPolicy 33 implements 34 AuthPolicy, 35 SiteContextPolicy, 36 PropertyPolicy, 37 EventPolicy { 38 39 41 43 45 47 52 public AuthUser newUser() { 53 return new TestUser(); 54 } 55 56 61 public SiteAuthUser newSiteUser() { 62 return new TestSiteUser(); 63 } 64 65 public boolean autoLogin( 66 AuthUser user, 67 HttpServletRequest request, 68 ActionForm form ) { 69 return true; 70 } 71 72 public String isSiteLoginFormAuthorized( 73 OperationContext op ) { 74 return null; 75 } 76 77 public String isSiteLoginAuthorized( 78 OperationContext op ) { 79 return null; 80 } 81 82 public String isSiteLogoutAuthorized( 83 OperationContext op ) { 84 return null; 85 } 86 87 public String isSiteContextDeleteAuthorized( 88 OperationContext op ) { 89 return null; 90 } 91 92 public String isSiteContextSaveNewAuthorized( 93 OperationContext op ) { 94 return null; 95 } 96 97 public String isSiteContextListAuthorized( 98 OperationContext op ) { 99 return null; 100 } 101 102 public String isSiteContextEditAuthorized( 103 OperationContext op ) { 104 return null; 105 } 106 107 public String isSiteContextNewAuthorized( 108 OperationContext op ) { 109 return null; 110 } 111 112 public String isSiteContextSaveAuthorized( 113 OperationContext op ) { 114 return null; 115 } 116 117 public String isListPropertiesAuthorized( 118 OperationContext op ) { 119 return null; 120 } 121 122 public String isSetPropertyFormAuthorized( 123 OperationContext op ) { 124 return null; 125 } 126 127 public String isSetPropertyAuthorized( 128 OperationContext op ) { 129 return null; 130 } 131 132 public String isListEventsAuthorized( 133 OperationContext op ) { 134 return null; 135 } 136 137 139 } 141 | Popular Tags |