@Name(value="typesConfigurationActions") @Scope(value=CONVERSATION) @Install(precedence=10) public class UITypesConfigurationActions extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
protected static class |
UITypesConfigurationActions.TypeLabelAlphabeticalOrder |
Modifier and Type | Field and Description |
---|---|
protected CoreSession |
documentManager |
protected Map<String,String> |
messages |
protected NavigationContext |
navigationContext |
protected SchemaManager |
schemaManager |
static Comparator<? super Type> |
TYPE_ALPHABETICAL_ORDER
Deprecated.
since 5.7.
|
protected TypeManager |
typeManager |
Constructor and Description |
---|
UITypesConfigurationActions() |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
computeAllowedTypes(DocumentModel currentDoc) |
protected List<String> |
getAllowedTypes(DocumentModel doc) |
List<Type> |
getNotSelectedTypes() |
List<Type> |
getNotSelectedTypes(DocumentModel document)
Returns a List of type not selected for the domain given as parameter
|
protected SchemaManager |
getSchemaManager() |
List<Type> |
getSelectedTypes() |
List<Type> |
getSelectedTypes(DocumentModel document)
Returns a List of type selected for the domain given as parameter
|
List<Type> |
getTypesWithSchemaFile() |
List<Type> |
getTypesWithSchemaFile(DocumentModel document)
Returns a List of Document Types associated with Schema file for the domain given as parameter, if they're
allowed for it.
|
@Deprecated public static final Comparator<? super Type> TYPE_ALPHABETICAL_ORDER
@In(create=true) protected transient TypeManager typeManager
@In(create=true) protected transient NavigationContext navigationContext
@In(create=true, required=false) protected transient CoreSession documentManager
protected transient SchemaManager schemaManager
public UITypesConfigurationActions()
public List<Type> getNotSelectedTypes()
public List<Type> getNotSelectedTypes(DocumentModel document)
document
- the domain to configureprotected List<String> getAllowedTypes(DocumentModel doc)
public List<Type> getSelectedTypes()
public List<Type> getSelectedTypes(DocumentModel document)
document
- the domain to configureprotected List<String> computeAllowedTypes(DocumentModel currentDoc)
public List<Type> getTypesWithSchemaFile()
public List<Type> getTypesWithSchemaFile(DocumentModel document)
document
- the domainprotected SchemaManager getSchemaManager()
Copyright © 2015 Nuxeo SA. All rights reserved.