|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.publicationTemplate.PublicationTemplateImpl
public class PublicationTemplateImpl
A PublicationTemplate describes a set of publication records built on a same template. A PublicationTemplate groups :
Field Summary | |
---|---|
static int |
LAYER_ACTION_ADD
|
static int |
LAYER_ACTION_NONE
|
static int |
LAYER_ACTION_REMOVE
|
Fields inherited from interface com.silverpeas.publicationTemplate.PublicationTemplate |
---|
DEFAULT_THUMBNAIL |
Constructor Summary | |
---|---|
PublicationTemplateImpl()
|
Method Summary | |
---|---|
PublicationTemplateImpl |
basicClone()
|
List<String> |
getApplications()
|
String |
getDataFileName()
|
RecordTemplate |
getDataTemplate()
|
String |
getDescription()
|
String |
getExternalId()
|
List<String> |
getFieldsForFacets()
Returns all field names which can generate a search facet |
String |
getFileName()
|
protected GenericRecordSetManager |
getGenericRecordSetManager()
Gets an instance of a GenericRecordSet objects manager. |
List<String> |
getInstances()
|
String |
getName()
|
RecordSet |
getRecordSet()
Return the RecordSet of all the records built from this template. |
RecordTemplate |
getRecordTemplate()
Returns the RecordTemplate of the publication data item. |
RecordTemplate |
getRecordTemplate(boolean loadIfNull)
Return the RecordTemplate of the publication data item. |
String |
getSearchFileName()
|
Form |
getSearchForm()
Returns the Form used to search the records built from this template. |
String |
getSearchResultFileName()
|
Form |
getSearchResultForm()
Returns the Form used to view the search result records built from this template. |
RecordTemplate |
getSearchResultTemplate()
|
RecordTemplate |
getSearchTemplate()
Returns the RecordTemplate of the publication search item. |
RecordTemplate |
getSearchTemplate(boolean loadIfNull)
Returns the RecordTemplate of the publication search item. |
List<String> |
getSpaces()
|
String |
getThumbnail()
|
String |
getUpdateFileName()
|
Form |
getUpdateForm()
Returns the Form used to create and update the records built from this template. |
XmlForm |
getUpdateFormAsXMLOne()
Returns the XML Form used to create and update the records built from this template. |
int |
getUpdateLayerAction()
|
String |
getUpdateLayerFileName()
|
RecordTemplate |
getUpdateTemplate()
Returns the RecordTemplate of the publication update item. |
String |
getUpdateTypeFile()
|
String |
getViewFileName()
|
Form |
getViewForm()
Returns the Form used to view the records built from this template. |
int |
getViewLayerAction()
|
String |
getViewLayerFileName()
|
RecordTemplate |
getViewTemplate()
Returns the RecordTemplate of the publication view item. |
String |
getViewTypeFile()
|
boolean |
isDataEncrypted()
|
boolean |
isRestrictedVisibility()
|
boolean |
isRestrictedVisibilityToApplication()
|
boolean |
isRestrictedVisibilityToInstance()
|
boolean |
isRestrictedVisibilityToSpace()
|
boolean |
isSearchable()
Is the publication records described by this template can be searchable? |
boolean |
isUpdateLayerDefined()
|
boolean |
isUpdateLayerExist()
|
boolean |
isViewLayerDefined()
|
boolean |
isViewLayerExist()
|
boolean |
isVisible()
Is this publication template is visible to others? |
RecordTemplate |
loadRecordTemplate(String xmlFileName)
load a recordTemplate definition from xml file to java objects |
void |
saveRecordTemplates()
This method saves current templates inside a sub directory |
void |
setApplications(List<String> applications)
|
void |
setDataEncrypted(boolean dataEncrypted)
|
void |
setDataFileName(String dataFileName)
|
void |
setDescription(String description)
|
void |
setExternalId(String externalId)
|
void |
setFileName(String fileName)
|
void |
setInstances(List<String> instances)
|
void |
setName(String name)
|
void |
setSearchFileName(String searchFileName)
|
void |
setSearchResultFileName(String searchResultFileName)
|
void |
setSearchResultTemplate(RecordTemplate searchResultTemplate)
|
void |
setSearchTemplate(RecordTemplate searchTemplate)
|
void |
setSpaces(List<String> spaces)
|
void |
setTemplate(RecordTemplate template)
|
void |
setThumbnail(String thumbnail)
|
void |
setUpdateFileName(String updateFileName)
|
void |
setUpdateLayerAction(int updateLayerAction)
|
void |
setUpdateLayerFileName(String updateLayerFileName)
|
void |
setUpdateTemplate(RecordTemplate updateTemplate)
|
void |
setUpdateTypeFile(String updateTypeFile)
|
void |
setViewFileName(String viewFileName)
|
void |
setViewLayerAction(int viewLayerAction)
|
void |
setViewLayerFileName(String viewLayerFileName)
|
void |
setViewTemplate(RecordTemplate viewTemplate)
|
void |
setViewTypeFile(String viewTypeFile)
|
void |
setVisible(boolean visible)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LAYER_ACTION_NONE
public static final int LAYER_ACTION_ADD
public static final int LAYER_ACTION_REMOVE
Constructor Detail |
---|
public PublicationTemplateImpl()
Method Detail |
---|
public RecordTemplate getRecordTemplate(boolean loadIfNull) throws PublicationTemplateException
loadIfNull
-
null
if loadIfNull
is true
), or null
if not
loaded and loadIfNull
is false
.
PublicationTemplateException
public RecordTemplate getRecordTemplate() throws PublicationTemplateException
PublicationTemplate
getRecordTemplate
in interface PublicationTemplate
PublicationTemplateException
public RecordSet getRecordSet() throws PublicationTemplateException
getRecordSet
in interface PublicationTemplate
null
).
PublicationTemplateException
public Form getUpdateForm() throws PublicationTemplateException
getUpdateForm
in interface PublicationTemplate
PublicationTemplateException
public XmlForm getUpdateFormAsXMLOne() throws PublicationTemplateException
PublicationTemplate
getUpdateFormAsXMLOne
in interface PublicationTemplate
PublicationTemplateException
public Form getViewForm() throws PublicationTemplateException
getViewForm
in interface PublicationTemplate
PublicationTemplateException
public RecordTemplate getSearchTemplate(boolean loadIfNull) throws PublicationTemplateException
PublicationTemplateException
public RecordTemplate getSearchTemplate() throws PublicationTemplateException
PublicationTemplateException
public RecordTemplate getViewTemplate() throws PublicationTemplateException
PublicationTemplateException
public RecordTemplate getUpdateTemplate() throws PublicationTemplateException
PublicationTemplateException
public RecordTemplate getDataTemplate() throws PublicationTemplateException
PublicationTemplateException
public Form getSearchForm() throws PublicationTemplateException
PublicationTemplate
getSearchForm
in interface PublicationTemplate
PublicationTemplateException
public void setViewFileName(String viewFileName)
public String getViewFileName()
public void setUpdateFileName(String updateFileName)
public String getUpdateTypeFile()
public void setUpdateTypeFile(String updateTypeFile)
public String getViewTypeFile()
public void setViewTypeFile(String viewTypeFile)
public String getUpdateFileName()
public void setDataFileName(String dataFileName)
public String getDataFileName()
public void setExternalId(String externalId)
setExternalId
in interface PublicationTemplate
public String getExternalId()
getExternalId
in interface PublicationTemplate
public RecordTemplate loadRecordTemplate(String xmlFileName) throws PublicationTemplateException
xmlFileName
- the xml file name that contains process model definition
PublicationTemplateException
public void saveRecordTemplates() throws PublicationTemplateException
PublicationTemplateException
public String getName()
getName
in interface PublicationTemplate
public void setName(String name)
public String getFileName()
getFileName
in interface PublicationTemplate
public void setFileName(String fileName)
public String getDescription()
getDescription
in interface PublicationTemplate
public void setDescription(String description)
public String getThumbnail()
getThumbnail
in interface PublicationTemplate
public void setThumbnail(String thumbnail)
public void setVisible(boolean visible)
public boolean isVisible()
PublicationTemplate
isVisible
in interface PublicationTemplate
public String getSearchFileName()
public void setSearchFileName(String searchFileName)
public void setSearchTemplate(RecordTemplate searchTemplate)
public void setTemplate(RecordTemplate template)
public void setUpdateTemplate(RecordTemplate updateTemplate)
public void setViewTemplate(RecordTemplate viewTemplate)
public String getSearchResultFileName()
public void setSearchResultFileName(String searchResultFileName)
resultTemplateFileName
- the resultTemplateFileName to setpublic boolean isSearchable()
PublicationTemplate
isSearchable
in interface PublicationTemplate
public RecordTemplate getSearchResultTemplate()
public void setSearchResultTemplate(RecordTemplate searchResultTemplate)
searchResultTemplate
- the searchResultTemplate to setpublic PublicationTemplateImpl basicClone()
protected GenericRecordSetManager getGenericRecordSetManager()
public Form getSearchResultForm() throws PublicationTemplateException
PublicationTemplate
getSearchResultForm
in interface PublicationTemplate
PublicationTemplateException
public List<String> getFieldsForFacets()
PublicationTemplate
getFieldsForFacets
in interface PublicationTemplate
public List<String> getSpaces()
getSpaces
in interface PublicationTemplate
public boolean isRestrictedVisibilityToSpace()
isRestrictedVisibilityToSpace
in interface PublicationTemplate
public boolean isRestrictedVisibilityToApplication()
isRestrictedVisibilityToApplication
in interface PublicationTemplate
public boolean isRestrictedVisibilityToInstance()
isRestrictedVisibilityToInstance
in interface PublicationTemplate
public void setSpaces(List<String> spaces)
public List<String> getApplications()
getApplications
in interface PublicationTemplate
public void setApplications(List<String> applications)
public List<String> getInstances()
getInstances
in interface PublicationTemplate
public void setInstances(List<String> instances)
public boolean isRestrictedVisibility()
isRestrictedVisibility
in interface PublicationTemplate
public void setDataEncrypted(boolean dataEncrypted)
public boolean isDataEncrypted()
isDataEncrypted
in interface PublicationTemplate
public int getViewLayerAction()
public void setViewLayerAction(int viewLayerAction)
public int getUpdateLayerAction()
public void setUpdateLayerAction(int updateLayerAction)
public String getViewLayerFileName()
public void setViewLayerFileName(String viewLayerFileName)
public String getUpdateLayerFileName()
public void setUpdateLayerFileName(String updateLayerFileName)
public boolean isViewLayerDefined()
public boolean isUpdateLayerDefined()
public boolean isViewLayerExist()
isViewLayerExist
in interface PublicationTemplate
public boolean isUpdateLayerExist()
isUpdateLayerExist
in interface PublicationTemplate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |