|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.eocontrol.EOCustomObject com.webobjects.eocontrol.EOGenericRecord com.cassinidivision.oce.navigation.base._N_WebSite com.cassinidivision.oce.navigation.N_WebSite
Business class for representing web sites.
Nested Class Summary |
Nested classes inherited from class com.webobjects.eocontrol.EOGenericRecord |
EOGenericRecord._DictionaryBinding, EOGenericRecord._LazyDictionaryBinding |
Nested classes inherited from class com.webobjects.eocontrol.EOCustomObject |
EOCustomObject._BooleanFieldBinding, EOCustomObject._FieldBinding, EOCustomObject._LazyFieldBinding, EOCustomObject._NumberFieldBinding |
Nested classes inherited from class com.webobjects.eocontrol.EOKeyValueCodingAdditions |
EOKeyValueCodingAdditions.DefaultImplementation, EOKeyValueCodingAdditions.Utility |
Nested classes inherited from class com.webobjects.eocontrol.EOKeyValueCoding |
EOKeyValueCoding._BestBindingCreation, EOKeyValueCoding._KeyBindingCreation, EOKeyValueCoding._StoredForwardingBinding |
Nested classes inherited from class com.webobjects.foundation.NSValidation |
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException |
Nested classes inherited from class com.webobjects.eocontrol._EOPrivateMemento |
_EOPrivateMemento.DefaultImplementation |
Field Summary |
Fields inherited from class com.webobjects.eocontrol.EOGenericRecord |
_CLASS |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
_KeyPathSeparatorChar, KeyPathSeparator |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding |
NullValue |
Constructor Summary | |
N_WebSite()
Default Constructor |
Method Summary | |
void |
awakeFromInsertion(EOEditingContext ec)
Creates and inserts the default top-level section for this site. |
String |
displayKey()
Returns the key to use when displaying a list of N_WebSite objects in a user interface. |
String |
indexURL()
Retrieves the index URL from the top-level section. |
NSArray |
orderedRootSections()
Returns a sorted list of root sections. |
NSArray |
rootSectionPaths()
Builds an array of section paths for all sections in this site. |
NSArray |
rootSections()
Returns a list of root sections. |
NSArray |
sectionsWithMetaSection(C_MetaSection aMetaSection)
Fetches all sections allowing the given metasection, using the editing context of the receiver. |
NSArray |
sectionsWithMetaSectionInEditingContext(C_MetaSection aMetaSection,
EOEditingContext anEditingContext)
Fetches all sections allowing the given metasection. |
NSArray |
sectionsWithMetaSections(NSArray metaSections)
Fetches the complete list of sections which are granted any of the given metasections. |
N_Section |
sectionWithName(String aName)
Locates the first section with the given name within this site. |
N_Section |
sectionWithSectionPath(String sectionPath)
Locates and returns the section with the given path. |
void |
setIndexURL(String indexURL)
Sets the index URL for the top-level section. |
static N_WebSite |
webSiteWithNameInEditingContext(String aName,
EOEditingContext ec)
Fetch the web site with the given name. |
String |
woTemplateName()
Null-safe wrapper around _N_WebSite.woTemplate() .templateName(). |
Methods inherited from class com.cassinidivision.oce.navigation.base._N_WebSite |
addToDomainNames, addToSections, domainNames, indexFilename, name, organisation, removeFromDomainNames, removeFromSections, sections, setDomainNames, setIndexFilename, setName, setOrganisation, setSections, setTopLevelSection, setWoTemplate, topLevelSection, woTemplate |
Methods inherited from class com.webobjects.eocontrol.EOGenericRecord |
__setClassDescription, _keyGetBindingForKey, _keySetBindingForKey, _otherStorageBinding, _storedKeyGetBindingForKey, _storedKeySetBindingForKey, classDescription, usesDeferredFaultCreation |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.cassinidivision.oce.navigation.SiteSectionCommonInterface |
name |
Constructor Detail |
public N_WebSite()
Method Detail |
public static N_WebSite webSiteWithNameInEditingContext(String aName, EOEditingContext ec)
aName
- The name to search for.ec
- The editing context for the fetch.
public void awakeFromInsertion(EOEditingContext ec)
Called automatically by EOF, do not invoke directly.
awakeFromInsertion
in interface EOEnterpriseObject
EOEnterpriseObject.awakeFromInsertion(com.webobjects.eocontrol.EOEditingContext)
public String displayKey()
public NSArray rootSectionPaths()
public N_Section sectionWithName(String aName)
aName
- The name of the section to hunt for.
public NSArray sectionsWithMetaSectionInEditingContext(C_MetaSection aMetaSection, EOEditingContext anEditingContext)
aMetaSection
- The metasection in question.anEditingContext
- The editing contect for the fetch.
public NSArray sectionsWithMetaSection(C_MetaSection aMetaSection)
aMetaSection
- The metasection in question.
public NSArray sectionsWithMetaSections(NSArray metaSections)
metaSections
- The list of metasections.
public N_Section sectionWithSectionPath(String sectionPath)
Note that this method can be slow for sites with many sections which have not previously been loaded, as all sections will be faulted in during execution.
sectionPath
- The path of the section being looking for.
public NSArray rootSections()
public NSArray orderedRootSections()
public String woTemplateName()
_N_WebSite.woTemplate()
.templateName().
public void setIndexURL(String indexURL)
indexURL
- String representing the index URL.public String indexURL()
indexURL
in interface SiteSectionCommonInterface
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |