# com.bea.netuix.application.manager.persistence.jdbc
MarkupDefinitionManagerImpl Class

public class MarkupDefinitionManagerImpl
extends `Object`
implements `IMarkupDefinitionManager`, `SessionBean`

Hierarchy
  `Object`
  `MarkupDefinitionManagerImpl`

All Implemented Interfaces
  `EnterpriseBean`, `IMarkupDefinitionManager`, `Serializable`, `SessionBean`

## Field Summary

`protected static `Debug`` | `debug` Debug

## Constructor Summary

MarkupDefinitionManagerImpl()

## Method Summary

`public `MarkupDefinition`` | `createMarkupDefinition`(`CustomizationContext` customizationContext, `MarkupDefinition` markupDefinition) Creates a new MarkupView Definition with its placeholders.
`public void` | `deleteMarkupDefinition`(`CustomizationContext` customizationContext, `MarkupDefinitionId` markupDefinitionId) Delete a markup definition.
`public void` | `ejbActivate`()
`public void` | `ejbCreate`()
`public void` | `ejbPassivate`()
`public void` | `ejbRemove`()
`public `MarkupDefinition`` | `getMarkupDefinition`(`CustomizationContext` customizationContext, `MarkupDefinitionId` markupDefinitionId) Getter for returning a single `MarkupDefinition` object given a supplied markup definition identifier.
`public `MarkupDefinition`` | `getMarkupDefinition`(`CustomizationContext` customizationContext, `String` markupName, `String` webAppName) Getter for returning a single `MarkupDefinition` object given a supplied markup name.
`public `MarkupDefinition`` | `getMarkupDefinitionFromFile`(`CustomizationContext` customizationContext, `String` markupFileName, `String` webAppName) Getter for returning a single `MarkupDefinition` object given a supplied markup file name name.
`public `MarkupDefinition`[]` | `getMarkupDefinitions`(`CustomizationContext` customizationContext, `String` webapp) Getter for returning a list of all `MarkupDefinitions` scoped to the supplied webapp.
`public `MarkupView`` | `getMarkupView`(`CustomizationContext` customizationContext, `MarkupDefinitionId` markupDefinitionId) Getter for returning an immutable deep copy of a `MarkupView`.
`public void` | `setSessionContext`(`SessionContext` sessionContext)
`public void` | `updateMarkupDefinition`(`CustomizationContext` customizationContext, `MarkupDefinition` markupDefinition) Update the markup definition with the new data.

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from class `com.bea.netuix.application.manager.`IMarkupDefinitionManager``
``createMarkupDefinition`, `deleteMarkupDefinition`, `getMarkupDefinition`, `getMarkupDefinition`, `getMarkupDefinitionFromFile`, `getMarkupDefinitions`, `getMarkupView`, `updateMarkupDefinition``

Methods from class `javax.ejb.`SessionBean``
`ejbActivate, ejbPassivate, ejbRemove, setSessionContext`

## Field Detail

### debug

    protected static Debug debug

## Constructor Detail

### MarkupDefinitionManagerImpl

    public MarkupDefinitionManagerImpl()

## Method Detail

### createMarkupDefinition(CustomizationContext, MarkupDefinition) Method

    public MarkupDefinition createMarkupDefinition(CustomizationContext customizationContext,
                                                   MarkupDefinition markupDefinition)
         throws MissingDataException, NotEntitledException, RemoteException, DuplicateObjectException

Description copied from `IMarkupDefinitionManager.createMarkupDefinition(CustomizationContext, MarkupDefinition)`
Creates a new MarkupView Definition with its placeholders.

#### Parameters

customizationContext
  for customization information

markupDefinition
  the markup data and associated placeholders

#### Returns

a fully populated MarkupDefinition

#### Exceptions

``MissingDataException``
``NotEntitledException``
``RemoteException``
``DuplicateObjectException``

### deleteMarkupDefinition(CustomizationContext, MarkupDefinitionId) Method

    public void deleteMarkupDefinition(CustomizationContext customizationContext,
                                       MarkupDefinitionId markupDefinitionId)
         throws ObjectNotFoundException, NotEntitledException, RemoteException

Description copied from `IMarkupDefinitionManager.deleteMarkupDefinition(CustomizationContext, MarkupDefinitionId)`

Delete a markup definition. The markup definition will not be deleted if it is a built in type or the markup is in use. This method will not throw an `ObjectInUseException` instead it will abort silently. To determine if these special conditions are occuring turn on debuging for `com.bea.netuix.application.manager.persistence.jdbc.MarkupDefinitionDelegate`.

#### Parameters

customizationContext
  for customization information

markupDefinitionId
  the id of the markup definition to delete.

#### Exceptions

``ObjectNotFoundException``
``NotEntitledException``
``RemoteException``

### ejbActivate() Method

    public void ejbActivate()
         throws EJBException, RemoteException

#### Exceptions

``EJBException``
``RemoteException``

### ejbCreate() Method

    public void ejbCreate()
         throws CreateException, RemoteException

#### Exceptions

``CreateException``
``RemoteException``

### ejbPassivate() Method

    public void ejbPassivate()
         throws EJBException, RemoteException

#### Exceptions

``EJBException``
``RemoteException``

### ejbRemove() Method

    public void ejbRemove()
         throws EJBException, RemoteException

#### Exceptions

``EJBException``
``RemoteException``

### getMarkupDefinition(CustomizationContext, MarkupDefinitionId) Method

    public MarkupDefinition getMarkupDefinition(CustomizationContext customizationContext,
                                                MarkupDefinitionId markupDefinitionId)
         throws RemoteException

Description copied from `IMarkupDefinitionManager.getMarkupDefinition(CustomizationContext, MarkupDefinitionId)`

Getter for returning a single `MarkupDefinition` object given a supplied markup definition identifier.

#### Parameters

customizationContext
  for customization information

markupDefinitionId
  the unique markup definition identifier.

#### Returns

a `MarkupDefinition` object fully populated and internationalized, otherwise, `null>/code> if the object does not exist.`

#### Exceptions

``RemoteException``

### getMarkupDefinition(CustomizationContext, String, String) Method

    public MarkupDefinition getMarkupDefinition(CustomizationContext customizationContext,
                                                String markupName,
                                                String webAppName)
         throws RemoteException

Description copied from `IMarkupDefinitionManager.getMarkupDefinition(CustomizationContext, String, String)`

Getter for returning a single `MarkupDefinition` object given a supplied markup name.

#### Parameters

customizationContext
  for customization information

markupName
  the markup name.

#### Returns

a `MarkupDefinition` object fully populated and internationalized, otherwise, `null>/code> if the object does not exist.`

#### Exceptions

``RemoteException``

### getMarkupDefinitionFromFile(CustomizationContext, String, String) Method

    public MarkupDefinition getMarkupDefinitionFromFile(CustomizationContext customizationContext,
                                                        String markupFileName,
                                                        String webAppName)
         throws RemoteException

Description copied from `IMarkupDefinitionManager.getMarkupDefinitionFromFile(CustomizationContext, String, String)`

Getter for returning a single `MarkupDefinition` object given a supplied markup file name name.

#### Parameters

customizationContext
  for customization information

markupFileName
  the name of the markup file relative to the webapp (/frameworks/markup/shell/my.shell)

#### Returns

a `MarkupDefinition` object fully populated and internationalized, otherwise, `null>/code> if the object does not exist.`

#### Exceptions

``RemoteException``

### getMarkupDefinitions(CustomizationContext, String) Method

    public MarkupDefinition[] getMarkupDefinitions(CustomizationContext customizationContext,
                                                 String webapp)
         throws RemoteException

Description copied from `IMarkupDefinitionManager.getMarkupDefinitions(CustomizationContext, String)`

Getter for returning a list of all `MarkupDefinitions` scoped to the supplied webapp.

#### Parameters

customizationContext
  for customization information

webapp
  the web application these markup definitions are scoped to.

#### Returns

an array of MarkupDinfition objects if they exist, otherwise, an empty array.

#### Exceptions

``RemoteException``

### getMarkupView(CustomizationContext, MarkupDefinitionId) Method

    public MarkupView getMarkupView(CustomizationContext customizationContext,
                                    MarkupDefinitionId markupDefinitionId)
         throws RemoteException

Description copied from `IMarkupDefinitionManager.getMarkupView(CustomizationContext, MarkupDefinitionId)`

Getter for returning an immutable deep copy of a `MarkupView`. The `MarkupView` object, unlike the `MarkupDefinition` or the `MarkupInstance` objects contains a full set of references to all child pages, markups and so on. The `MarkupView` object however is immutable.

#### Parameters

customizationContext
  the unique markupDefinitionId.

#### Returns

an immutable deep copy MarkupView object if one exist, otherwise null.

#### Exceptions

``RemoteException``

### setSessionContext(SessionContext) Method

    public void setSessionContext(SessionContext sessionContext)
         throws EJBException, RemoteException

#### Exceptions

``EJBException``
``RemoteException``

### updateMarkupDefinition(CustomizationContext, MarkupDefinition) Method

    public void updateMarkupDefinition(CustomizationContext customizationContext,
                                       MarkupDefinition markupDefinition)
         throws ObjectNotFoundException, NotEntitledException, RemoteException

Description copied from `IMarkupDefinitionManager.updateMarkupDefinition(CustomizationContext, MarkupDefinition)`

Update the markup definition with the new data.

#### Parameters

customizationContext
  for customization information

markupDefinition
  the markup definition containing the new data

#### Exceptions

``ObjectNotFoundException``
``NotEntitledException``
``RemoteException``