public class PublicationImpl extends IOObjectImpl implements Publication
IOAtom.ObjectType
Modifier and Type | Field and Description |
---|---|
protected static String |
STOP_WORD_URI
Deprecated.
|
LOGGER, sRefreshObjectBeforeLock
ID_INVALID, OBJECTTYPE_AGREEMENTINFO, OBJECTTYPE_ARTICLE, OBJECTTYPE_CATALOG, OBJECTTYPE_CATEGORY, OBJECTTYPE_ENTITY, OBJECTTYPE_FORUM, OBJECTTYPE_LAYOUT, OBJECTTYPE_MAX, OBJECTTYPE_MIN, OBJECTTYPE_PERSON, OBJECTTYPE_POOL, OBJECTTYPE_POSTING, OBJECTTYPE_PRESENTATION_FORUM, OBJECTTYPE_PRESENTATION_POSTING, OBJECTTYPE_PRESENTATION_THREAD, OBJECTTYPE_PROFILE, OBJECTTYPE_PUBLICATION, OBJECTTYPE_SECTION, OBJECTTYPE_THREAD, OBJECTTYPE_TOPIC, OBJECTTYPE_UNKNOWN, OBJECTTYPE_USERGROUP
Constructor and Description |
---|
PublicationImpl()
Deprecated.
|
PublicationImpl(int pubId)
Deprecated.
|
PublicationImpl(Publication pub)
Deprecated.
|
PublicationImpl(neo.xredsys.Publication pub)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addLayout(Layout l)
Deprecated.
Adds the given layout to this publication.
|
protected void |
checkLoaded()
Deprecated.
|
int |
getAdvertisementId()
Deprecated.
|
List |
getArticleLayouts()
Deprecated.
Retrieves all article layouts that belong to this publication.
|
Collection |
getArticleTypes()
Deprecated.
Retrieves all article types belonging to this publication.
|
List<Section> |
getAuxiliaryRootSections()
Deprecated.
Retrieves the auxiliary root section of this publication.
|
String |
getChecksum()
Deprecated.
Get the version for this object.
|
Section |
getDefaultSection()
Deprecated.
Retrieves the default section of this publication.
|
String |
getDynamoRoot()
Deprecated.
|
List |
getElementLayouts()
Deprecated.
Retrieves all element layouts that belong to this publication.
|
String |
getEncoding()
Deprecated.
Retrieves the character encoding of this publication specified in feature.properties file otherwise uuses
default encoding ISO-8859-1.
|
String |
getFeature(String feature)
Deprecated.
Retrieves the given feature from this publication.
|
Properties |
getFeatures()
Deprecated.
Retrieves this publication's features.
|
List |
getGridLayouts()
Deprecated.
Retrieves all grid layouts that belong to this publication.
|
String |
getHistory()
Deprecated.
|
String |
getInformation()
Deprecated.
|
protected neo.xredsys.Publication |
getIOPublication()
Deprecated.
|
String |
getIsbn()
Deprecated.
Retrieves the ISBN number of this publication, as entered when the publication was created.
|
String |
getIssn()
Deprecated.
Retrieves the ISSN number of the publication, as entered when the publication was created.
|
Layout[] |
getLayouts()
Deprecated.
Retrieves all layout that belong to this publications.
|
List |
getLayouts(Type t)
Deprecated.
Retrieves all layouts of the given type that belong to this publication.
|
String |
getName()
Deprecated.
Returns the name of this publication.
|
ProtectionDomain |
getProtectionDomain()
Deprecated.
Retrieves the
ProtectionDomain of this object. |
int |
getPublisherId()
Deprecated.
Retrieves the publisher id of this publication.
|
Publication |
getRelatedPublication(Type pPublicationType)
Deprecated.
|
InputStream |
getResourceAsStream(String pResourceName)
Deprecated.
Retrieve a publication resource from the database.
|
List<String> |
getResourceNames()
Deprecated.
Asks the underlying publication manager for the list of resource names from its resource manager,
and strips the 'publication:' prefix
|
List<String> |
getResourceNames(String pFilter)
Deprecated.
Returns a list of Strings, each of which denote an existing resource in this publication.
|
String |
getRoot()
Deprecated.
Retrieves the root directory of this publication.
|
Section |
getRootSection()
Deprecated.
Retrieves the root section of this publication.
|
List |
getSectionLayouts()
Deprecated.
Retrieves all section layouts that belong to this publication.
|
Vector |
getSections()
Deprecated.
Retrieves all sections that belong to this section.
|
int |
getSubscriptionId()
Deprecated.
|
IOTransaction |
getTransactionObjectImpl()
Deprecated.
|
Type |
getType()
Deprecated.
Retrieves the type of this publication.
|
String |
getUrl()
Deprecated.
Retrieves the url of this publication.
|
String |
getUUID()
Deprecated.
|
boolean |
hasRelatedPublication(Type pPublicationType)
Deprecated.
|
boolean |
hasSection(int pSectionId)
Deprecated.
Checks whether or not this publication contains the specified section.
|
boolean |
hasSection(String pSectionUniqeName)
Deprecated.
Checks whether or not this publication contains the specified section.
|
boolean |
hasSection(String pSource,
String pSourceId)
Deprecated.
Checks whether or not this publication contains the specified section.
|
boolean |
isPreview()
Deprecated.
Check if this is a preview object.
|
boolean |
nameModified()
Deprecated.
|
void |
refresh()
Deprecated.
|
boolean |
removeLayout(Layout l)
Deprecated.
Removes the given layout from this publication.
|
void |
scanPublicationLayouts()
Deprecated.
Scans for new layout files in this publication.
|
protected void |
setIOPublication(neo.xredsys.Publication v)
Deprecated.
|
boolean |
setLayouts(Layout[] l)
Deprecated.
Sets the layouts in this publication.
|
breakAndLock, compareTo, createTransaction, equals, getDefaultProtectionDomain, getHashKey, getId, getLockKeeper, getObjectType, getOwnerPublicationId, getProtectionDomains, getValid, hashCode, isLocked, isStillValid, isValid, lock, lock, lock, lock, objectTypeAsString, setId, setOwnerPublicationId, setValid, stringToObjectType, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
breakAndLock, createTransaction, getHashKey, getId, getLockKeeper, getObjectType, getOwnerPublicationId, getProtectionDomains, isLocked, isValid, lock, lock, lock, lock
protected static final String STOP_WORD_URI
public PublicationImpl()
public PublicationImpl(int pubId)
public PublicationImpl(Publication pub)
public PublicationImpl(neo.xredsys.Publication pub)
protected neo.xredsys.Publication getIOPublication()
protected void setIOPublication(neo.xredsys.Publication v)
public IOTransaction getTransactionObjectImpl()
getTransactionObjectImpl
in class IOObjectImpl
public String getUUID()
getUUID
in class IOObjectImpl
public Collection getArticleTypes()
Publication
getArticleTypes
in interface Publication
Collection
Collection
public Section getRootSection() throws PersistentStoreException, NoSuchObjectException
Publication
getRootSection
in interface Publication
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existSection
public Section getDefaultSection() throws PersistentStoreException, NoSuchObjectException
Publication
getDefaultSection
in interface Publication
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existSection
public List<Section> getAuxiliaryRootSections() throws PersistentStoreException
Publication
getAuxiliaryRootSections
in interface Publication
PersistentStoreException
- if an error occurs in the persistence layerpublic Layout[] getLayouts() throws PersistentStoreException, NoSuchObjectException
Publication
getLayouts
in interface Publication
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existLayout
public List getElementLayouts()
Publication
getElementLayouts
in interface Publication
Layout
,
List
public List getSectionLayouts()
Publication
getSectionLayouts
in interface Publication
Layout
,
List
public List getGridLayouts()
Publication
getGridLayouts
in interface Publication
Layout
,
List
public List getArticleLayouts()
Publication
getArticleLayouts
in interface Publication
Layout
,
List
public List getLayouts(Type t)
Publication
getLayouts
in interface Publication
t
- the type of layouts to retrieveLayout
,
List
public boolean addLayout(Layout l) throws PersistentStoreException, NoSuchObjectException
Publication
Layout
already exists in the publication, nothing happens.addLayout
in interface Publication
l
- the type of layout to addPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existLayout
public boolean removeLayout(Layout l) throws PersistentStoreException, NoSuchObjectException
Publication
removeLayout
in interface Publication
l
- the layout to removePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existLayout
public boolean setLayouts(Layout[] l) throws PersistentStoreException, NoSuchObjectException
Publication
setLayouts
in interface Publication
l
- the layouts to add to this publicationPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existLayout
public void refresh() throws PersistentStoreException, NoSuchObjectException
refresh
in interface IOObject
PersistentStoreException
NoSuchObjectException
protected void checkLoaded() throws PersistentStoreException, NoSuchObjectException
public String getHistory() throws PersistentStoreException, NoSuchObjectException
getHistory
in interface Publication
PersistentStoreException
NoSuchObjectException
public String getInformation() throws PersistentStoreException, NoSuchObjectException
getInformation
in interface Publication
PersistentStoreException
NoSuchObjectException
public String getIsbn() throws PersistentStoreException, NoSuchObjectException
Publication
getIsbn
in interface Publication
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic String getIssn() throws PersistentStoreException, NoSuchObjectException
Publication
getIssn
in interface Publication
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic String getName() throws PersistentStoreException, NoSuchObjectException
Publication
getName
in interface Publication
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic String getRoot() throws PersistentStoreException, NoSuchObjectException
Publication
getRoot
in interface Publication
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic String getDynamoRoot() throws PersistentStoreException, NoSuchObjectException
getDynamoRoot
in interface Publication
PersistentStoreException
NoSuchObjectException
public String getUrl() throws PersistentStoreException, NoSuchObjectException
Publication
getUrl
in interface Publication
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic int getAdvertisementId() throws PersistentStoreException, NoSuchObjectException
getAdvertisementId
in interface Publication
PersistentStoreException
NoSuchObjectException
public int getSubscriptionId() throws PersistentStoreException, NoSuchObjectException
getSubscriptionId
in interface Publication
PersistentStoreException
NoSuchObjectException
public int getPublisherId() throws PersistentStoreException, NoSuchObjectException
Publication
getPublisherId
in interface Publication
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic Properties getFeatures() throws PersistentStoreException, NoSuchObjectException
Publication
getFeatures
in interface Publication
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existProperties
public String getFeature(String feature) throws PersistentStoreException, NoSuchObjectException
Publication
getFeature
in interface Publication
feature
- the feature to retrievePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic void scanPublicationLayouts() throws PersistentStoreException, NoSuchObjectException
Publication
scanPublicationLayouts
in interface Publication
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic boolean nameModified()
public Vector getSections() throws PersistentStoreException, NoSuchObjectException
Publication
getSections
in interface Publication
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic boolean hasSection(String pSectionUniqeName)
Publication
hasSection
in interface Publication
pSectionUniqeName
- the section to search forpublic boolean hasSection(String pSource, String pSourceId)
Publication
hasSection
in interface Publication
pSource
- the source of the section to search forpSourceId
- the source id of the section to search forpublic boolean hasSection(int pSectionId)
Publication
hasSection
in interface Publication
pSectionId
- the id of the section to search forpublic InputStream getResourceAsStream(String pResourceName) throws PersistentStoreException
Publication
getResourceAsStream
in interface Publication
pResourceName
- The name of the resource, which must start with a forward slash ('/').PersistentStoreException
- if an error occurs in the persistence layerPublicationTransaction.getResourceOutputStream(String)
public List<String> getResourceNames() throws PersistentStoreException
getResourceNames
in interface Publication
PersistentStoreException
- if an error occurs in the persistence layerpublic List<String> getResourceNames(String pFilter) throws PersistentStoreException
Publication
getResourceNames
in interface Publication
pFilter
- a filter to apply to the resource namesPersistentStoreException
- if an error occurs in the persistence layerpublic String getEncoding() throws PersistentStoreException, NoSuchObjectException
Publication
getEncoding
in interface Publication
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic ProtectionDomain getProtectionDomain() throws PersistentStoreException, NoSuchObjectException
IOObject
ProtectionDomain
of this object.getProtectionDomain
in interface IOObject
getProtectionDomain
in class IOObjectImpl
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic boolean isPreview()
IOObject
isPreview
in interface IOObject
isPreview
in class IOObjectImpl
public String getChecksum()
IOObject
getChecksum
in interface IOObject
getChecksum
in class IOObjectImpl
public Type getType()
Publication
getType
in interface Publication
Type
public boolean hasRelatedPublication(Type pPublicationType)
hasRelatedPublication
in interface Publication
public Publication getRelatedPublication(Type pPublicationType)
getRelatedPublication
in interface Publication
© 1998- 2021 Escenic AS