|
1 | 1 | /*
|
2 |
| - * File : $Source$ |
3 |
| - * Date : $Date$ |
4 |
| - * Version: $Revision$ |
5 |
| - * |
6 | 2 | * This library is part of OpenCms -
|
7 | 3 | * the Open Source Content Management System
|
8 | 4 | *
|
9 |
| - * Copyright (C) 2002 - 2011 Alkacon Software (http://www.alkacon.com) |
| 5 | + * Copyright (C) Alkacon Software (http://www.alkacon.com) |
10 | 6 | *
|
11 | 7 | * This library is free software; you can redistribute it and/or
|
12 | 8 | * modify it under the terms of the GNU Lesser General Public
|
|
38 | 34 | * An enum that represents the possible search scope choices in the ADE gallery search tab.<p>
|
39 | 35 | */
|
40 | 36 | public enum CmsGallerySearchScope {
|
| 37 | + /** Search only in the shared folder. */ |
| 38 | + shared(false, false, true, "GUI_SCOPE_SHARED_0"), |
| 39 | + |
41 | 40 | /** Search in the current site. */
|
42 | 41 | site(true, false, false, "GUI_SCOPE_SITE_0"),
|
43 | 42 |
|
44 |
| - /** Search in the current subsite. */ |
45 |
| - subSite(false, true, false, "GUI_SCOPE_SUBSITE_0"), |
46 |
| - |
47 | 43 | /** Search in the current site and the shared folder. */
|
48 | 44 | siteShared(true, false, true, "GUI_SCOPE_SITESHARED_0"),
|
49 | 45 |
|
| 46 | + /** Search in the current subsite. */ |
| 47 | + subSite(false, true, false, "GUI_SCOPE_SUBSITE_0"), |
| 48 | + |
50 | 49 | /** Search in the current subsite and the shared folder. */
|
51 |
| - subSiteShared(false, true, true, "GUI_SCOPE_SUBSITESHARED_0"), |
| 50 | + subSiteShared(false, true, true, "GUI_SCOPE_SUBSITESHARED_0"); |
52 | 51 |
|
53 |
| - /** Search only in the shared folder. */ |
54 |
| - shared(false, false, true, "GUI_SCOPE_SHARED_0"); |
| 52 | + /** The localization key.*/ |
| 53 | + private final String m_key; |
| 54 | + |
| 55 | + /** If true, search in the shared folder. */ |
| 56 | + private final boolean m_shared; |
55 | 57 |
|
56 | 58 | /** If true, search in the current site. */
|
57 | 59 | private final boolean m_site;
|
58 | 60 |
|
59 | 61 | /** If true, search in the current sub-site. */
|
60 | 62 | private final boolean m_subSite;
|
61 | 63 |
|
62 |
| - /** If true, search in the shared folder. */ |
63 |
| - private final boolean m_shared; |
64 |
| - |
65 |
| - /** The localization key.*/ |
66 |
| - private final String m_key; |
67 |
| - |
68 | 64 | /**
|
69 | 65 | * Default constructor needed for serialization.<p>
|
70 | 66 | */
|
|
0 commit comments