Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.types
Class TypeService

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
      extended by org.nuxeo.ecm.platform.types.TypeService
All Implemented Interfaces:
TypeManager, Adaptable, Component, Extensible

public class TypeService
extends DefaultComponent
implements TypeManager


Field Summary
static ComponentName ID
           
 
Constructor Summary
TypeService()
           
 
Method Summary
 void activate(ComponentContext context)
          Activates the component.
 void deactivate(ComponentContext context)
          Deactivates the component.
 java.util.Collection<Type> getAllowedSubTypes(java.lang.String typeName)
           
 java.lang.String[] getSuperTypes(java.lang.String typeName)
          Gets the super type names for the given type.
 Type getType(java.lang.String typeName)
           
 TypeRegistry getTypeRegistry()
           
 java.util.Collection<Type> getTypes()
           
 TypeWidgetRegistry getTypeWidgetRegistry()
           
 boolean hasType(java.lang.String typeName)
           
 void registerExtension(Extension extension)
          Registers the given extension.
 void registerTypeWidgetExtension(Extension extension)
           
 void unregisterExtension(Extension extension)
          Unregisters the given extension.
 void unregisterTypeWidgetExtension(Extension extension)
           
 
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
getAdapter, registerContribution, unregisterContribution
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final ComponentName ID
Constructor Detail

TypeService

public TypeService()
Method Detail

activate

public void activate(ComponentContext context)
Description copied from interface: Component
Activates the component.

This method is called by the runtime when a component is activated.

Specified by:
activate in interface Component
Overrides:
activate in class DefaultComponent
Parameters:
context - the runtime context

deactivate

public void deactivate(ComponentContext context)
Description copied from interface: Component
Deactivates the component.

This method is called by the runtime when a component is deactivated.

Specified by:
deactivate in interface Component
Overrides:
deactivate in class DefaultComponent
Parameters:
context - the runtime context

registerExtension

public void registerExtension(Extension extension)
Description copied from interface: Extensible
Registers the given extension.

Specified by:
registerExtension in interface Extensible
Overrides:
registerExtension in class DefaultComponent
Parameters:
extension - the extension to register

unregisterExtension

public void unregisterExtension(Extension extension)
Description copied from interface: Extensible
Unregisters the given extension.

Specified by:
unregisterExtension in interface Extensible
Overrides:
unregisterExtension in class DefaultComponent
Parameters:
extension - the extension to unregister

registerTypeWidgetExtension

public void registerTypeWidgetExtension(Extension extension)

unregisterTypeWidgetExtension

public void unregisterTypeWidgetExtension(Extension extension)

getTypeRegistry

public TypeRegistry getTypeRegistry()

getTypeWidgetRegistry

public TypeWidgetRegistry getTypeWidgetRegistry()

getSuperTypes

public java.lang.String[] getSuperTypes(java.lang.String typeName)
Description copied from interface: TypeManager
Gets the super type names for the given type.

Specified by:
getSuperTypes in interface TypeManager
Returns:
an array of supertypes or an empty array if no supertype exists. null is returned if no such type exists

getType

public Type getType(java.lang.String typeName)
Specified by:
getType in interface TypeManager

hasType

public boolean hasType(java.lang.String typeName)
Specified by:
hasType in interface TypeManager

getTypes

public java.util.Collection<Type> getTypes()
Specified by:
getTypes in interface TypeManager

getAllowedSubTypes

public java.util.Collection<Type> getAllowedSubTypes(java.lang.String typeName)
Specified by:
getAllowedSubTypes in interface TypeManager

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.