Package com.axemble.vdoc.sdk.impl
Class EzsBlock
java.lang.Object
com.axemble.vdoc.sdk.impl.AbstractElement
com.axemble.vdoc.sdk.impl.PortalElement
com.axemble.vdoc.sdk.impl.EzsContentComponent
com.axemble.vdoc.sdk.impl.EzsBlock
- All Implemented Interfaces:
IBlock
,IContentComponent
,IElement
,Serializable
- Author:
- vlygeros
- See Also:
-
Field Summary
Fields inherited from class com.axemble.vdoc.sdk.impl.EzsContentComponent
contentNodeImpl
Fields inherited from class com.axemble.vdoc.sdk.impl.PortalElement
path, storageKey
Fields inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
module
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a block.void
Adds a block.void
addComponent
(IComponent component) Adds a component.void
addComponent
(IComponent component, String path) Adds a component.void
addFirstComponent
(IComponent component) Adds a component in the first position in the block.findBlockBySystemName
(String name) Searches aIBlock
object by its system name.findBlockBySystemName
(String name, boolean recursive) Searches aIBlock
object by its system name, recursively.Searches aIComponent
object by its system name.findComponentBySystemName
(String name, boolean recursive) Searches aIComponent
object by its system name, recursively.findContentComponentById
(IStorageKey storageKey) Searches aIContentComponent
object by its identifier.findContentComponentById
(IStorageKey storageKey, boolean recursive) Searches aIContentComponent
object by its identifier, recursively.Searches aIContentComponent
object by its system name.findContentComponentBySystemName
(String name, boolean recursive) Searches aIContentComponent
object by its system name, recursively.Gets the inherited block.Gets all the content components (IBlock
orIComponent
elements).protected final com.axemble.easysite.dao.domain.impl.BlockImpl
boolean
Checks if the block has been rebuilt.void
removeBlock
(IBlock block) Removes a block.void
removeComponent
(IComponent component) Removes a component.void
replaceBlock
(IBlock block, String path) Replaces a block.void
replaceComponent
(IComponent component, String path) Replaces a component.void
setBlockTemplateContainer
(IBlockTemplateContainer blockTemplateContainer) Sets the block template container.Methods inherited from class com.axemble.vdoc.sdk.impl.EzsContentComponent
getInnerCssClass, getInnerDescription, getInnerLabel, getInnerName, getNativeObject, getParentBlock, getSysName, getValue, getValue, isInnerNullable, isInnerReplaceable, setHidden, setInnerCssClass, setInnerDescription, setInnerLabel, setInnerName, setInnerNullable, setInnerReplaceable, setSysName, setValue
Methods inherited from class com.axemble.vdoc.sdk.impl.PortalElement
equals, getId, getPath, getProtocolURI, getProtocolURI, hashCode, replaceBackSlash, replaceSlash, save, setId
Methods inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
getModule
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.axemble.vdoc.sdk.interfaces.IContentComponent
getInnerCssClass, getInnerDescription, getInnerLabel, getInnerName, getParentBlock, getSysName, getValue, getValue, isInnerNullable, isInnerReplaceable, setHidden, setInnerCssClass, setInnerNullable, setInnerReplaceable, setSysName, setValue
-
Constructor Details
-
EzsBlock
- Parameters:
module
-
-
-
Method Details
-
getInternalObject
protected final com.axemble.easysite.dao.domain.impl.BlockImpl getInternalObject() -
addBlock
Description copied from interface:IBlock
Adds a block. -
addBlock
Description copied from interface:IBlock
Adds a block. -
replaceBlock
Description copied from interface:IBlock
Replaces a block.- Specified by:
replaceBlock
in interfaceIBlock
- Parameters:
block
- TheIBlock
object to replace.path
- The path of the component to replace.
-
addComponent
Description copied from interface:IBlock
Adds a component.- Specified by:
addComponent
in interfaceIBlock
- Parameters:
component
- TheIComponent
object to add.
-
addFirstComponent
Description copied from interface:IBlock
Adds a component in the first position in the block.- Specified by:
addFirstComponent
in interfaceIBlock
- Parameters:
component
- TheIComponent
object to add.
-
addComponent
Description copied from interface:IBlock
Adds a component.- Specified by:
addComponent
in interfaceIBlock
- Parameters:
component
- TheIComponent
object to add.path
- The path of the component to replace.
-
replaceComponent
Description copied from interface:IBlock
Replaces a component.- Specified by:
replaceComponent
in interfaceIBlock
- Parameters:
component
- TheIComponent
object to replace.path
- The path of the component to replace.
-
getContentComponents
Description copied from interface:IBlock
Gets all the content components (IBlock
orIComponent
elements).- Specified by:
getContentComponents
in interfaceIBlock
- Returns:
- A java.util.Collection of
IContentComponent
objects.
-
removeBlock
Description copied from interface:IBlock
Removes a block.- Specified by:
removeBlock
in interfaceIBlock
- Parameters:
block
- TheIBlock
object to remove.
-
removeComponent
Description copied from interface:IBlock
Removes a component.- Specified by:
removeComponent
in interfaceIBlock
- Parameters:
component
- TheIComponent
object to remove.
-
getBlockTemplateContainer
Description copied from interface:IBlock
Gets the inherited block.- Specified by:
getBlockTemplateContainer
in interfaceIBlock
- Returns:
- A
IBlockTemplateContainer
object.
-
setBlockTemplateContainer
Description copied from interface:IBlock
Sets the block template container.- Specified by:
setBlockTemplateContainer
in interfaceIBlock
- Parameters:
blockTemplateContainer
- TheIBlockTemplateContainer
to set.
-
findContentComponentById
Description copied from interface:IBlock
Searches aIContentComponent
object by its identifier.- Specified by:
findContentComponentById
in interfaceIBlock
- Parameters:
storageKey
- TheIStorageKey
object to search with.- Returns:
- A
IContentComponent
object.
-
findContentComponentById
Description copied from interface:IBlock
Searches aIContentComponent
object by its identifier, recursively.- Specified by:
findContentComponentById
in interfaceIBlock
- Parameters:
storageKey
- TheIStorageKey
object to search with.recursive
- Specify if recursive.- Returns:
- A
IContentComponent
object.
-
findBlockBySystemName
Description copied from interface:IBlock
Searches aIBlock
object by its system name.- Specified by:
findBlockBySystemName
in interfaceIBlock
- Parameters:
name
- The system name of the child block.- Returns:
- A
IBlock
object.
-
findBlockBySystemName
Description copied from interface:IBlock
Searches aIBlock
object by its system name, recursively.- Specified by:
findBlockBySystemName
in interfaceIBlock
- Parameters:
name
- The system name of the child block.recursive
- Specify if recursive.- Returns:
- A
IBlock
object.
-
findComponentBySystemName
Description copied from interface:IBlock
Searches aIComponent
object by its system name.- Specified by:
findComponentBySystemName
in interfaceIBlock
- Parameters:
name
- The system name of the child component.- Returns:
- A
IComponent
object.
-
findComponentBySystemName
Description copied from interface:IBlock
Searches aIComponent
object by its system name, recursively.- Specified by:
findComponentBySystemName
in interfaceIBlock
- Parameters:
name
- The system name of the child component.recursive
- Specify if recursive.- Returns:
- A
IComponent
object.
-
findContentComponentBySystemName
Description copied from interface:IBlock
Searches aIContentComponent
object by its system name.- Specified by:
findContentComponentBySystemName
in interfaceIBlock
- Parameters:
name
- The system name of the child content component.- Returns:
- A
IContentComponent
object.
-
findContentComponentBySystemName
Description copied from interface:IBlock
Searches aIContentComponent
object by its system name, recursively.- Specified by:
findContentComponentBySystemName
in interfaceIBlock
- Parameters:
name
- The system name of the child content component.recursive
- Specify if recursive.- Returns:
- A
IContentComponent
object.
-
isRebuilt
public boolean isRebuilt()Description copied from interface:IBlock
Checks if the block has been rebuilt.
-