Modifier and Type | Field and Description |
---|---|
protected Set<WorkspaceHome> |
workspaceHomes |
protected Set<WorkspaceParameter> |
workspaceParams |
SEARCH_MODE_CURRENT_SECTION_PREFERENT, SEARCH_MODE_ROLE_HOME_PREFERENT
Constructor and Description |
---|
WorkspaceImpl() |
Modifier and Type | Method and Description |
---|---|
Object |
acceptVisit(WorkspaceVisitor visitor) |
void |
addPanelInstance(PanelInstance instance)
Adds a panel to this section
|
void |
addPanelProviderAllowed(String id)
Adds given id to the Set of Providers allowed.
|
void |
addSection(Section section)
Adds a section, either to regular sections or to system sections
|
protected Object |
clone()
Create a shallow copy of this Workspace.
|
boolean |
equals(Object obj) |
boolean |
existsPanelInstance(String id) |
boolean |
existsSection(Long id)
Returns true if a given section exists
|
Section[] |
getAllChildSections(Long sectionId)
Returns all the children for a given section
|
Section[] |
getAllRootSections()
Returns all the root sections
|
Section[] |
getAllSections()
Returns all the sections sorted.
|
Section[] |
getAllUnsortedSections()
Returns all the sections, but unsorted
|
String |
getDbid()
Workspace dbid is the same as logic id because workspace does not depend
of any entity and the workspace logic id is unique.
|
Section |
getDefaultHomePageForRole(String role) |
boolean |
getDefaultWorkspace() |
Envelope |
getEnvelope() |
String |
getEnvelopeId() |
String |
getFriendlyUrl() |
int |
getHomeSearchMode() |
String |
getId() |
Map<String,String> |
getName() |
PanelInstance |
getPanelInstance(Long id) |
PanelInstance |
getPanelInstance(String id)
Returns a panel by identifier
|
PanelInstance[] |
getPanelInstances()
Returns all panels
|
PanelInstance[] |
getPanelInstancesInGroup(String groupId)
Return panel instances inside given group.
|
Set<PanelInstance> |
getPanelInstancesSet() |
Set<String> |
getPanelProvidersAllowed() |
Section |
getSection(Long id)
Returns a given section according to its identifier
|
static Map |
getSectionArray(WorkspaceImpl workspace,
Section parent) |
Section |
getSectionByUrl(String friendlyUrl)
Returns a given section according to its url
|
Set<Section> |
getSections() |
int |
getSectionsCount() |
static String |
getSectionTree(WorkspaceImpl workspace,
Section parent,
String locale) |
Skin |
getSkin() |
String |
getSkinId() |
String |
getStructureRepresentation()
For debug purposes
|
Map<String,String> |
getTitle() |
Set<WorkspaceHome> |
getWorkspaceHomes() |
Set<WorkspaceParameter> |
getWorkspaceParams() |
Map<String,String> |
getWorkspaceParamValue(String name) |
int |
hashCode()
Returns a constant value.
|
boolean |
isProviderAllowed(String id)
Determines if this panel provider is allowed for current workspace.
|
void |
moveDown(Section section)
Changes the order of a section belonging to this workspace
|
void |
moveUp(Section section)
Changes the order of a section, putting it before it was
|
void |
removePanelInstance(Long instanceId)
Removes a panel from this workspace
|
void |
removePanelInstance(PanelInstance instance)
Removes a panel from this workspace
|
void |
removePanelInstance(String panelId)
Removes a panel from this workspace
|
void |
removePanelProviderAllowed(String id)
Removes given id from the Set of panelInstances allowed.
|
void |
removeSection(Section section)
Removes a section according to its identifier
|
void |
reorderSections(Section root,
int startIndex) |
int |
sectionsDiagnose() |
void |
sectionsDiagnoseFix() |
void |
setDefaultWorkspace(boolean b) |
void |
setEnvelopeId(String lookId) |
void |
setFriendlyUrl(String s) |
void |
setHomeSearchMode(int homeSearchMode) |
void |
setId(String id) |
void |
setName(Map<String,String> name) |
void |
setName(String name,
String lang) |
void |
setPanelInstancesSet(Set<PanelInstance> instances) |
void |
setPanelProvidersAllowed(Set<String> s) |
void |
setSections(Set<Section> sections) |
void |
setSkinId(String lookId) |
void |
setTitle(Map<String,String> title) |
void |
setTitle(String title,
String lang) |
void |
setWorkspaceHomes(Set<WorkspaceHome> workspaceHomes) |
void |
setWorkspaceParams(Set<WorkspaceParameter> workspaceParams) |
void |
setWorkspaceParamValue(String name,
Map<String,String> value) |
protected void |
setWorkspaceParamValue(String name,
String lang,
String value) |
String |
toString() |
protected Set<WorkspaceHome> workspaceHomes
protected Set<WorkspaceParameter> workspaceParams
public int getHomeSearchMode()
getHomeSearchMode
in interface Workspace
public void setHomeSearchMode(int homeSearchMode)
public Set<WorkspaceParameter> getWorkspaceParams()
public void setWorkspaceParams(Set<WorkspaceParameter> workspaceParams)
protected void setWorkspaceParamValue(String name, String lang, String value)
public Set<WorkspaceHome> getWorkspaceHomes()
getWorkspaceHomes
in interface Workspace
public void setWorkspaceHomes(Set<WorkspaceHome> workspaceHomes)
public int hashCode()
VERY IMPORTANT NOTE. Regarding the message from jiesheng zhang posted on Fri, 01 Aug 2003 03:06:26 -0700 at hibernate-devel MAIL ARCHIVE: "In hibernate current implementation, if a object is retrieved from Set and its hashCode is changed, there is no way to remove it from set."
You can read the original message at:
http://www.mail-archive.com/hibernate-devel@lists.sourceforge.net/msg00008.html.
public boolean equals(Object obj)
public String getEnvelopeId()
getEnvelopeId
in interface Workspace
public void setEnvelopeId(String lookId)
setEnvelopeId
in interface Workspace
public Envelope getEnvelope()
getEnvelope
in interface Workspace
public Set<String> getPanelProvidersAllowed()
getPanelProvidersAllowed
in interface Workspace
public void setPanelProvidersAllowed(Set<String> s)
setPanelProvidersAllowed
in interface Workspace
s
- Set of panelProviders allowed to set.public void addPanelProviderAllowed(String id)
addPanelProviderAllowed
in interface Workspace
id
- The id to addpublic void removePanelProviderAllowed(String id)
removePanelProviderAllowed
in interface Workspace
id
- The id to remove.public boolean isProviderAllowed(String id)
isProviderAllowed
in interface Workspace
id
- public String getFriendlyUrl()
getFriendlyUrl
in interface Workspace
public void setFriendlyUrl(String s)
setFriendlyUrl
in interface Workspace
public boolean getDefaultWorkspace()
getDefaultWorkspace
in interface Workspace
public void setDefaultWorkspace(boolean b)
setDefaultWorkspace
in interface Workspace
public Section[] getAllSections()
public Section[] getAllUnsortedSections()
public Section[] getAllRootSections()
public Section[] getAllChildSections(Long sectionId)
public int getSectionsCount()
getSectionsCount
in interface Workspace
public Section getSection(Long id)
getSection
in interface Workspace
public boolean existsSection(Long id)
existsSection
in interface Workspace
public void removeSection(Section section)
public void addSection(Section section)
public String getDbid()
public void moveUp(Section section)
public void moveDown(Section section)
public void addPanelInstance(PanelInstance instance)
public void removePanelInstance(String panelId)
public void removePanelInstance(Long instanceId)
public void removePanelInstance(PanelInstance instance)
public PanelInstance getPanelInstance(String id)
public PanelInstance getPanelInstance(Long id)
public boolean existsPanelInstance(String id)
public PanelInstance[] getPanelInstances()
public PanelInstance[] getPanelInstancesInGroup(String groupId)
groupId
- Group inside which panels are returned.public Set<PanelInstance> getPanelInstancesSet()
public void setPanelInstancesSet(Set<PanelInstance> instances)
public static Map getSectionArray(WorkspaceImpl workspace, Section parent)
public static String getSectionTree(WorkspaceImpl workspace, Section parent, String locale)
public void reorderSections(Section root, int startIndex) throws Exception
Exception
protected Object clone()
public String toString()
public String getStructureRepresentation()
public Section getSectionByUrl(String friendlyUrl)
public Object acceptVisit(WorkspaceVisitor visitor) throws Exception
acceptVisit
in interface Visitable
Exception
Copyright © 2012–2016 JBoss by Red Hat. All rights reserved.