Permalink
Browse files

Commit-Demo Version

  • Loading branch information...
0 parents commit 0614a2fa6df92e38c93045126bc917c1ac352043 @sureshgoli committed Oct 8, 2012
Showing with 3,454 additions and 0 deletions.
  1. +23 −0 SampleOne/.project
  2. +13 −0 SampleOne/.settings/com.salesforce.ide.core.prefs
  3. +1 −0 SampleOne/salesforce.schema
  4. +4 −0 SampleOne/src/classes/AccountSample.cls
  5. +5 −0 SampleOne/src/classes/AccountSample.cls-meta.xml
  6. +24 −0 SampleOne/src/classes/ChangePasswordController.cls
  7. +5 −0 SampleOne/src/classes/ChangePasswordController.cls-meta.xml
  8. +17 −0 SampleOne/src/classes/ConnectorConfig.cls
  9. +5 −0 SampleOne/src/classes/ConnectorConfig.cls-meta.xml
  10. +92 −0 SampleOne/src/classes/ContactSearchController.cls
  11. +5 −0 SampleOne/src/classes/ContactSearchController.cls-meta.xml
  12. +2 −0 SampleOne/src/classes/ContactViewController.cls
  13. +5 −0 SampleOne/src/classes/ContactViewController.cls-meta.xml
  14. +15 −0 SampleOne/src/classes/DynaTestController.cls
  15. +5 −0 SampleOne/src/classes/DynaTestController.cls-meta.xml
  16. +27 −0 SampleOne/src/classes/ForgotPasswordController.cls
  17. +5 −0 SampleOne/src/classes/ForgotPasswordController.cls-meta.xml
  18. +3 −0 SampleOne/src/classes/HelloWorldOneController.cls
  19. +5 −0 SampleOne/src/classes/HelloWorldOneController.cls-meta.xml
  20. +7 −0 SampleOne/src/classes/JQueryTestOne.cls
  21. +5 −0 SampleOne/src/classes/JQueryTestOne.cls-meta.xml
  22. +15 −0 SampleOne/src/classes/MyBatch.cls
  23. +5 −0 SampleOne/src/classes/MyBatch.cls-meta.xml
  24. +14 −0 SampleOne/src/classes/MyController.cls
  25. +5 −0 SampleOne/src/classes/MyController.cls-meta.xml
  26. +124 −0 SampleOne/src/classes/MyProfilePageController.cls
  27. +5 −0 SampleOne/src/classes/MyProfilePageController.cls-meta.xml
  28. +30 −0 SampleOne/src/classes/MyRestResource.cls
  29. +5 −0 SampleOne/src/classes/MyRestResource.cls-meta.xml
  30. +6 −0 SampleOne/src/classes/MyScheduler.cls
  31. +5 −0 SampleOne/src/classes/MyScheduler.cls-meta.xml
  32. +7 −0 SampleOne/src/classes/MyWebService.cls
  33. +5 −0 SampleOne/src/classes/MyWebService.cls-meta.xml
  34. +5 −0 SampleOne/src/classes/ParentOne.cls
  35. +5 −0 SampleOne/src/classes/ParentOne.cls-meta.xml
  36. +10 −0 SampleOne/src/classes/ParentTwo.cls
  37. +5 −0 SampleOne/src/classes/ParentTwo.cls-meta.xml
  38. +125 −0 SampleOne/src/classes/PayDisplay.cls
  39. +5 −0 SampleOne/src/classes/PayDisplay.cls-meta.xml
  40. +1 −0 SampleOne/src/classes/RequestMethods.cls
  41. +5 −0 SampleOne/src/classes/RequestMethods.cls-meta.xml
  42. +29 −0 SampleOne/src/classes/RestClient.cls
  43. +5 −0 SampleOne/src/classes/RestClient.cls-meta.xml
  44. +61 −0 SampleOne/src/classes/RestClientTest.cls
  45. +5 −0 SampleOne/src/classes/RestClientTest.cls-meta.xml
  46. +1 −0 SampleOne/src/classes/RestException.cls
  47. +5 −0 SampleOne/src/classes/RestException.cls-meta.xml
  48. +97 −0 SampleOne/src/classes/RestExplorerController.cls
  49. +5 −0 SampleOne/src/classes/RestExplorerController.cls-meta.xml
  50. +71 −0 SampleOne/src/classes/RestExplorerControllerTest.cls
  51. +5 −0 SampleOne/src/classes/RestExplorerControllerTest.cls-meta.xml
  52. +72 −0 SampleOne/src/classes/RestResponseInstrumenter.cls
  53. +5 −0 SampleOne/src/classes/RestResponseInstrumenter.cls-meta.xml
  54. +103 −0 SampleOne/src/classes/RestResponseInstrumenterTest.cls
  55. +5 −0 SampleOne/src/classes/RestResponseInstrumenterTest.cls-meta.xml
  56. +54 −0 SampleOne/src/classes/SOQLTest.cls
  57. +5 −0 SampleOne/src/classes/SOQLTest.cls-meta.xml
  58. +18 −0 SampleOne/src/classes/SampleClass.cls
  59. +5 −0 SampleOne/src/classes/SampleClass.cls-meta.xml
  60. +25 −0 SampleOne/src/classes/SearchController.cls
  61. +5 −0 SampleOne/src/classes/SearchController.cls-meta.xml
  62. +19 −0 SampleOne/src/classes/SessionTestController.cls
  63. +5 −0 SampleOne/src/classes/SessionTestController.cls-meta.xml
  64. +3 −0 SampleOne/src/classes/SharingTest.cls
  65. +5 −0 SampleOne/src/classes/SharingTest.cls-meta.xml
  66. +23 −0 SampleOne/src/classes/SiteLoginController.cls
  67. +5 −0 SampleOne/src/classes/SiteLoginController.cls-meta.xml
  68. +64 −0 SampleOne/src/classes/SiteRegisterController.cls
  69. +5 −0 SampleOne/src/classes/SiteRegisterController.cls-meta.xml
  70. +3 −0 SampleOne/src/classes/TestController.cls
  71. +5 −0 SampleOne/src/classes/TestController.cls-meta.xml
  72. +11 −0 SampleOne/src/classes/TestOne.cls
  73. +5 −0 SampleOne/src/classes/TestOne.cls-meta.xml
  74. +34 −0 SampleOne/src/classes/TestSOQL.cls
  75. +5 −0 SampleOne/src/classes/TestSOQL.cls-meta.xml
  76. +7 −0 SampleOne/src/classes/TopOpportunityController.cls
  77. +5 −0 SampleOne/src/classes/TopOpportunityController.cls-meta.xml
  78. +11 −0 SampleOne/src/classes/componentController.cls
  79. +5 −0 SampleOne/src/classes/componentController.cls-meta.xml
  80. +13 −0 SampleOne/src/classes/ctrlOne.cls
  81. +5 −0 SampleOne/src/classes/ctrlOne.cls-meta.xml
  82. +14 −0 SampleOne/src/classes/lifecycle.cls
  83. +5 −0 SampleOne/src/classes/lifecycle.cls-meta.xml
  84. +12 −0 SampleOne/src/classes/myControllerExtension.cls
  85. +5 −0 SampleOne/src/classes/myControllerExtension.cls-meta.xml
  86. +31 −0 SampleOne/src/classes/myControllerOne.cls
  87. +5 −0 SampleOne/src/classes/myControllerOne.cls-meta.xml
  88. +15 −0 SampleOne/src/classes/sampleASController.cls
  89. +5 −0 SampleOne/src/classes/sampleASController.cls-meta.xml
  90. +21 −0 SampleOne/src/classes/sampleController.cls
  91. +5 −0 SampleOne/src/classes/sampleController.cls-meta.xml
  92. +13 −0 SampleOne/src/classes/simplegetset.cls
  93. +5 −0 SampleOne/src/classes/simplegetset.cls-meta.xml
  94. +86 −0 SampleOne/src/classes/tempuriOrg.cls
  95. +5 −0 SampleOne/src/classes/tempuriOrg.cls-meta.xml
  96. +17 −0 SampleOne/src/classes/theController.cls
  97. +5 −0 SampleOne/src/classes/theController.cls-meta.xml
  98. +50 −0 SampleOne/src/classes/wsStrikeironCom.cls
  99. +5 −0 SampleOne/src/classes/wsStrikeironCom.cls-meta.xml
  100. +16 −0 SampleOne/src/package.xml
  101. +19 −0 SampleOne/src/pages/AccTable.page
  102. +5 −0 SampleOne/src/pages/AccTable.page-meta.xml
  103. +27 −0 SampleOne/src/pages/ActionFunctionTest.page
  104. +5 −0 SampleOne/src/pages/ActionFunctionTest.page-meta.xml
  105. +10 −0 SampleOne/src/pages/AddressPage.page
  106. +5 −0 SampleOne/src/pages/AddressPage.page-meta.xml
  107. +23 −0 SampleOne/src/pages/AjaxPage.page
  108. +5 −0 SampleOne/src/pages/AjaxPage.page-meta.xml
  109. +1 −0 SampleOne/src/pages/AnswersHome.page
  110. +6 −0 SampleOne/src/pages/AnswersHome.page-meta.xml
  111. +6 −0 SampleOne/src/pages/ApexPage.page
  112. +5 −0 SampleOne/src/pages/ApexPage.page-meta.xml
  113. +17 −0 SampleOne/src/pages/BandwidthExceeded.page
  114. +6 −0 SampleOne/src/pages/BandwidthExceeded.page-meta.xml
  115. +66 −0 SampleOne/src/pages/CandidateMap.page
  116. +5 −0 SampleOne/src/pages/CandidateMap.page-meta.xml
  117. +41 −0 SampleOne/src/pages/ChangePassword.page
  118. +6 −0 SampleOne/src/pages/ChangePassword.page-meta.xml
  119. +121 −0 SampleOne/src/pages/ContactSearch.page
  120. +5 −0 SampleOne/src/pages/ContactSearch.page-meta.xml
  121. +10 −0 SampleOne/src/pages/ContactView.page
  122. +5 −0 SampleOne/src/pages/ContactView.page-meta.xml
  123. +7 −0 SampleOne/src/pages/CourseList.page
  124. +5 −0 SampleOne/src/pages/CourseList.page-meta.xml
  125. +6 −0 SampleOne/src/pages/DemoDisplay.page
  126. +5 −0 SampleOne/src/pages/DemoDisplay.page-meta.xml
  127. +5 −0 SampleOne/src/pages/DemoPage.page
  128. +5 −0 SampleOne/src/pages/DemoPage.page-meta.xml
  129. +19 −0 SampleOne/src/pages/DevicePage.page
  130. +5 −0 SampleOne/src/pages/DevicePage.page-meta.xml
  131. +26 −0 SampleOne/src/pages/DisplayDemo.page
  132. +5 −0 SampleOne/src/pages/DisplayDemo.page-meta.xml
  133. +3 −0 SampleOne/src/pages/DynaTestOne.page
  134. +5 −0 SampleOne/src/pages/DynaTestOne.page-meta.xml
  135. +5 −0 SampleOne/src/pages/Dynamic_Test.page
  136. +5 −0 SampleOne/src/pages/Dynamic_Test.page-meta.xml
  137. +7 −0 SampleOne/src/pages/Employee.page
  138. +5 −0 SampleOne/src/pages/Employee.page-meta.xml
  139. +6 −0 SampleOne/src/pages/EmployeePage.page
  140. +5 −0 SampleOne/src/pages/EmployeePage.page-meta.xml
  141. +37 −0 SampleOne/src/pages/Exception.page
  142. +6 −0 SampleOne/src/pages/Exception.page-meta.xml
  143. +35 −0 SampleOne/src/pages/FileNotFound.page
  144. +6 −0 SampleOne/src/pages/FileNotFound.page-meta.xml
  145. +36 −0 SampleOne/src/pages/ForgotPassword.page
  146. +6 −0 SampleOne/src/pages/ForgotPassword.page-meta.xml
  147. +30 −0 SampleOne/src/pages/ForgotPasswordConfirm.page
  148. +6 −0 SampleOne/src/pages/ForgotPasswordConfirm.page-meta.xml
  149. +1 −0 SampleOne/src/pages/IdeasHome.page
  150. +6 −0 SampleOne/src/pages/IdeasHome.page-meta.xml
  151. +19 −0 SampleOne/src/pages/InMaintenance.page
  152. +6 −0 SampleOne/src/pages/InMaintenance.page-meta.xml
  153. +36 −0 SampleOne/src/pages/JQueryTest.page
  154. +5 −0 SampleOne/src/pages/JQueryTest.page-meta.xml
  155. +5 −0 SampleOne/src/pages/JQueryTestOne.page
  156. +5 −0 SampleOne/src/pages/JQueryTestOne.page-meta.xml
  157. +6 −0 SampleOne/src/pages/ListDisplay.page
  158. +5 −0 SampleOne/src/pages/ListDisplay.page-meta.xml
  159. +25 −0 SampleOne/src/pages/MassUpdateStatus.page
  160. +5 −0 SampleOne/src/pages/MassUpdateStatus.page-meta.xml
  161. +7 −0 SampleOne/src/pages/MyExtnPage.page
  162. +5 −0 SampleOne/src/pages/MyExtnPage.page-meta.xml
  163. +72 −0 SampleOne/src/pages/MyProfilePage.page
  164. +6 −0 SampleOne/src/pages/MyProfilePage.page-meta.xml
  165. +3 −0 SampleOne/src/pages/NewBooking.page
  166. +5 −0 SampleOne/src/pages/NewBooking.page-meta.xml
  167. +61 −0 SampleOne/src/pages/PaysDisplay.page
  168. +5 −0 SampleOne/src/pages/PaysDisplay.page-meta.xml
  169. +5 −0 SampleOne/src/pages/RenderingPDF.page
  170. +5 −0 SampleOne/src/pages/RenderingPDF.page-meta.xml
  171. +92 −0 SampleOne/src/pages/RestExplorer.page
  172. +5 −0 SampleOne/src/pages/RestExplorer.page-meta.xml
  173. +13 −0 SampleOne/src/pages/SOQLTest.page
  174. +5 −0 SampleOne/src/pages/SOQLTest.page-meta.xml
  175. +18 −0 SampleOne/src/pages/SamplePage.page
  176. +5 −0 SampleOne/src/pages/SamplePage.page-meta.xml
  177. +16 −0 SampleOne/src/pages/SearchPage.page
  178. +5 −0 SampleOne/src/pages/SearchPage.page-meta.xml
  179. +29 −0 SampleOne/src/pages/SiteLogin.page
  180. +6 −0 SampleOne/src/pages/SiteLogin.page-meta.xml
  181. +45 −0 SampleOne/src/pages/SiteRegister.page
  182. +6 −0 SampleOne/src/pages/SiteRegister.page-meta.xml
  183. +30 −0 SampleOne/src/pages/SiteRegisterConfirm.page
  184. +6 −0 SampleOne/src/pages/SiteRegisterConfirm.page-meta.xml
  185. +13 −0 SampleOne/src/pages/SiteTemplate.page
  186. +6 −0 SampleOne/src/pages/SiteTemplate.page-meta.xml
  187. +7 −0 SampleOne/src/pages/StateTest.page
  188. +5 −0 SampleOne/src/pages/StateTest.page-meta.xml
  189. +23 −0 SampleOne/src/pages/StdExceptionTemplate.page
  190. +6 −0 SampleOne/src/pages/StdExceptionTemplate.page-meta.xml
  191. +17 −0 SampleOne/src/pages/TestSOQL.page
  192. +5 −0 SampleOne/src/pages/TestSOQL.page-meta.xml
  193. +38 −0 SampleOne/src/pages/Unauthorized.page
  194. +6 −0 SampleOne/src/pages/Unauthorized.page-meta.xml
  195. +19 −0 SampleOne/src/pages/UnderConstruction.page
  196. +6 −0 SampleOne/src/pages/UnderConstruction.page-meta.xml
  197. +4 −0 SampleOne/src/pages/demoTwo.page
  198. +5 −0 SampleOne/src/pages/demoTwo.page-meta.xml
  199. +6 −0 SampleOne/src/pages/myController.page
  200. +5 −0 SampleOne/src/pages/myController.page-meta.xml
  201. +17 −0 SampleOne/src/pages/mypage.page
  202. +5 −0 SampleOne/src/pages/mypage.page-meta.xml
  203. +3 −0 SampleOne/src/pages/newbookin.page
  204. +5 −0 SampleOne/src/pages/newbookin.page-meta.xml
  205. +4 −0 SampleOne/src/pages/relatedListTest.page
  206. +5 −0 SampleOne/src/pages/relatedListTest.page-meta.xml
  207. +11 −0 SampleOne/src/pages/sampletest.page
  208. +5 −0 SampleOne/src/pages/sampletest.page-meta.xml
  209. +38 −0 SampleOne/src/pages/setEmps.page
  210. +5 −0 SampleOne/src/pages/setEmps.page-meta.xml
  211. +3 −0 SampleOne/src/pages/success.page
  212. +5 −0 SampleOne/src/pages/success.page-meta.xml
  213. +22 −0 SampleOne/src/pages/tabbedAccount.page
  214. +5 −0 SampleOne/src/pages/tabbedAccount.page-meta.xml
  215. +9 −0 SampleOne/src/pages/urlParams.page
  216. +5 −0 SampleOne/src/pages/urlParams.page-meta.xml
  217. +6 −0 SampleOne/src/pages/vfsampleOne.page
  218. +5 −0 SampleOne/src/pages/vfsampleOne.page-meta.xml
  219. +7 −0 SampleOne/src/triggers/TriggerOnProfile.trigger
  220. +5 −0 SampleOne/src/triggers/TriggerOnProfile.trigger-meta.xml
  221. +6 −0 SampleOne/src/triggers/accountTrigger.trigger
  222. +5 −0 SampleOne/src/triggers/accountTrigger.trigger-meta.xml
  223. +8 −0 SampleOne/src/triggers/insertTest.trigger
  224. +5 −0 SampleOne/src/triggers/insertTest.trigger-meta.xml
  225. +3 −0 SampleOne/src/triggers/payTest.trigger
  226. +5 −0 SampleOne/src/triggers/payTest.trigger-meta.xml
  227. +8 −0 SampleOne/src/triggers/updateAccountManager.trigger
  228. +5 −0 SampleOne/src/triggers/updateAccountManager.trigger-meta.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>SampleOne</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>com.salesforce.ide.builder.online</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.salesforce.ide.builder.default</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.salesforce.ide.nature.default</nature>
+ <nature>com.salesforce.ide.nature.online</nature>
+ </natures>
+</projectDescription>
@@ -0,0 +1,13 @@
+#Mon Oct 08 11:54:33 BST 2012
+eclipse.preferences.version=1
+endpointApiVersion=25.0
+endpointEnvironment=Production/Developer Edition
+endpointServer=www.salesforce.com
+httpsProtocol=true
+ideVersion=25.0
+keependpoint=false
+metadataFormatVersion=25.0
+namespacePrefix=
+packageName=unpackaged
+readTimeout=400
+username=goli.suresh.kumar@gmail.com
@@ -0,0 +1 @@
+place holder
@@ -0,0 +1,4 @@
+public with sharing class AccountSample {
+
+ public String account { get; set; }
+}
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
+ <apiVersion>25.0</apiVersion>
+ <status>Active</status>
+</ApexClass>
@@ -0,0 +1,24 @@
+/**
+ * An apex page controller that exposes the change password functionality
+ */
+public with sharing class ChangePasswordController {
+ public String oldPassword {get; set;}
+ public String newPassword {get; set;}
+ public String verifyNewPassword {get; set;}
+
+ public PageReference changePassword() {
+ return Site.changePassword(newPassword, verifyNewPassword, oldpassword);
+ }
+
+ public ChangePasswordController() {}
+
+ @IsTest(SeeAllData=true) public static void testChangePasswordController() {
+ // Instantiate a new controller with all parameters in the page
+ ChangePasswordController controller = new ChangePasswordController();
+ controller.oldPassword = '123456';
+ controller.newPassword = 'qwerty1';
+ controller.verifyNewPassword = 'qwerty1';
+
+ System.assertEquals(controller.changePassword(),null);
+ }
+}
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
+ <apiVersion>24.0</apiVersion>
+ <status>Active</status>
+</ApexClass>
@@ -0,0 +1,17 @@
+public with sharing class ConnectorConfig {
+ private String baseUrl;
+ private String sessionId;
+
+ public ConnectorConfig(String baseUrl, String sessionId) {
+ this.baseUrl = baseUrl;
+ this.sessionId = sessionId;
+ }
+
+ public String getBaseUrl() {
+ return baseUrl;
+ }
+
+ public String getSessionId() {
+ return sessionId;
+ }
+}
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
+ <apiVersion>20.0</apiVersion>
+ <status>Active</status>
+</ApexClass>
@@ -0,0 +1,92 @@
+public with sharing class ContactSearchController {
+
+ // the soql without the order and limit
+ private String soql {get;set;}
+ // the collection of contacts to display
+ public List<Contact> contacts {get;set;}
+
+ // the current sort direction. defaults to asc
+ public String sortDir {
+ get { if (sortDir == null) { sortDir = 'asc'; } return sortDir; }
+ set;
+ }
+
+ // the current field to sort by. defaults to last name
+ public String sortField {
+ get { if (sortField == null) {sortField = 'lastName'; } return sortField; }
+ set;
+ }
+
+ // format the soql for display on the visualforce page
+ public String debugSoql {
+ get { return soql + ' order by ' + sortField + ' ' + sortDir + ' limit 20'; }
+ set;
+ }
+
+ // init the controller and display some sample data when the page loads
+ public ContactSearchController() {
+ soql = 'select firstname, lastname, account.name, interested_technologies__c from contact where account.name != null';
+ runQuery();
+ }
+
+ // toggles the sorting of query from asc<-->desc
+ public void toggleSort() {
+ // simply toggle the direction
+ sortDir = sortDir.equals('asc') ? 'desc' : 'asc';
+ // run the query again
+ runQuery();
+ }
+
+ // runs the actual query
+ public void runQuery() {
+
+ try {
+ contacts = Database.query(soql + ' order by ' + sortField + ' ' + sortDir + ' limit 20');
+ } catch (Exception e) {
+ ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.ERROR, 'Ooops!'));
+ }
+
+ }
+
+ // runs the search with parameters passed via Javascript
+ public PageReference runSearch() {
+
+ String firstName = Apexpages.currentPage().getParameters().get('firstname');
+ String lastName = Apexpages.currentPage().getParameters().get('lastname');
+ String accountName = Apexpages.currentPage().getParameters().get('accountName');
+ String technology = Apexpages.currentPage().getParameters().get('technology');
+
+ soql = 'select firstname, lastname, account.name, interested_technologies__c from contact where account.name != null';
+ if (!firstName.equals(''))
+ soql += ' and firstname LIKE \''+String.escapeSingleQuotes(firstName)+'%\'';
+ if (!lastName.equals(''))
+ soql += ' and lastname LIKE \''+String.escapeSingleQuotes(lastName)+'%\'';
+ if (!accountName.equals(''))
+ soql += ' and account.name LIKE \''+String.escapeSingleQuotes(accountName)+'%\'';
+ if (!technology.equals(''))
+ soql += ' and interested_technologies__c includes (\''+technology+'\')';
+
+ // run the query again
+ runQuery();
+
+ return null;
+ }
+
+ // use apex describe to build the picklist values
+ public List<String> technologies {
+ get {
+ if (technologies == null) {
+
+ technologies = new List<String>();
+ Schema.DescribeFieldResult field = Contact.interested_technologies__c.getDescribe();
+
+ for (Schema.PicklistEntry f : field.getPicklistValues())
+ technologies.add(f.getLabel());
+
+ }
+ return technologies;
+ }
+ set;
+ }
+
+}
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
+ <apiVersion>25.0</apiVersion>
+ <status>Active</status>
+</ApexClass>
@@ -0,0 +1,2 @@
+public with sharing class ContactViewController {
+}
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
+ <apiVersion>24.0</apiVersion>
+ <status>Active</status>
+</ApexClass>
@@ -0,0 +1,15 @@
+public class DynaTestController {
+
+
+
+ public Component.Apex.OutputPanel getComponentValue() {
+ Component.Apex.OutputPanel dynOutPanel= new Component.Apex.OutputPanel();
+
+ Component.Apex.OutputText outText = new Component.Apex.OutputText();
+ outText.value = 'Some dynamic output text.';
+ dynOutPanel.childComponents.add(outText);
+
+ return dynOutPanel;
+ }
+
+}
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
+ <apiVersion>25.0</apiVersion>
+ <status>Active</status>
+</ApexClass>
@@ -0,0 +1,27 @@
+/**
+ * An apex page controller that exposes the site forgot password functionality
+ */
+public with sharing class ForgotPasswordController {
+ public String username {get; set;}
+
+ public ForgotPasswordController() {}
+
+ public PageReference forgotPassword() {
+ boolean success = Site.forgotPassword(username);
+ PageReference pr = Page.ForgotPasswordConfirm;
+ pr.setRedirect(true);
+
+ if (success) {
+ return pr;
+ }
+ return null;
+ }
+
+ @IsTest(SeeAllData=true) public static void testForgotPasswordController() {
+ // Instantiate a new controller with all parameters in the page
+ ForgotPasswordController controller = new ForgotPasswordController();
+ controller.username = 'test@salesforce.com';
+
+ System.assertEquals(controller.forgotPassword(),null);
+ }
+}
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
+ <apiVersion>24.0</apiVersion>
+ <status>Active</status>
+</ApexClass>
@@ -0,0 +1,3 @@
+public with sharing class HelloWorldOneController {
+
+}
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
+ <apiVersion>24.0</apiVersion>
+ <status>Active</status>
+</ApexClass>
@@ -0,0 +1,7 @@
+global class JQueryTestOne {
+@RemoteAction
+global static String findContacts(string Name) {
+
+return Name+'Welcome';
+}
+}
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
+ <apiVersion>25.0</apiVersion>
+ <status>Active</status>
+</ApexClass>
@@ -0,0 +1,15 @@
+global class MyBatch implements Database.Batchable<sObject>{
+
+
+ global Database.QueryLocator start(Database.BatchableContext BC){
+ return Database.getQueryLocator('SELECT ID from Account');
+ }
+
+ global void execute(Database.BatchableContext BC, List<sObject> scope){
+ for(integer i=0;i<10;i++)
+ System.debug('====================Debug===================');
+ }
+
+ global void finish(Database.BatchableContext BC){
+ }
+}
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
+ <apiVersion>25.0</apiVersion>
+ <status>Active</status>
+</ApexClass>
@@ -0,0 +1,14 @@
+public class MyController {
+private final Account account;
+public MyController() {
+account = [SELECT Id, Name, Site FROM Account
+WHERE Id = :ApexPages.currentPage().getParameters().get('id')];
+}
+public Account getAccount() {
+return account;
+}
+public PageReference save() {
+update account;
+return null;
+}
+}
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
+ <apiVersion>25.0</apiVersion>
+ <status>Active</status>
+</ApexClass>
Oops, something went wrong.

0 comments on commit 0614a2f

Please sign in to comment.