Advertisement
DrupalCustom

doDefault

Jul 31st, 2012
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.36 KB | None | 0 0
  1. package com.atlassian.lionbridge;
  2.  
  3.  
  4.  
  5. import java.util.Calendar;
  6. import java.util.Date;
  7. import java.util.List;
  8.  
  9. import org.apache.axis.utils.ClassUtils;
  10. import org.tempuri.FreewayAuthLocator;
  11. import org.tempuri.FreewayAuthSoap;
  12. import org.tempuri.Vojo;
  13. import org.tempuri.VojoLocator;
  14. import org.tempuri.VojoSoap;
  15.  
  16. import com.atlassian.confluence.core.ConfluenceActionSupport;
  17. import com.atlassian.confluence.pages.AbstractPage;
  18. import com.atlassian.confluence.pages.actions.PageAware;
  19.  
  20. import com.atlassian.confluence.spaces.actions.*;
  21.  
  22. import com.atlassian.confluence.pages.Page;
  23.  
  24.  
  25. import java.util.ArrayList;
  26. import java.util.Collections;
  27.  
  28.  
  29. import com.opensymphony.xwork.Action;
  30.  
  31. /**
  32.  * The simplest action possible
  33.  */
  34.  
  35.  
  36. public class FreewayProjectAction extends AbstractEditSpaceAction
  37. {
  38.    
  39.     public List getAvailablePages()
  40.     {
  41.         if ((availablePages == null) && (getSpace() != null))
  42.         {
  43.             availablePages = new ArrayList(pageManager.getPages(getSpace(), true));
  44.             Page blankPageAtTop = new Page();
  45.             blankPageAtTop.setTitle("");
  46.             availablePages.add(0, blankPageAtTop);// Give user the option not to select any home page
  47.         }
  48.         Collections.sort(availablePages);
  49.  
  50.         return availablePages;
  51.     }
  52.  
  53.     public void setSpaceManager()
  54.     {
  55.     }
  56.    
  57.    
  58.  
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement