|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 Boolean |
advancedTab
|
protected String[] |
categories
|
protected Boolean |
categoryTab
|
protected String |
className
|
protected Boolean |
debatable
|
protected HashMap<String,String> |
descriptionMap
|
protected String[] |
groups
|
protected boolean |
instanceWorkflowEnabled
|
protected HashMap<String,String> |
labelMap
|
protected Boolean |
readRightTab
|
protected Boolean |
reviewable
|
static String |
REVISION
|
protected String[] |
templates
|
protected Set<String> |
templateSet
|
protected Boolean |
templateTab
|
protected Class<? extends Publication> |
type
|
protected TypeEntry |
typeEntry
|
protected Boolean |
updateRightTab
|
protected boolean |
useDefaultCategories
|
protected boolean |
useDefaultGroups
|
protected String |
workflowId
|
protected 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 |
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(Class<? extends Publication> clazz,
Workspace workspace)
|
|
WSTypeEntry(String className,
Workspace workspace)
|
|
WSTypeEntry(WSTypeEntry clone)
|
Method Summary | |
---|---|
ControllerStatus |
checkCreate(Member mbr,
Map context)
Checks if the creation can be performed |
ControllerStatus |
checkCreateUpdate(Member mbr,
Map context)
Convenient check for Create and Update. |
ControllerStatus |
checkMember(int op,
Member mbr,
Map context)
Checks if the given member can perform the given operation. |
ControllerStatus |
checkUpdate(Member mbr,
Map context)
Checks if the update can be performed |
Boolean |
getAdvancedTab()
Returns specific advancedTab state for this WSTypeEntry It doesn't return any information from TypeEntry. |
String[] |
getAvailableCategories()
Returns the available categories |
String |
getAvailableDescription(String lang)
Returns the description of this type in the given language. |
String[] |
getAvailableGroups()
Returns the available groups |
String |
getAvailableLabel(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. |
String[] |
getCategories()
Returns specific categories sets for this WSTypeEntry It doesn't return any information from TypeEntry. |
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. |
String |
getClassName()
Returns the name of the class of the given Type for this TypeEntry. |
Boolean |
getDebatable()
Returns specific debatable state for this WSTypeEntry It doesn't return any information from TypeEntry. |
TypeTemplateEntry |
getDefaultTemplateEntry(String usage)
Returns a default TypeTemplateEntry matching the given usage for the current workspace |
Set<TypeTemplateEntry> |
getDefaultTemplateEntrySet()
Returns all default template entries |
Set<String> |
getDefaultTemplateNameSet()
Returns all default template names |
Map<String,String> |
getDescriptionMap()
Returns the description map ({lang, value}). |
TypeTemplateEntry |
getFirstTemplateEntry(String usage,
String[] names)
Returns the first TypeTemplateEntry from given names matching given usage |
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. |
Map<String,String> |
getLabelMap()
Returns the label map ({lang, value}). |
Boolean |
getReadRightTab()
Returns specific ReadRightTab state for this WSTypeEntry It doesn't return any information from TypeEntry. |
Boolean |
getReviewable()
Returns specific reviewable state for this WSTypeEntry It doesn't return any information from TypeEntry. |
String |
getTabLabel(String tabId,
String lang)
Returns the localized label for the given tab identifier. |
TypeTemplateEntry |
getTemplateEntry(String name)
Returns a TypeTemplateEntry matching the given template name |
Set<TypeTemplateEntry> |
getTemplateEntrySet(String usage)
Returns a new Set of TypeTemplateEntry matching the given usage for the current workspace |
String[] |
getTemplates()
Returns a Set of display template's name used for this type by this workspace. |
Boolean |
getTemplateTab()
Returns specific TemplateTab state for this WSTypeEntry It doesn't return any information from TypeEntry. |
Map<String,Set<TypeTemplateEntry>> |
getTemplateUsageMap()
Returns a Map of usage/Set of TypeTemplateEntry. |
Class<? extends Publication> |
getType()
Returns the type this WSTypeEntry controls. |
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. |
String |
getWorkflowId()
Return the name of the workflow for this given type in given workspace. |
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(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,
Map context)
Performs data creation. |
void |
performDelete(Member mbr,
Map context)
Performs data deletion. |
void |
setAdvancedTab(Boolean isAdvancedTab)
Sets specific advancedTab state for this WSTypeEntry |
void |
setCategories(String[] categories)
Sets specific categories for this WSTypeEntry |
void |
setCategoryTab(Boolean isCategoryTab)
Sets specific categories sets for this WSTypeEntry |
void |
setClassName(String className)
Set the classname for the WSTypeEntry This method should ONLY be called by Store to set the TypeEntry. |
void |
setDebatable(Boolean isDebatable)
Sets specific debatable state for this WSTypeEntry |
void |
setDescriptionMap(HashMap<String,String> descriptionMap)
Sets descriptionMap. |
void |
setGroups(String[] groups)
Sets specific groups for this WSTypeEntry |
void |
setInstanceWorkflowEnabled(boolean instanceWorkflowEnabled)
Sets for this WSTypeEntry if instance workflow are enabled |
void |
setLabelMap(HashMap<String,String> labelMap)
Sets labelMap. |
void |
setReadRightTab(Boolean isReadRightTab)
Sets specific readRightTab state for this WSTypeEntry |
void |
setReviewable(Boolean isReviewable)
Sets specific reviewable state for this WSTypeEntry |
void |
setTemplates(String[] templates)
Sets all the template's name available in the current workspace for the current type. |
void |
setTemplateTab(Boolean isTemplateTab)
Sets specific templateTab state for this WSTypeEntry |
void |
setUpdateRightTab(Boolean isUpdateRightTab)
Sets specific updateRightTab state for this WSTypeEntry |
void |
setUseDefaultCategories(boolean useDefaultCategories)
|
void |
setUseDefaultGroups(boolean useDefaultGroups)
|
void |
setWorkflowId(String workflowId)
Sets the name of the workflow for this given type in given workspace. |
void |
setWorkflowTab(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. |
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 String REVISION
protected transient TypeEntry typeEntry
protected transient Class<? extends Publication> type
protected transient Workspace workspace
protected transient boolean workspaceForced
protected transient Set<String> templateSet
protected String className
protected Boolean debatable
protected Boolean reviewable
protected Boolean categoryTab
protected Boolean templateTab
protected Boolean readRightTab
protected Boolean updateRightTab
protected Boolean workflowTab
protected Boolean advancedTab
protected String[] categories
protected String[] groups
protected HashMap<String,String> labelMap
protected HashMap<String,String> descriptionMap
protected boolean useDefaultCategories
protected boolean useDefaultGroups
protected String workflowId
protected boolean instanceWorkflowEnabled
protected String[] templates
Constructor Detail |
---|
public WSTypeEntry()
public WSTypeEntry(Class<? extends Publication> clazz, Workspace workspace)
public WSTypeEntry(String className, Workspace workspace)
public WSTypeEntry(WSTypeEntry clone)
Method Detail |
---|
public boolean isSameProperties()
Workspace.setWSTypeEntry(Class, WSTypeEntry)
public String toFullString()
toFullString
in class Data
public boolean isForced()
public ControllerStatus checkMember(int op, Member mbr, Map context)
Data
checkMember
in class Data
op
- 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, Map context)
mbr
- The Membercontext
- The context
checkCreate(Member, Map)
,
checkUpdate(Member, Map)
public ControllerStatus checkCreate(Member mbr, Map context)
Data
checkCreate
in class Data
mbr
- 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, Map context)
Data
checkUpdate
in class Data
mbr
- 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, Map context)
Data
performCreate
in class Data
mbr
- 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, Map context)
Data
performDelete
in class Data
mbr
- the member which requests the write operationcontext
- a map which contains context parameters (may be null)Data.performDelete(Member, Map)
public TypeTemplateEntry getTemplateEntry(String name)
name
- the template name
TypeEntry.getTemplateEntry(String)
public TypeTemplateEntry getFirstTemplateEntry(String usage, String[] names)
usage
- the template usagenames
- an array of templates name
TypeEntry.getFirstTemplateEntry(String, String[])
public TypeTemplateEntry getDefaultTemplateEntry(String usage)
usage
- the template usage
TypeEntry.getDefaultTemplateEntry(String)
public Set<TypeTemplateEntry> getTemplateEntrySet(String usage)
usage
- the template usage
public Set<TypeTemplateEntry> getDefaultTemplateEntrySet()
public Set<String> getDefaultTemplateNameSet()
public Map<String,Set<TypeTemplateEntry>> getTemplateUsageMap()
public boolean hasTemplate(String name)
name
- the template name to check
public TypeEntry getChannelTypeEntry()
public Workflow getWorkflow(boolean checkSuperclass)
checkSuperclass
- check super class
public 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 String[] getAvailableCategories()
TypeEntry.getCategories()
public String[] getAvailableGroups()
TypeEntry.getGroups()
public String getAvailableLabel(String lang)
lang
- the language
TypeEntry.getLabel(String)
public String getAvailableDescription(String lang)
lang
- the language
TypeEntry.getDescription(String)
public String getWorkflowId()
public String getClassName()
public String[] getTemplates()
public Boolean getAdvancedTab()
isAdvancedTab()
public String[] getCategories()
getAvailableCategories()
public String[] getGroups()
getAvailableGroups()
public Boolean getCategoryTab()
isCategoryTab()
public Boolean getDebatable()
isDebatable()
public Map<String,String> getLabelMap()
public Map<String,String> getDescriptionMap()
public Boolean getReadRightTab()
isReadRightTab()
public Boolean getReviewable()
isReviewable()
public Boolean getTemplateTab()
isTemplateTab()
public Boolean getUpdateRightTab()
isUpdateRightTab()
public Boolean getWorkflowTab()
isWorkflowTab()
public boolean getUseDefaultCategories()
public boolean getUseDefaultGroups()
public String getTabLabel(String tabId, String lang)
tabId
- the tab identifierlang
- the language
public boolean getInstanceWorkflowEnabled()
public void setWorkflowId(String workflowId)
workflowId
- the name of the Workflowpublic void setClassName(String className)
className
- the class namepublic void setTemplates(String[] templates)
templates
- array of template namepublic void setCategories(String[] categories)
TypeEntry.setCategories(String[])
public void setGroups(String[] groups)
TypeEntry.setGroups(String[])
public void setLabelMap(HashMap<String,String> labelMap)
labelMap
- public void setDescriptionMap(HashMap<String,String> descriptionMap)
descriptionMap
- public void setAdvancedTab(Boolean isAdvancedTab)
TypeEntry.setAdvancedTab(boolean)
public void setWorkflowTab(Boolean isWorkflowTab)
TypeEntry.setWorkflowTab(boolean)
public void setUpdateRightTab(Boolean isUpdateRightTab)
TypeEntry.setUpdateRightTab(boolean)
public void setTemplateTab(Boolean isTemplateTab)
TypeEntry.setTemplateTab(boolean)
public void setReviewable(Boolean isReviewable)
TypeEntry.setReviewable(boolean)
public void setReadRightTab(Boolean isReadRightTab)
TypeEntry.setReadRightTab(boolean)
public void setDebatable(Boolean isDebatable)
TypeEntry.setDebatable(boolean)
public void setCategoryTab(Boolean isCategoryTab)
TypeEntry.setCategoryTab(boolean)
public void setUseDefaultGroups(boolean useDefaultGroups)
public void setUseDefaultCategories(boolean useDefaultCategories)
public void setInstanceWorkflowEnabled(boolean instanceWorkflowEnabled)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |