KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > cms > impl > NewUserConfig


1  /**************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5
6 package org.exoplatform.services.cms.impl;
7
8 import java.util.ArrayList JavaDoc;
9 import java.util.List JavaDoc;
10
11 /**
12  * @author Benjamin Mestrallet
13  * benjamin.mestrallet@exoplatform.com
14  */

15 public class NewUserConfig {
16   private String JavaDoc contentLocation ;
17   private String JavaDoc defaultLocale ;
18   private String JavaDoc workspace;
19   private String JavaDoc template;
20   private String JavaDoc jcrPath;
21   private String JavaDoc createHome;
22   private List JavaDoc definedLocales = new ArrayList JavaDoc(5);
23   private List JavaDoc users = new ArrayList JavaDoc(5);
24   
25   public String JavaDoc getContentLocation() { return contentLocation; }
26   public void setContentLocation(String JavaDoc s) { this.contentLocation = s; }
27   
28   public String JavaDoc getDefaultLocale() { return defaultLocale; }
29   public void setDefaultLocale(String JavaDoc s) { this.defaultLocale = s; }
30   
31   public String JavaDoc getWorkspace() { return workspace; }
32   public void setWorkspace(String JavaDoc s) { this.workspace = s; }
33   
34   public String JavaDoc getJcrPath() { return jcrPath; }
35   public void setJcrPath(String JavaDoc s) { this.jcrPath = s; }
36
37   public String JavaDoc getCreateHome() { return createHome; }
38   public void setCreateHome(String JavaDoc s) { this.createHome = s; }
39   public boolean isCreateHome(){
40     if("true".equals(this.createHome))
41       return true;
42     else
43       return false;
44   }
45   
46   public String JavaDoc getTemplate() { return template; }
47   public void setTemplate(String JavaDoc template) { this.template = template; }
48   
49   public List JavaDoc getDefinedLocales() { return definedLocales; }
50   public void setDefinedLocales(List JavaDoc s) { this.definedLocales = s; }
51   
52   public List JavaDoc getUsers() { return users; }
53   public void setUsers(List JavaDoc s) { this.users = s; }
54     
55   static public class User {
56     private String JavaDoc userName ;
57     private List JavaDoc referencedFiles ;
58     
59     public User() {
60       referencedFiles = new ArrayList JavaDoc(5) ;
61     }
62         
63     public String JavaDoc getUserName() { return userName; }
64     public void setUserName(String JavaDoc userName) { this.userName = userName; }
65     
66     public List JavaDoc getReferencedFiles() { return referencedFiles; }
67     public void setReferencedFiles(List JavaDoc referencedFiles) { this.referencedFiles = referencedFiles; }
68   }
69 }
70
Popular Tags