|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CmxControl
Copyright (c) 2005-2006 by BEA Systems, Inc. All Rights Reserved.
Simplifies access to content management (CM) content repositories. To create anObjectClass
and Node
of that new type, one writes an interface that:
@ControlExtention
@RepositoryInfo
annotation
@Create
@ParentId
@Property
; supplying necessary type information
Bean
from the new interface using an annotation processing tool
@Create
method
@org.apache.beehive.controls.api.bean.ControlExtension
@CmxControl.RepositoryInfo(repositoryName="Foo_Repository")
public interface BarCmxControl extends CmxControl
{
@Create(nodeType="BAR")
public Bar createBar(@Property(name="BAR_TITLE") String title);
}
The new ObjectClass
is created on the first call; Node
instances of that type are created
on each call.
Method-level and Paramter-level annotations are mutually exclusive in that only one should be used per method/argument
Declarative instantiation (@Control fooControl;
) from a PageFlow or from another control
is the preferred method of instantiating controls (as this will supply the control a proper
Control Container Context (CCC)). Should the control be instantiated programmatically, from a
different context or with an application scope (rather than webapp), extra measures should be taken:
AppScopedControlsFactory
to obtain the CCC
ControlFilter
in web.xml
Extensible
Nested Class Summary | |
---|---|
static interface |
CmxControl.Create
Method-level annotation for @ControlExtention methods to Create CM Node &
ObjectClass |
static interface |
CmxControl.Delete
Method-level annotation for methods in a @ControlExtension which wish to Delete CM nodes. |
static interface |
CmxControl.DynamicProperties
Parameter-level annotation to mark a parameter as a property |
static interface |
CmxControl.FindBy
Method-level annotation for methods in a @ControlExtension which wish to find CM nodes using an expression. |
static interface |
CmxControl.FindById
Method-level annotation for methods in a @ControlExtension which wish to find CM nodes using an ID...returns a Node. |
static interface |
CmxControl.Id
Parameter-level annotation to mark a parameter as a property |
static interface |
CmxControl.Move
Method-level annotation for methods in a @ControlExtension which wish to Delete CM nodes. |
static interface |
CmxControl.ParentId
Parameter-level annotation to mark a parameter as a property |
static interface |
CmxControl.Property
Parameter-level annotation to mark a parameter as a property |
static class |
CmxControl.PropertyPair
Holds a Property and its corresponding PropertyDefinition |
static interface |
CmxControl.RepositoryInfo
Class-level annotation for making a RepositoryInfo available for use within the CmxControlImpl. |
static interface |
CmxControl.SearchPaths
Parameter-level annotation to mark a parameter as a property |
static interface |
CmxControl.SortOrder
Parameter-level annotation to mark a parameter as a property |
static interface |
CmxControl.Update
Method-level annotation for methods in a @ControlExtension which wish to Delete CM nodes. |
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |