|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.jstore.BasicStorable
com.jalios.jcms.Data
com.jalios.jcms.workspace.WSTypeEntry
public class WSTypeEntry
This class is a wrapper on TypeEntry handling type properties for each workspace.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.jalios.jcms.Data |
|---|
Data.AuthorComparator<T extends Data>, 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 | |
|---|---|
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 java.util.HashMap<java.lang.String,java.lang.String> |
labelMap
|
protected java.lang.Boolean |
readRightTab
|
protected java.lang.Boolean |
reviewable
|
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, lockDate, lockMember, opAuthor, opDelegate |
| Fields inherited from class com.jalios.jstore.BasicStorable |
|---|
cdate, ddate, id, mdate, store |
| 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.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.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 | |
|---|---|
WSTypeEntry()
|
|
WSTypeEntry(java.lang.Class<? extends Publication> clazz,
Workspace workspace)
|
|
WSTypeEntry(java.lang.String className,
Workspace workspace)
|
|
WSTypeEntry(WSTypeEntry clone)
|
|
| Method Summary | |
|---|---|
ControllerStatus |
checkCreate(Member mbr,
java.util.Map context)
Checks if the creation can be performed |
ControllerStatus |
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 performed |
java.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 categories |
java.lang.String |
getAvailableDescription(java.lang.String lang)
Returns the description of this type in the given language. |
java.lang.String[] |
getAvailableGroups()
Returns the available groups |
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. |
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 workspace |
java.util.Set<TypeTemplateEntry> |
getDefaultTemplateEntrySet()
Returns all default template entries |
java.util.Set<java.lang.String> |
getDefaultTemplateNameSet()
Returns all default template names |
java.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 usage |
java.lang.String[] |
getGroups()
Returns specific groups sets 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.Boolean |
getReviewable()
Returns specific reviewable 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 name |
java.util.Set<TypeTemplateEntry> |
getTemplateEntrySet(java.lang.String usage)
Returns a new Set of TypeTemplateEntry matching the given usage for the current workspace |
java.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_HANDLER |
boolean |
getUseDefaultGroups()
Convenient getter to check if specific groups has been set Should only be called by WSTypeEntry_HANDLER |
Workflow |
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 template |
boolean |
isAdvancedTab()
Returns the available state of advanced tab |
boolean |
isCategoryTab()
Returns the available state of category tab |
boolean |
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 tab |
boolean |
isReviewable()
Check if type is reviewable for the given workspace |
boolean |
isSameProperties()
Checks if this WSTypeEntry have same properties that it's original TypeEntry. |
boolean |
isTemplateTab()
Returns the available state of template tab |
boolean |
isUpdateRightTab()
Returns the available state of updateRight tab |
boolean |
isWorkflowTab()
Returns the available state of workflow tab |
void |
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 WSTypeEntry |
void |
setCategories(java.lang.String[] categories)
Sets specific categories for this WSTypeEntry |
void |
setCategoryTab(java.lang.Boolean isCategoryTab)
Sets specific categories sets for this WSTypeEntry |
void |
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 WSTypeEntry |
void |
setDescriptionMap(java.util.HashMap<java.lang.String,java.lang.String> descriptionMap)
Sets descriptionMap. |
void |
setGroups(java.lang.String[] groups)
Sets specific groups for this WSTypeEntry |
void |
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 WSTypeEntry |
void |
setReviewable(java.lang.Boolean isReviewable)
Sets specific reviewable state for this WSTypeEntry |
void |
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 WSTypeEntry |
void |
setUpdateRightTab(java.lang.Boolean isUpdateRightTab)
Sets specific updateRightTab state for this WSTypeEntry |
void |
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 WSTypeEntry |
void |
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.jstore.BasicStorable |
|---|
clearId, compareTo, equals, getAttribute, getAttributes, getCdate, getCdateComparator, getDdate, getId, getIdComparator, getMdate, getMdateComparator, getStore, getUrid, hasBeenUpdated, isStored, resolveAtt, resolveVal, setAttributes, setCdate, setDdate, setId, setStore, toXml |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String REVISION
protected transient TypeEntry typeEntry
protected transient java.lang.Class<? extends Publication> type
protected transient Workspace workspace
protected transient boolean workspaceForced
protected transient java.util.Set<java.lang.String> templateSet
protected java.lang.String className
protected java.lang.Boolean debatable
protected java.lang.Boolean reviewable
protected java.lang.Boolean categoryTab
protected java.lang.Boolean templateTab
protected java.lang.Boolean readRightTab
protected java.lang.Boolean updateRightTab
protected java.lang.Boolean workflowTab
protected java.lang.Boolean advancedTab
protected java.lang.String[] categories
protected java.lang.String[] groups
protected java.util.HashMap<java.lang.String,java.lang.String> labelMap
protected java.util.HashMap<java.lang.String,java.lang.String> descriptionMap
protected boolean useDefaultCategories
protected boolean useDefaultGroups
protected java.lang.String workflowId
protected java.lang.String[] templates
| Constructor Detail |
|---|
public WSTypeEntry()
public WSTypeEntry(java.lang.Class<? extends Publication> clazz,
Workspace workspace)
public WSTypeEntry(java.lang.String className,
Workspace workspace)
public WSTypeEntry(WSTypeEntry clone)
| Method Detail |
|---|
public boolean isSameProperties()
Workspace.setWSTypeEntry(Class, WSTypeEntry)public java.lang.String toFullString()
toFullString in class Datapublic boolean isForced()
public ControllerStatus checkMember(int op,
Member mbr,
java.util.Map context)
Data
checkMember in class Dataop - the operation (OP_CREATE, OP_UPDATE, ...)mbr - the member which requests the write operationcontext - a map which contains context parameters (may be null)
Data.checkMember(int, Member, Map)
public ControllerStatus checkCreateUpdate(Member mbr,
java.util.Map context)
mbr - The Membercontext - The context
checkCreate(Member, Map),
checkUpdate(Member, Map)
public ControllerStatus checkCreate(Member mbr,
java.util.Map context)
Data
checkCreate in class Datambr - the member which requests the write operationcontext - a map which contains context parameters (may be null)
Data.checkCreate(Member, Map)
public ControllerStatus checkUpdate(Member mbr,
java.util.Map context)
Data
checkUpdate in class Datambr - the member which requests the write operationcontext - a map which contains context parameters (may be null)
Data.checkUpdate(Member, Map)
public void performCreate(Member mbr,
java.util.Map context)
Data
performCreate in class Datambr - the member which requests the write operationcontext - a map which contains context parameters (may be null)Data.performCreate(Member, Map)
public void performDelete(Member mbr,
java.util.Map context)
Data
performDelete in class Datambr - the member which requests the write operationcontext - a map which contains context parameters (may be null)Data.performDelete(Member, Map)public TypeTemplateEntry getTemplateEntry(java.lang.String name)
name - the template name
TypeEntry.getTemplateEntry(String)
public TypeTemplateEntry getFirstTemplateEntry(java.lang.String usage,
java.lang.String[] names)
usage - the template usagenames - an array of templates name
TypeEntry.getFirstTemplateEntry(String, String[])public TypeTemplateEntry getDefaultTemplateEntry(java.lang.String usage)
usage - the template usage
TypeEntry.getDefaultTemplateEntry(String)public java.util.Set<TypeTemplateEntry> getTemplateEntrySet(java.lang.String usage)
usage - the template usage
public java.util.Set<TypeTemplateEntry> getDefaultTemplateEntrySet()
public java.util.Set<java.lang.String> getDefaultTemplateNameSet()
public java.util.Map<java.lang.String,java.util.Set<TypeTemplateEntry>> getTemplateUsageMap()
public boolean hasTemplate(java.lang.String name)
name - the template name to check
public TypeEntry getChannelTypeEntry()
public Workflow getWorkflow(boolean checkSuperclass)
checkSuperclass - check super class
public java.lang.Class<? extends Publication> getType()
public Workspace getWorkspace()
public void setWorkspace(Workspace workspace)
workspace - public boolean isAdvancedTab()
TypeEntry.isAdvancedTab()public boolean isCategoryTab()
TypeEntry.isCategoryTab()public boolean isDebatable()
TypeEntry.isDebatable()public boolean isReadRightTab()
TypeEntry.isReadRightTab()public boolean isReviewable()
TypeEntry.isReviewable()public boolean isTemplateTab()
TypeEntry.isTemplateTab()public boolean isUpdateRightTab()
TypeEntry.isUpdateRightTab()public boolean isWorkflowTab()
TypeEntry.isWorkflowTab()public java.lang.String[] getAvailableCategories()
TypeEntry.getCategories()public java.lang.String[] getAvailableGroups()
TypeEntry.getGroups()public java.lang.String getAvailableLabel(java.lang.String lang)
lang - the language
TypeEntry.getLabel(String)public java.lang.String getAvailableDescription(java.lang.String lang)
lang - the language
TypeEntry.getDescription(String)public java.lang.String getWorkflowId()
public java.lang.String getClassName()
public java.lang.String[] getTemplates()
public java.lang.Boolean getAdvancedTab()
isAdvancedTab()public java.lang.String[] getCategories()
getAvailableCategories()public java.lang.String[] getGroups()
getAvailableGroups()public java.lang.Boolean getCategoryTab()
isCategoryTab()public java.lang.Boolean getDebatable()
isDebatable()public java.util.Map<java.lang.String,java.lang.String> getLabelMap()
public java.util.Map<java.lang.String,java.lang.String> getDescriptionMap()
public java.lang.Boolean getReadRightTab()
isReadRightTab()public java.lang.Boolean getReviewable()
isReviewable()public java.lang.Boolean getTemplateTab()
isTemplateTab()public java.lang.Boolean getUpdateRightTab()
isUpdateRightTab()public java.lang.Boolean getWorkflowTab()
isWorkflowTab()public boolean getUseDefaultCategories()
public boolean getUseDefaultGroups()
public java.lang.String getTabLabel(java.lang.String tabId,
java.lang.String lang)
tabId - the tab identifierlang - the language
public void setWorkflowId(java.lang.String workflowId)
workflowId - the name of the Workflowpublic void setClassName(java.lang.String className)
className - the class namepublic void setTemplates(java.lang.String[] templates)
templates - array of template namepublic void setCategories(java.lang.String[] categories)
TypeEntry.setCategories(String[])public void setGroups(java.lang.String[] groups)
TypeEntry.setGroups(String[])public void setLabelMap(java.util.HashMap<java.lang.String,java.lang.String> labelMap)
labelMap - public void setDescriptionMap(java.util.HashMap<java.lang.String,java.lang.String> descriptionMap)
descriptionMap - public void setAdvancedTab(java.lang.Boolean isAdvancedTab)
TypeEntry.setAdvancedTab(boolean)public void setWorkflowTab(java.lang.Boolean isWorkflowTab)
TypeEntry.setWorkflowTab(boolean)public void setUpdateRightTab(java.lang.Boolean isUpdateRightTab)
TypeEntry.setUpdateRightTab(boolean)public void setTemplateTab(java.lang.Boolean isTemplateTab)
TypeEntry.setTemplateTab(boolean)public void setReviewable(java.lang.Boolean isReviewable)
TypeEntry.setReviewable(boolean)public void setReadRightTab(java.lang.Boolean isReadRightTab)
TypeEntry.setReadRightTab(boolean)public void setDebatable(java.lang.Boolean isDebatable)
TypeEntry.setDebatable(boolean)public void setCategoryTab(java.lang.Boolean isCategoryTab)
TypeEntry.setCategoryTab(boolean)public void setUseDefaultGroups(boolean useDefaultGroups)
public void setUseDefaultCategories(boolean useDefaultCategories)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||