Package com.jalios.jcms.workspace
Class WSTypeEntry
- java.lang.Object
-
- com.jalios.jstore.BasicStorable
-
- com.jalios.jcms.Data
-
- com.jalios.jcms.workspace.WSTypeEntry
-
- All Implemented Interfaces:
JcmsConstants
,ImportConstants
,MashupConstants
,Storable
,JaliosConstants
,LangPropertyArgument
,java.lang.Cloneable
,java.lang.Comparable<BasicStorable>
public class WSTypeEntry extends Data
This class is a wrapper on TypeEntry handling type properties for each workspace.- Since:
- jcms-5.5.0
- Version:
- $Revision: 132736 $
- Author:
- Jean-Philippe Encausse
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.jalios.jcms.Data
Data.AuthorComparator<T extends Data>, Data.AuthorizedSelector, Data.AuthorSelector, Data.CdateSelector, Data.DataNameComparator<T extends Data>, Data.DeletableSelector, Data.ImportSelector, Data.MdateSelector, Data.OpAuthorComparator<T extends Data>, Data.RowIdComparator<T extends Data>, Data.StrongLockSelector
-
Nested classes/interfaces inherited from class com.jalios.jstore.BasicStorable
BasicStorable.CdateComparator<T extends Storable>, BasicStorable.IdComparator<T extends Storable>, BasicStorable.MdateComparator<T extends Storable>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Boolean
advancedTab
protected java.lang.String[]
categories
protected java.lang.Boolean
categoryTab
protected java.lang.String
className
protected java.lang.Boolean
debatable
protected java.util.HashMap<java.lang.String,java.lang.String>
descriptionMap
protected java.lang.String[]
groups
protected boolean
instanceWorkflowEnabled
protected java.util.HashMap<java.lang.String,java.lang.String>
labelMap
protected java.lang.Boolean
readRightTab
static java.lang.String
REVISION
protected java.lang.String[]
templates
protected java.util.Set<java.lang.String>
templateSet
protected java.lang.Boolean
templateTab
protected java.lang.Class<? extends Publication>
type
protected TypeEntry
typeEntry
protected java.lang.Boolean
updateRightTab
protected boolean
useDefaultCategories
protected boolean
useDefaultGroups
protected java.lang.String
workflowId
protected java.lang.Boolean
workflowTab
protected Workspace
workspace
protected boolean
workspaceForced
-
Fields inherited from class com.jalios.jcms.Data
author, authorDBID, channel, DISPLAY_URL_EXTRA_INFO, extension, extraDataMap, extraDBDataMapToSaveOnOp, importMap, opAuthor, opDelegate, WRITE_IN_PROGRESS_EXTRA_INFO
-
Fields inherited from class com.jalios.jstore.BasicStorable
cdate, ddate, id, isStoreCache, mdate, store
-
Fields inherited from interface com.jalios.jcms.mashup.ImportConstants
IMPORT_ALARM_MGR, IMPORT_AUTHOR_PROP, IMPORT_CATEGORY_DEFAULT, IMPORT_DC_ATTR, IMPORT_DC_STEP, IMPORT_DIR, IMPORT_ENABLED, IMPORT_JDOM_ELEMENT, IMPORT_LOG_FILE, IMPORT_LOG_MAX, IMPORT_OPTIONS, IMPORT_OPTIONS_DC_CONTEXT, IMPORT_ROOT_PROP, IMPORT_SOURCE_FILE, IMPORT_SOURCE_PREFIX_PROP, IMPORT_SOURCES_DIR, IMPORT_STEP_CLEAN, IMPORT_STEP_IMPORT, IMPORT_STEP_UPDATE_REF, IMPORT_WS_PROP
-
Fields inherited from interface com.jalios.util.JaliosConstants
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR
-
Fields inherited from interface com.jalios.jcms.JcmsConstants
ADATE_SEARCH, ADMIN_NOTES_PROP, ADVANCED_TAB, AJAX_MODE_ATTR, ARCHIVES_DIR, ASCII_WIDTH, CATEGORY_TAB, CDATE_SEARCH, CLASS_PROPERTY, COMMON_ALARM, CONTENT_TAB, COOKIE_MAX_AGE, COUNTRY_SPRITE, CS_TYPOLOGY_ROOT_CAT_VID, CTRL_TOPIC_INTERNAL, CTRL_TOPIC_REF, CTRL_TOPIC_VALUE, CTRL_TOPIC_WRITE, CUSTOM_PROP, DEFAULT_PHOTO_PROP, DOCCHOOSER_HEIGHT, DOCCHOOSER_WIDTH, DOCS_DIR, EDATE_SEARCH, EMAIL_REGEXP, ERROR_MSG, FORBIDDEN_FILE_ACCESS, FORBIDDEN_REDIRECT, FORCE_REDIRECT, GLYPH_ICON_PREFIX, ICON_ARCHIVE, ICON_ICON_PREFIX, ICON_LOCK, ICON_LOCK_STRONG, ICON_PREFIX_PROP, ICON_WARN, ICON_WH_BOOK_CLOSED, ICON_WH_BOOK_OPEN, INFORMATION_MSG, IS_IN_FRONT_OFFICE, JALIOS_JUNIT_PROP, JCMS_CADDY, JCMS_MSG_LIST, JCMS_TOASTR_COLLECTION, JSYNC_DOWNLOAD_DIR, JSYNC_SYNC_ALARM, LANG_SPRITE, LOG_FILE, LOG_TOPIC_SECURITY, LOGGER_PROP, LOGGER_XMLPROP, MBR_PHOTO_DIR, MDATE_SEARCH, MONITOR_XML, OP_CREATE, OP_CREATE_STR, OP_DEEP_COPY, OP_DEEP_COPY_STR, OP_DEEP_DELETE, OP_DEEP_DELETE_STR, OP_DELETE, OP_DELETE_STR, OP_MERGE, OP_MERGE_STR, OP_UPDATE, OP_UPDATE_STR, ORGANIZATION_ROOT_GROUP_PROP, PDATE_SEARCH, PHOTO_DIR, PHOTO_ICON, PHOTO_ICON_HEIGHT, PHOTO_ICON_PROP_PREFIX, PHOTO_ICON_WIDTH, PHOTO_LARGE, PHOTO_LARGE_HEIGHT, PHOTO_LARGE_PROP_PREFIX, PHOTO_LARGE_WIDTH, PHOTO_NORMAL, PHOTO_NORMAL_HEIGHT, PHOTO_NORMAL_PROP_PREFIX, PHOTO_NORMAL_WIDTH, PHOTO_SMALL, PHOTO_SMALL_HEIGHT, PHOTO_SMALL_PROP_PREFIX, PHOTO_SMALL_WIDTH, PHOTO_TINY, PHOTO_TINY_HEIGHT, PHOTO_TINY_PROP_PREFIX, PHOTO_TINY_WIDTH, PREVIOUS_TAB, PRINT_VIEW, PRIVATE_FILE_ACCESS, PUBLIC_FILE_ACCESS, RAW_CONTENT_ICON_PREFIX, READ_RIGHT_TAB, SDATE_SEARCH, SEARCHENGINE_ALARM, SECURITY_LOG_FILE, SESSION_AUTHORIZED_FILENAMES_SET, SPRITE_ICON_PREFIX, STATS_REPORT_DIR, STATUS_PROP, STORE_XML, SUCCESS_MSG, SVG_ICON_PREFIX, SVGINLINE_ICON_PREFIX, TEMPLATE_TAB, THUMBNAIL_LARGE_HEIGHT, THUMBNAIL_LARGE_WIDTH, THUMBNAIL_SMALL_HEIGHT, THUMBNAIL_SMALL_WIDTH, TTCARD_MEDIA_HEIGHT, TTCARD_MEDIA_WIDTH, TYPES_ICON_ALT_PROP, TYPES_ICON_SUFFIX_PROP, TYPES_ICON_TITLE_PROP, TYPES_PREFIX_PROP, TYPES_THUMB_SUFFIX_PROP, UDATE_SEARCH, UPDATE_RIGHT_TAB, UPLOAD_DIR, UPLOAD_PERMISSION_COUNT_PROP_PREFIX, UPLOAD_PERMISSION_SIZE_PROP_PREFIX, URL_REGEXP, VID_LOGGED_MEMBER, WARNING_MSG, WEBAPP_PROP, WFEXPRESS_ALARM, WFREMINDER_ALARM, WORKFLOW_TAB, WORKFLOW_XML
-
Fields inherited from interface com.jalios.jcms.mashup.MashupConstants
DATA_TAG, DATASET_TAG, FIELD_CLASS, FIELD_ENTRY, FIELD_ITEM, FIELD_KEY, FIELD_NAME, FIELD_TAG, FIELD_VALUE, FILE_FIELD, FILE_ID, FILE_MTIME, FILE_SIZE, FILE_TAG, FILE_TICKET, FILESET_TAG, RELATED_TAG
-
-
Constructor Summary
Constructors Constructor Description WSTypeEntry()
WSTypeEntry(WSTypeEntry clone)
WSTypeEntry(java.lang.Class<? extends Publication> clazz, Workspace workspace)
WSTypeEntry(java.lang.String className, Workspace workspace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ControllerStatus
checkCreate(Member mbr, java.util.Map context)
Checks if the creation can be performedControllerStatus
checkCreateUpdate(Member mbr, java.util.Map context)
Convenient check for Create and Update.ControllerStatus
checkMember(int op, Member mbr, java.util.Map context)
Checks if the given member can perform the given operation.ControllerStatus
checkUpdate(Member mbr, java.util.Map context)
Checks if the update can be performedjava.lang.Boolean
getAdvancedTab()
Returns specific advancedTab state for this WSTypeEntry It doesn't return any information from TypeEntry.java.lang.String[]
getAvailableCategories()
Returns the available categoriesjava.lang.String
getAvailableDescription(java.lang.String lang)
Returns the description of this type in the given language.java.lang.String[]
getAvailableGroups()
Returns the available groupsjava.lang.String
getAvailableLabel(java.lang.String lang)
Returns the label of this type in the given language or else in the channel's language otherwise it returns an available value in an arbitrary language.java.lang.String[]
getCategories()
Returns specific categories sets for this WSTypeEntry It doesn't return any information from TypeEntry.java.lang.Boolean
getCategoryTab()
Returns specific CategoryTab state for this WSTypeEntry It doesn't return any information from TypeEntry.TypeEntry
getChannelTypeEntry()
Returns the Main TypeEntry defined for a given type.java.lang.String
getClassName()
Returns the name of the class of the given Type for this TypeEntry.java.lang.Boolean
getDebatable()
Returns specific debatable state for this WSTypeEntry It doesn't return any information from TypeEntry.TypeTemplateEntry
getDefaultTemplateEntry(java.lang.String usage)
Returns a default TypeTemplateEntry matching the given usage for the current workspacejava.util.Set<TypeTemplateEntry>
getDefaultTemplateEntrySet()
Returns all default template entriesjava.util.Set<java.lang.String>
getDefaultTemplateNameSet()
Returns all default template namesjava.util.Map<java.lang.String,java.lang.String>
getDescriptionMap()
Returns the description map ({lang, value}).TypeTemplateEntry
getFirstTemplateEntry(java.lang.String usage, java.lang.String[] names)
Returns the first TypeTemplateEntry from given names matching given usagejava.lang.String[]
getGroups()
Returns specific groups sets for this WSTypeEntry It doesn't return any information from TypeEntry.boolean
getInstanceWorkflowEnabled()
Returns specific instanceWorkflowEnabled state for this WSTypeEntry It doesn't return any information from TypeEntry.java.util.Map<java.lang.String,java.lang.String>
getLabelMap()
Returns the label map ({lang, value}).java.lang.Boolean
getReadRightTab()
Returns specific ReadRightTab state for this WSTypeEntry It doesn't return any information from TypeEntry.java.lang.String
getTabLabel(java.lang.String tabId, java.lang.String lang)
Returns the localized label for the given tab identifier.TypeTemplateEntry
getTemplateEntry(java.lang.String name)
Returns a TypeTemplateEntry matching the given template namejava.util.Set<TypeTemplateEntry>
getTemplateEntrySet(java.lang.String usage)
Returns a new Set of TypeTemplateEntry matching the given usage for the current workspacejava.lang.String[]
getTemplates()
Returns a Set of display template's name used for this type by this workspace.java.lang.Boolean
getTemplateTab()
Returns specific TemplateTab state for this WSTypeEntry It doesn't return any information from TypeEntry.java.util.Map<java.lang.String,java.util.Set<TypeTemplateEntry>>
getTemplateUsageMap()
Returns a Map of usage/Set of TypeTemplateEntry.java.lang.Class<? extends Publication>
getType()
Returns the type this WSTypeEntry controls.java.lang.Boolean
getUpdateRightTab()
Returns specific UpdateRightTab state for this WSTypeEntry It doesn't return any information from TypeEntry.boolean
getUseDefaultCategories()
Convenient getter to check if specific categories has been set Should only be called by WSTypeEntry_HANDLERboolean
getUseDefaultGroups()
Convenient getter to check if specific groups has been set Should only be called by WSTypeEntry_HANDLERWorkflow
getWorkflow(boolean checkSuperclass)
Return the workflow for this given type in given workspace.java.lang.String
getWorkflowId()
Return the name of the workflow for this given type in given workspace.java.lang.Boolean
getWorkflowTab()
Returns specific WorkflowTab state for this WSTypeEntry It doesn't return any information from TypeEntry.Workspace
getWorkspace()
Returns the workspace this WSTypeEntry belongs to.boolean
hasTemplate(java.lang.String name)
Returns true if the WSTypeEntry manage/allow the given templateboolean
hasTemplate(java.lang.String name, boolean checkType)
Returns true if the WSTypeEntry manage/allow the given templateboolean
isAdvancedTab()
Returns the available state of advanced tabboolean
isCategoryTab()
Returns the available state of category tabboolean
isDebatable()
Check if type is debatable for the given workspace.boolean
isForced()
Returns true if this object has been forced for a given workspace but not really exists in the store.boolean
isReadRightTab()
Returns the available state of readRight tabboolean
isSameProperties()
Checks if this WSTypeEntry have same properties that it's original TypeEntry.boolean
isTemplateTab()
Returns the available state of template tabboolean
isUpdateRightTab()
Returns the available state of updateRight tabboolean
isWorkflowTab()
Returns the available state of workflow tabvoid
performCreate(Member mbr, java.util.Map context)
Performs data creation.void
performDelete(Member mbr, java.util.Map context)
Performs data deletion.void
setAdvancedTab(java.lang.Boolean isAdvancedTab)
Sets specific advancedTab state for this WSTypeEntryvoid
setCategories(java.lang.String[] categories)
Sets specific categories for this WSTypeEntryvoid
setCategoryTab(java.lang.Boolean isCategoryTab)
Sets specific categories sets for this WSTypeEntryvoid
setClassName(java.lang.String className)
Set the classname for the WSTypeEntry This method should ONLY be called by Store to set the TypeEntry.void
setDebatable(java.lang.Boolean isDebatable)
Sets specific debatable state for this WSTypeEntryvoid
setDescriptionMap(java.util.HashMap<java.lang.String,java.lang.String> descriptionMap)
Sets descriptionMap.void
setGroups(java.lang.String[] groups)
Sets specific groups for this WSTypeEntryvoid
setInstanceWorkflowEnabled(boolean instanceWorkflowEnabled)
Sets for this WSTypeEntry if instance workflow are enabledvoid
setLabelMap(java.util.HashMap<java.lang.String,java.lang.String> labelMap)
Sets labelMap.void
setReadRightTab(java.lang.Boolean isReadRightTab)
Sets specific readRightTab state for this WSTypeEntryvoid
setTemplates(java.lang.String[] templates)
Sets all the template's name available in the current workspace for the current type.void
setTemplateTab(java.lang.Boolean isTemplateTab)
Sets specific templateTab state for this WSTypeEntryvoid
setUpdateRightTab(java.lang.Boolean isUpdateRightTab)
Sets specific updateRightTab state for this WSTypeEntryvoid
setUseDefaultCategories(boolean useDefaultCategories)
void
setUseDefaultGroups(boolean useDefaultGroups)
void
setWorkflowId(java.lang.String workflowId)
Sets the name of the workflow for this given type in given workspace.void
setWorkflowTab(java.lang.Boolean isWorkflowTab)
Sets specific workflowTab state for this WSTypeEntryvoid
setWorkspace(Workspace workspace)
Sets the workspace without setting workspaceForced This method should only be called by WorkspaceWizardHandler for clone purpose.java.lang.String
toFullString()
-
Methods inherited from class com.jalios.jcms.Data
canBeReadBy, canBeReadBy, canBeUnlockedBy, canRequestUnlock, checkAndPerformCreate, checkAndPerformCreate, checkAndPerformDelete, checkAndPerformDelete, checkAndPerformUpdate, checkAndPerformUpdate, checkCreate, checkDelete, checkDelete, checkIntegrity, checkIntegrity, checkLockMember, checkStrongLockMember, checkStrongLockMember, checkUpdate, checkWrite, cleanHybridCollection, cleanHybridCollection, cleanHybridCollection, cleanHybridCollections, clone, computeDBIDArray, computeDBIDList, computeDBIDSet, exportXml, exportXml, exportXml, exportXml, exportXmlField, exportXmlRelated, exportXmlRelated, fillExportXmlFieldAttributes, getAllReferrerSet, getAllReferrerSet, getAllTypeFieldEntry, getAuthor, getAuthor, getAuthorComparator, getAuthorDBID, getAuthorId, getAuthorSelector, getBooleanFieldValue, getBooleanFieldValue, getCaddyComparator, getCategoryFieldValue, getCategoryFieldValue, getCdateSelector, getComparator, getCSVHeader, getDataIcon, getDataIconAlt, getDataIconCSS, getDataIconHtml, getDataIconHtml, getDataIconTitle, getDataImage, getDataImage, getDataImage, getDataName, getDataNameComparator, getDate, getDate, getDateSelector, getDeletableSelector, getDisplayLink, getDisplayLink, getDisplayLink, getDisplayLinkCss, getDisplayLinkDataAttribute, getDisplayLinkHtmlAttributes, getDisplayUrl, getDoubleFieldValue, getDoubleFieldValue, getExportXmlDataValue, getExtension, getExtraData, getExtraDataMap, getExtraDBData, getExtraDBDataMap, getExtraInfo, getExtraInfoMap, getFieldStatusMap, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getGenericThumbnail, getGenericThumbnail, getImportAuthor, getImportBatch, getImportDate, getImportDisplayUrl, getImportId, getImportMap, getImportMdate, getImportSelector, getImportSignature, getImportSource, getImportSourceUrl, getImportUrl, getIntFieldValue, getIntFieldValue, getLangPropertyValue, getLinkCount, getLinkIndexedDataSet, getLinkIndexedDataSet, getLockDate, getLockInfo, getLockMember, getLongFieldValue, getLongFieldValue, getMdateSelector, getNewDefaultExtraDataMap, getNewDefaultExtraDataMap, getNewDefaultExtraDataMap, getNewDefaultExtraDataMap, getNewDefaultExtraDBDataMap, getNewDefaultExtraDBDataMap, getNewDefaultExtraDBDataMap, getNewDefaultExtraDBDataMap, getOpAuthor, getOpAuthorComparator, getOpAuthorId, getOpDelegate, getReadAuthorizedSelector, getReferrerSet, getRowId, getRowIdComparator, getStrongLock, getStrongLockContext, getStrongLockContextData, getStrongLockDate, getStrongLockInfo, getStrongLockMember, getStrongLockSelector, getTypeEntry, getTypeFieldsEntries, getUpdateInstance, getVirtualIDSet, importXml, importXmlFieldsWithReferences, importXmlFiles, importXmlReferences, initializeDBDataCollections, isDBData, isImported, isImportUpdated, isInDatabase, isLocked, isPersisted, isStrongLocked, lock, markNewImport, mergeHybridLink, mergeHybridLink, performAfterWrite, performBeforeWrite, performCreate, performDelete, performUpdate, performUpdate, prepareUpdateContext, printDataName, printDisplayLinkEnd, printDisplayLinkStart, printDisplayLinkStart, printDisplayUrl, printDisplayUrl, putStrongLock, putStrongLock, releaseStrongLock, releaseStrongLock, removeExtraData, removeExtraDBData, removeExtraInfo, setAuthor, setAuthorDBID, setAuthorId, setBooleanFieldValue, setCategoryFieldValue, setDoubleFieldValue, setExtension, setExtraData, setExtraDataMap, setExtraDBData, setExtraDBDataMap, setExtraDBDataMap, setExtraInfo, setFieldValue, setFieldValue, setId, setImportAuthor, setImportBatch, setImportDate, setImportDisplayUrl, setImportId, setImportMap, setImportMdate, setImportSignature, setImportSource, setImportSourceUrl, setImportUpdated, setIntFieldValue, setLongFieldValue, setMdate, setOpAuthor, setOpAuthorId, setOpDelegate, setRowId, splitHybridCollections, toCSV, toString, unlock, unlock, unmarkNewImport, updateDisplayLinkCss, updateDisplayLinkDataAttribute, updateDisplayLinkHtmlAttributes, updateExtraDataMap, updateExtraDBDataMap, updateIndexTreeSet
-
Methods inherited from class com.jalios.jstore.BasicStorable
clearId, compareTo, equals, getAttribute, getAttributes, getCdate, getCdateComparator, getDdate, getId, getIdComparator, getMdate, getMdateComparator, getStore, getUrid, hasBeenUpdated, hashCode, isStored, resetInternalCaches, resolveAtt, resolveVal, setAttributes, setAttributes, setCdate, setDdate, setStore, toXml
-
-
-
-
Field Detail
-
REVISION
public static final java.lang.String REVISION
- See Also:
- Constant Field Values
-
typeEntry
protected transient TypeEntry typeEntry
-
type
protected transient java.lang.Class<? extends Publication> type
-
workspace
protected transient Workspace workspace
-
workspaceForced
protected transient boolean workspaceForced
-
templateSet
protected transient java.util.Set<java.lang.String> templateSet
-
className
protected java.lang.String className
-
debatable
protected java.lang.Boolean debatable
-
categoryTab
protected java.lang.Boolean categoryTab
-
templateTab
protected java.lang.Boolean templateTab
-
readRightTab
protected java.lang.Boolean readRightTab
-
updateRightTab
protected java.lang.Boolean updateRightTab
-
workflowTab
protected java.lang.Boolean workflowTab
-
advancedTab
protected java.lang.Boolean advancedTab
-
categories
protected java.lang.String[] categories
-
groups
protected java.lang.String[] groups
-
labelMap
protected java.util.HashMap<java.lang.String,java.lang.String> labelMap
-
descriptionMap
protected java.util.HashMap<java.lang.String,java.lang.String> descriptionMap
-
useDefaultCategories
protected boolean useDefaultCategories
-
useDefaultGroups
protected boolean useDefaultGroups
-
workflowId
protected java.lang.String workflowId
-
instanceWorkflowEnabled
protected boolean instanceWorkflowEnabled
-
templates
protected java.lang.String[] templates
-
-
Constructor Detail
-
WSTypeEntry
public WSTypeEntry()
-
WSTypeEntry
public WSTypeEntry(java.lang.Class<? extends Publication> clazz, Workspace workspace)
-
WSTypeEntry
public WSTypeEntry(java.lang.String className, Workspace workspace)
-
WSTypeEntry
public WSTypeEntry(WSTypeEntry clone)
-
-
Method Detail
-
isSameProperties
public boolean isSameProperties()
Checks if this WSTypeEntry have same properties that it's original TypeEntry. This convenient method should be used to check if the Data must be stored/used or deleted. It doesn't check for workflow properties because workflow may leave without WSTypeEntry (backward compatibility)- Returns:
- boolean true if there is te same properties.
- See Also:
Workspace.setWSTypeEntry(Class, WSTypeEntry)
-
toFullString
public java.lang.String toFullString()
- Overrides:
toFullString
in classData
-
isForced
public boolean isForced()
Returns true if this object has been forced for a given workspace but not really exists in the store. It is only a convenient wrapper.- Returns:
- true if this instance has been forced
-
checkMember
public ControllerStatus checkMember(int op, Member mbr, java.util.Map context)
Description copied from class:Data
Checks if the given member can perform the given operation. This method is called by checkWrite. It should be overrided by sub-classes.- Overrides:
checkMember
in classData
- Parameters:
op
- the operation (OP_CREATE, OP_UPDATE, ...)mbr
- the member which requests the write operationcontext
- a map which contains context parameters (may be null)- Returns:
- a ControllerStatus
- See Also:
Data.checkMember(int, Member, Map)
-
checkCreateUpdate
public ControllerStatus checkCreateUpdate(Member mbr, java.util.Map context)
Convenient check for Create and Update.- Parameters:
mbr
- The Membercontext
- The context- Returns:
- ControllerStatus the status of the check
- See Also:
checkCreate(Member, Map)
,checkUpdate(Member, Map)
-
checkCreate
public ControllerStatus checkCreate(Member mbr, java.util.Map context)
Description copied from class:Data
Checks if the creation can be performed- Overrides:
checkCreate
in classData
- Parameters:
mbr
- the member which requests the write operationcontext
- a map which contains context parameters (may be null)- Returns:
- a ControllerStatus
- See Also:
Data.checkCreate(Member, Map)
-
checkUpdate
public ControllerStatus checkUpdate(Member mbr, java.util.Map context)
Description copied from class:Data
Checks if the update can be performed- Overrides:
checkUpdate
in classData
- Parameters:
mbr
- the member which requests the write operationcontext
- a map which contains context parameters (may be null)- Returns:
- a ControllerStatus
- See Also:
Data.checkUpdate(Member, Map)
-
performCreate
public void performCreate(Member mbr, java.util.Map context)
Description copied from class:Data
Performs data creation.- Overrides:
performCreate
in classData
- Parameters:
mbr
- the member which requests the write operationcontext
- a map which contains context parameters (may be null)- See Also:
Data.performCreate(Member, Map)
-
performDelete
public void performDelete(Member mbr, java.util.Map context)
Description copied from class:Data
Performs data deletion.- Overrides:
performDelete
in classData
- Parameters:
mbr
- the member which requests the write operationcontext
- a map which contains context parameters (may be null)- See Also:
Data.performDelete(Member, Map)
-
getTemplateEntry
public TypeTemplateEntry getTemplateEntry(java.lang.String name)
Returns a TypeTemplateEntry matching the given template name- Parameters:
name
- the template name- Returns:
- TypeTemplateEntry that describe template
- Since:
- jcms-6.0.0
- See Also:
TypeEntry.getTemplateEntry(String)
-
getFirstTemplateEntry
public TypeTemplateEntry getFirstTemplateEntry(java.lang.String usage, java.lang.String[] names)
Returns the first TypeTemplateEntry from given names matching given usage- Parameters:
usage
- the template usagenames
- an array of templates name- Returns:
- TypeTemplateEntry matching
- Since:
- jcms-6.0.0
- See Also:
TypeEntry.getFirstTemplateEntry(String, String[])
-
getDefaultTemplateEntry
public TypeTemplateEntry getDefaultTemplateEntry(java.lang.String usage)
Returns a default TypeTemplateEntry matching the given usage for the current workspace- Parameters:
usage
- the template usage- Returns:
- TypeTemplateEntry
- Since:
- jcms-6.0.0
- See Also:
TypeEntry.getDefaultTemplateEntry(String)
-
getTemplateEntrySet
public java.util.Set<TypeTemplateEntry> getTemplateEntrySet(java.lang.String usage)
Returns a new Set of TypeTemplateEntry matching the given usage for the current workspace- Parameters:
usage
- the template usage- Returns:
- Set of TypeTemplateEntry
- Since:
- jcms-6.0.0
-
getDefaultTemplateEntrySet
public java.util.Set<TypeTemplateEntry> getDefaultTemplateEntrySet()
Returns all default template entries- Returns:
- Set of TypeTemplateEntry
- Since:
- jcms-6.0.1
-
getDefaultTemplateNameSet
public java.util.Set<java.lang.String> getDefaultTemplateNameSet()
Returns all default template names- Returns:
- Set of template names
- Since:
- jcms-6.0.1
-
getTemplateUsageMap
public java.util.Map<java.lang.String,java.util.Set<TypeTemplateEntry>> getTemplateUsageMap()
Returns a Map of usage/Set of TypeTemplateEntry.- Returns:
- Map of TypeTemplateEntry
-
hasTemplate
public boolean hasTemplate(java.lang.String name, boolean checkType)
Returns true if the WSTypeEntry manage/allow the given template- Parameters:
name
- the template name to checkcheckType
- if true, check template type if there is no template for this WSTypeEntry- Returns:
- true if WSTypeEntry
- Since:
- jcms-9.0.1
-
hasTemplate
public boolean hasTemplate(java.lang.String name)
Returns true if the WSTypeEntry manage/allow the given template- Parameters:
name
- the template name to check- Returns:
- true if WSTypeEntry
- Since:
- jcms-6.0.0
-
getChannelTypeEntry
public TypeEntry getChannelTypeEntry()
Returns the Main TypeEntry defined for a given type.- Returns:
- TypeEntry the channel TypeEntry
-
getWorkflow
public Workflow getWorkflow(boolean checkSuperclass)
Return the workflow for this given type in given workspace. If there is no workflow then return WorkflowManager.DEFAULT_WORKFLOW If there is no Workspace then return null.- Parameters:
checkSuperclass
- check super class- Returns:
- String the name of the Workflow
-
getType
public java.lang.Class<? extends Publication> getType()
Returns the type this WSTypeEntry controls.- Returns:
- the type this WSTypeEntry controls.
- Since:
- jcms-5.5.0
-
getWorkspace
public Workspace getWorkspace()
Returns the workspace this WSTypeEntry belongs to.- Returns:
- the workspace this WSTypeEntry belongs to.
- Since:
- jcms-5.5.0
-
setWorkspace
public void setWorkspace(Workspace workspace)
Sets the workspace without setting workspaceForced This method should only be called by WorkspaceWizardHandler for clone purpose.- Parameters:
workspace
- the workspace
-
isAdvancedTab
public boolean isAdvancedTab()
Returns the available state of advanced tab- Returns:
- boolean true to display advanced Tab
- See Also:
TypeEntry.isAdvancedTab()
-
isCategoryTab
public boolean isCategoryTab()
Returns the available state of category tab- Returns:
- boolean true to display category Tab
- See Also:
TypeEntry.isCategoryTab()
-
isDebatable
public boolean isDebatable()
Check if type is debatable for the given workspace.- Returns:
- boolean true it type is reviewable
- See Also:
TypeEntry.isDebatable()
-
isReadRightTab
public boolean isReadRightTab()
Returns the available state of readRight tab- Returns:
- boolean true to display readRight Tab
- See Also:
TypeEntry.isReadRightTab()
-
isTemplateTab
public boolean isTemplateTab()
Returns the available state of template tab- Returns:
- boolean true to display template Tab
- See Also:
TypeEntry.isTemplateTab()
-
isUpdateRightTab
public boolean isUpdateRightTab()
Returns the available state of updateRight tab- Returns:
- boolean true to display updateRight Tab
- See Also:
TypeEntry.isUpdateRightTab()
-
isWorkflowTab
public boolean isWorkflowTab()
Returns the available state of workflow tab- Returns:
- boolean true to display Workflow Tab
- See Also:
TypeEntry.isWorkflowTab()
-
getAvailableCategories
public java.lang.String[] getAvailableCategories()
Returns the available categories- Returns:
- String[] an array of categories
- See Also:
TypeEntry.getCategories()
-
getAvailableGroups
public java.lang.String[] getAvailableGroups()
Returns the available groups- Returns:
- String[] an array of groups
- See Also:
TypeEntry.getGroups()
-
getAvailableLabel
public java.lang.String getAvailableLabel(java.lang.String lang)
Returns the label of this type in the given language or else in the channel's language otherwise it returns an available value in an arbitrary language.- Parameters:
lang
- the language- Returns:
- the label of this type in the given language.
- See Also:
TypeEntry.getLabel(String)
-
getAvailableDescription
public java.lang.String getAvailableDescription(java.lang.String lang)
Returns the description of this type in the given language.- Parameters:
lang
- the language- Returns:
- the description of this type in the given language.
- See Also:
TypeEntry.getDescription(String)
-
getWorkflowId
public java.lang.String getWorkflowId()
Return the name of the workflow for this given type in given workspace. Should only be called by WSTypeEntry_HANDLER- Returns:
- String the name of the Workflow
-
getClassName
public java.lang.String getClassName()
Returns the name of the class of the given Type for this TypeEntry.- Returns:
- String the ClassName
-
getTemplates
public java.lang.String[] getTemplates()
Returns a Set of display template's name used for this type by this workspace.- Returns:
- String[] of template name
-
getAdvancedTab
public java.lang.Boolean getAdvancedTab()
Returns specific advancedTab state for this WSTypeEntry It doesn't return any information from TypeEntry. Developpers should call isAdvancedTab() This method should only be called by WSTypeEntry_HANDLER- Returns:
- Boolean true to display advancedTab
- See Also:
isAdvancedTab()
-
getCategories
public java.lang.String[] getCategories()
Returns specific categories sets for this WSTypeEntry It doesn't return any information from TypeEntry. Developpers should call getAvailableCategories() This method should only be called by WSTypeEntry_HANDLER- Returns:
- String[] an array of category ids
- See Also:
getAvailableCategories()
-
getGroups
public java.lang.String[] getGroups()
Returns specific groups sets for this WSTypeEntry It doesn't return any information from TypeEntry. Developpers should call getAvailableGroups() This method should only be called by WSTypeEntry_HANDLER- Returns:
- String[] an array of category ids
- See Also:
getAvailableGroups()
-
getCategoryTab
public java.lang.Boolean getCategoryTab()
Returns specific CategoryTab state for this WSTypeEntry It doesn't return any information from TypeEntry. Developpers should call isCategoryTab() This method should only be called by WSTypeEntry_HANDLER- Returns:
- Boolean true to display category tab
- See Also:
isCategoryTab()
-
getDebatable
public java.lang.Boolean getDebatable()
Returns specific debatable state for this WSTypeEntry It doesn't return any information from TypeEntry. Developpers should call isDebatable() This method should only be called by WSTypeEntry_HANDLER- Returns:
- Boolean true if debatable
- See Also:
isDebatable()
-
getLabelMap
public java.util.Map<java.lang.String,java.lang.String> getLabelMap()
Returns the label map ({lang, value}).- Returns:
- the label map ({lang, value}).
- Since:
- jcms-5.7.0
-
getDescriptionMap
public java.util.Map<java.lang.String,java.lang.String> getDescriptionMap()
Returns the description map ({lang, value}).- Returns:
- the description map ({lang, value}).
- Since:
- jcms-5.7.0
-
getReadRightTab
public java.lang.Boolean getReadRightTab()
Returns specific ReadRightTab state for this WSTypeEntry It doesn't return any information from TypeEntry. Developpers should call isReadRightTab() This method should only be called by WSTypeEntry_HANDLER- Returns:
- Boolean true to display ReadRightTab
- See Also:
isReadRightTab()
-
getTemplateTab
public java.lang.Boolean getTemplateTab()
Returns specific TemplateTab state for this WSTypeEntry It doesn't return any information from TypeEntry. Developpers should call isTemplateTab() This method should only be called by WSTypeEntry_HANDLER- Returns:
- Boolean true to display TemplateTab
- See Also:
isTemplateTab()
-
getUpdateRightTab
public java.lang.Boolean getUpdateRightTab()
Returns specific UpdateRightTab state for this WSTypeEntry It doesn't return any information from TypeEntry. Developpers should call isUpdateRightTab() This method should only be called by WSTypeEntry_HANDLER- Returns:
- Boolean true to display UpdateRightTab
- See Also:
isUpdateRightTab()
-
getWorkflowTab
public java.lang.Boolean getWorkflowTab()
Returns specific WorkflowTab state for this WSTypeEntry It doesn't return any information from TypeEntry. Developpers should call isWorkflowTab() This method should only be called by WSTypeEntry_HANDLER- Returns:
- Boolean true to display WorkflowTab
- See Also:
isWorkflowTab()
-
getUseDefaultCategories
public boolean getUseDefaultCategories()
Convenient getter to check if specific categories has been set Should only be called by WSTypeEntry_HANDLER- Returns:
- Boolean
-
getUseDefaultGroups
public boolean getUseDefaultGroups()
Convenient getter to check if specific groups has been set Should only be called by WSTypeEntry_HANDLER- Returns:
- Boolean
-
getTabLabel
public java.lang.String getTabLabel(java.lang.String tabId, java.lang.String lang)
Returns the localized label for the given tab identifier.- Parameters:
tabId
- the tab identifierlang
- the language- Returns:
- the localized label for the given tab identifier.
- Since:
- jcms-5.7.0
-
getInstanceWorkflowEnabled
public boolean getInstanceWorkflowEnabled()
Returns specific instanceWorkflowEnabled state for this WSTypeEntry It doesn't return any information from TypeEntry. Developpers should call isInstanceWorkflowEnabled() This method should only be called by WSTypeEntry_HANDLER- Returns:
- boolean true if instance workflow are enabled
-
setWorkflowId
public void setWorkflowId(java.lang.String workflowId)
Sets the name of the workflow for this given type in given workspace.- Parameters:
workflowId
- the name of the Workflow
-
setClassName
public void setClassName(java.lang.String className)
Set the classname for the WSTypeEntry This method should ONLY be called by Store to set the TypeEntry.- Parameters:
className
- the class name
-
setTemplates
public void setTemplates(java.lang.String[] templates)
Sets all the template's name available in the current workspace for the current type.- Parameters:
templates
- array of template name
-
setCategories
public void setCategories(java.lang.String[] categories)
Sets specific categories for this WSTypeEntry- Parameters:
categories
- the categories- See Also:
TypeEntry.setCategories(String[])
-
setGroups
public void setGroups(java.lang.String[] groups)
Sets specific groups for this WSTypeEntry- Parameters:
groups
- the groups- See Also:
TypeEntry.setGroups(String[])
-
setLabelMap
public void setLabelMap(java.util.HashMap<java.lang.String,java.lang.String> labelMap)
Sets labelMap.- Parameters:
labelMap
- the label map- Since:
- jcms-5.7.0
-
setDescriptionMap
public void setDescriptionMap(java.util.HashMap<java.lang.String,java.lang.String> descriptionMap)
Sets descriptionMap.- Parameters:
descriptionMap
- the description map- Since:
- jcms-5.7.0
-
setAdvancedTab
public void setAdvancedTab(java.lang.Boolean isAdvancedTab)
Sets specific advancedTab state for this WSTypeEntry- Parameters:
isAdvancedTab
- true if advanced tab must be displayed- See Also:
TypeEntry.setAdvancedTab(boolean)
-
setWorkflowTab
public void setWorkflowTab(java.lang.Boolean isWorkflowTab)
Sets specific workflowTab state for this WSTypeEntry- Parameters:
isWorkflowTab
- true if workflow tab must be displayed- See Also:
TypeEntry.setWorkflowTab(boolean)
-
setUpdateRightTab
public void setUpdateRightTab(java.lang.Boolean isUpdateRightTab)
Sets specific updateRightTab state for this WSTypeEntry- Parameters:
isUpdateRightTab
- true if update rights tab must be displayed- See Also:
TypeEntry.setUpdateRightTab(boolean)
-
setTemplateTab
public void setTemplateTab(java.lang.Boolean isTemplateTab)
Sets specific templateTab state for this WSTypeEntry- Parameters:
isTemplateTab
- true if template tab must be displayed- See Also:
TypeEntry.setTemplateTab(boolean)
-
setReadRightTab
public void setReadRightTab(java.lang.Boolean isReadRightTab)
Sets specific readRightTab state for this WSTypeEntry- Parameters:
isReadRightTab
- true if read rights tab must be displayed- See Also:
TypeEntry.setReadRightTab(boolean)
-
setDebatable
public void setDebatable(java.lang.Boolean isDebatable)
Sets specific debatable state for this WSTypeEntry- Parameters:
isDebatable
- true if instances will debatable- See Also:
TypeEntry.setDebatable(boolean)
-
setCategoryTab
public void setCategoryTab(java.lang.Boolean isCategoryTab)
Sets specific categories sets for this WSTypeEntry- Parameters:
isCategoryTab
- true if category tab must be displayed- See Also:
TypeEntry.setCategoryTab(boolean)
-
setUseDefaultGroups
public void setUseDefaultGroups(boolean useDefaultGroups)
-
setUseDefaultCategories
public void setUseDefaultCategories(boolean useDefaultCategories)
-
setInstanceWorkflowEnabled
public void setInstanceWorkflowEnabled(boolean instanceWorkflowEnabled)
Sets for this WSTypeEntry if instance workflow are enabled- Parameters:
instanceWorkflowEnabled
- true to enable instance workflow
-
-