Java Doc for BasicComponentManager.java in  » Content-Management-System » contelligent » de » finix » contelligent » core » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Content Management System » contelligent » de.finix.contelligent.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.finix.contelligent.core.BasicComponentManager

All known Subclasses:   de.finix.contelligent.core.LRUMapComponentManager,  de.finix.contelligent.core.EditManager,
BasicComponentManager
public class BasicComponentManager implements ComponentManagerInternal(Code)
A BasicComponentManager is a ComponentManager which directly operates on the underlying persistent store. Since accessing the database for every component access is very slow, a production environment should always use a cacheing subclass of this, although this class can be used directly for development purposes.


Field Summary
final public static  intCERT_BASIC
     Basic certification level using low-security but less cpu intensive operations only.
final public static  intCERT_SIGNED
    
final public static  intCERT_USER
     Only certified as safe for execution by user name.
final public static  StringDEFAULT_LINK_TYPE
     This type is used for all links, for example if a final component should be copied.
final public static  StringDEFAULT_LINK_TYPE_PATH_PROPERTY
     This property must be passed in the map when creating a link.
final static  StringPROPERTY_DISABLE_DEADRELATIONSCHECK
    
final public  StringROOT_TYPEGROUP
    
final public  StringROOT_TYPENAME
    
final static  booleanSKIP_RELATIONS_CHECK
    
final  ComponentPersistenceAdaptercomponentAdapter
    
final  ComponentFactoryImplcomponentFactory
    
final  ComponentLockManagercomponentLockManager
    
final  Contelligentcontelligent
    
final static  booleandeadRelationsCheckDisabled
    
final  UserdefaultOwner
    
final  LocalFileAdapterfileAdapter
    
final static  org.apache.log4j.Loggerlog
    
final  Stringname
    
final  BasicComponentManagerparent
    
final  RelationsManagerImplrelationsManager
    
final  AccessControlListrootACL
    
final  ContainerrootContainer
    

Constructor Summary
 BasicComponentManager(String fullName, BasicComponentManager parent, Contelligent contelligent, ComponentLockManager componentLockManager, SecurityElement securityConfig, ComponentFactory componentFactory, ComponentPersistenceAdapter componentAdapter, LocalFileAdapter fileAdapter, AccessControlList acl, Map properties)
     Creates a new BasicComponentManager instance and initializes all adapters.

Method Summary
final  voidaddClone(ComponentPath path, Component clone)
    
final  voidaddEvent(ComponentEvent event)
    
final public  voidaddToAllBlueprintInstances(ComponentPath path, CallData callData)
    
public  voidafterCompletion(int status)
     Implementation of TxSynchronization.afterCompletion .
public  booleanbeforeCompletion()
     Implementation of TxSynchronization.beforeCompletion .
final public  booleancallerHasPermission(CallData callData, Component component, ComponentPermission permission)
    
final public  booleancallerHasPermission(CallData callData, Component component, ComponentPermission permission, boolean ignoreAdmin)
    
final public  booleancallerHasPermission(ContelligentPrincipal caller, Component component, ComponentPermission permission)
    
final public  booleancallerHasPermission(ContelligentPrincipal caller, CallData callData, Component component, ComponentPermission permission)
    
final public  booleancallerHasPermission(ContelligentPrincipal caller, Component component, ComponentPermission permission, boolean ignoreAdmin)
    
final public  booleancallerHasPermission(ContelligentPrincipal caller, CallData callData, Component component, ComponentPermission permission, boolean ignoreAdmin)
    
final public  booleancallerHasPermissionForTree(CallData callData, ContelligentPrincipal caller, Component component, ComponentPermission permission)
    
public  voidcertifyComponent(String name, String key, int type, boolean subTree, ComponentPath path, CallData callData)
    
final public  voidchangeTypeOfBlueprintInstance(ComponentPath path, String typeName, CallData callData)
    
final  voidcheckAvailableLock(CallData callData, ComponentPath component)
    
protected  voidcheckContainsReadOnly(ComponentPath path)
    
final  booleancheckDeleted(ComponentPath path)
    
protected  voidcheckReadOnly(ComponentPath path)
    
final public  voidcheckRelations(CallData callData)
    
final  voidcheckRelations()
     Force a relation check (to be used by AbstractCallDataImpl.doWithoutRelationsCheck only).
final  voidcheckUpgradedTypes()
    
public  voidclean()
    
final public  voidcleanMissingSubcomponent(SortedFolder parentContainer, String subcomponentName)
     Special cleanup routine for sorted folders whose namelist got out of sync with the actual data.
final public  voidcleanUpBlueprintInstances(ComponentPath path, CallData callData)
    
final public  ComponentcloneComponent(ComponentPath path, CallData callData)
     Implementation of ComponentManager.cloneComponent(ComponentPathCallData) .
final public  ComponentcloneComponent(Component component)
     Implementation of ComponentManager.cloneComponent(Component) .
final public  voidcommitServer(CallData callData)
     Implementation of de.finix.contelligent.ComponentManager.commitServer .
final public  voidcommitSubtree(ComponentPath root, CallData callData)
     Implementation of ComponentManager.commitSubtree .
final public  booleancomponentExists(ComponentPath path)
     Implementation of ComponentManager.componentExists(ComponentPath) .
final public  booleancomponentExists(ComponentPath path, boolean inHierarchy)
     Implementation of ComponentManager.componentExists(ComponentPathboolean) .
public  booleancontainsReadOnly(ComponentPath path)
    
final public  ComponentcopyComponentTree(CallData callData, ComponentPath sourcePath, ComponentPath targetParentPath, String toName)
     Implementation of ComponentManager.copyComponentTree .
final public  ComponentcopyComponentTree(CallData callData, ComponentPath sourcePath, ComponentPath targetParentPath, String toName, CopyMode mode, boolean cloningCopy)
     Implementation of ComponentManager.copyComponentTree .
final  ComponentcopyComponentTree(Container targetParent, User caller, CallData callData, Component source, String toName, CopyMode mode)
     Recursivly copies the component-tree starting with the given Component to the specified dir without checking any permissions nor asking the target container if its an ObservingContainer .
final public  ComponentcreateComponent(Container parent, String name, String typeName, Map propertyMap, AccessControlList acl, CallData callData)
     Implementation of ComponentManager.createComponent .
final protected  ComponentcreateComponent(Container parent, String name, Type type, Map propertyMap, AccessControlList acl, boolean postCreate, boolean updateRelations, CallData callData)
    
final public  voidcreateComponent(ComponentElement componentElement, CallData callData)
    
final public  ListcreateEventsForAllLocks()
    
final public  ComponentLinkcreateLink(Component linkTarget, Container parent, String name, AccessControlList acl, CallData callData)
     Implementation of ComponentManager.createLink .
final  ContainercreateRootContainer()
     Creates the root component for the ComponentManager.
final public  voidcreateType(TypeElement typeDefinition)
     Implementation of ComponentManager.createType .
final public  booleandefinesBlueprint(Component component)
    
final public  voiddeleteComponentTree(CallData callData, ComponentPath path)
     Implementation of ComponentManager.deleteComponentTree .
final  voiddeleteComponentTree(ComponentPath path, CallData callData, boolean removeRelations, boolean checkRelations, boolean checkLinkContext)
    
final  voiddeleteComponentTree(ComponentPath path, CallData callData, boolean removeRelations, boolean checkRelations, boolean checkLinkContext, boolean committingDelete)
    
final public  SetdeleteType(CallData callData, String typeName, boolean force, boolean includeBlueprintComponent)
     Implementation of ComponentManager.deleteType .
final  booleandeleteTypeRaw(CallData callData, String typeName)
     Delete the given type without touching instances.
 voiddestroy(boolean includeFileAdapters)
    
final  ComponentPathexchangeCategories(ComponentPath path, Map categoryMap, CategoryManager categoryManager)
     Exchange all category tokens with valid values of the corresponding category where a component does exist for in this or any parent manager. This means the returned path does always exist either in this or a parent manager.
final public  voidexportTypes(Writer writer, boolean omitHeader, String prefix)
    
final  voidfireAddEvent(Container parentContainer, Component subComponent)
    
final  voidfireChangeEvent(Component component)
    
final  voidfireDeleteEvent(Container parentContainer, Component subComponent, boolean committingDelete)
    
final  voidflagTypeForUpgrade(CallData callData, String typeName)
    
final public  AccessControlListgetACL()
     Answer the acl of this manager.
public  intgetActualCacheSize()
    
final public  TypegetBlueprintType(ComponentPath componentPath)
    
public  longgetCacheCalls()
    
public  longgetCacheMisses()
    
final  ComponentgetClone(ComponentPath path)
    
final public  ComponentgetComponent(ComponentPath path, CallData callData)
     Implementation of ComponentManager.getComponent(ComponentPathCallData) .
final public  ComponentgetComponent(ComponentPath path, CallData callData, boolean followLinks)
     Implementation of ComponentManager.getComponent(ComponentPathCallDataboolean) .
 ComponentFactorygetComponentFactory()
    
final protected  ComponentPathgetComponentPath(ComponentElement componentElement)
    
final public  ComponentPersistenceAdaptergetComponentPersistenceAdapter()
    
final public  SetgetComponentsInSubtreeFilteredByType(ComponentPath treeRoot, Collection typeNames)
     Implementation of ComponentManager.getComponentsInSubtreeFilteredByType .
final public  UsergetDefaultOwner()
     Returns the user principal representing the default owner of this component-manager.
public  CollectiongetDeletedComponents()
    
final  ListgetEventList()
    
final  ListIteratorgetEvents()
    
final public  LocalFileAdaptergetFileAdapter()
    
final public  SetgetGlobalInstancesOfType(ComponentPath treeRoot, String typeName)
     Functions like getInstancesOfType, except that it searches across all existing CMs.
final public  longgetId()
     Implementation of ComponentManager.getId .
final public  long[]getIdsUpToRoot()
     Returns all ids from this manager up to the root manager in order of the hierarchy.
final public  SetgetInstancesOfType(ComponentPath treeRoot, String typeName)
     Implementation of ComponentManager.getInstancesOfType .
public  intgetMaxCacheSize()
    
public  CollectiongetModifiedComponents(boolean filterBlueprintSubComponents)
    
final public  StringgetName()
    
final public  ComponentManagergetParent()
    
final public  MapgetPropertyMap(Component component, boolean includeRN)
    
final public  MapgetPropertyMap(Component component, boolean includeRN, boolean includeW)
    
final public  ContainergetRootComponent()
    
final public  ComponentPathgetRootPath()
    
final public  ComponentgetSubcomponent(Container parentContainer, String subName, CallData callData)
    
final public  ComponentgetSubcomponent(Container parentContainer, String relativePath, CallData callData, boolean followLinks)
    
final public  ComponentgetSubcomponent(Container parentContainer, ComponentPath relativePath, CallData callData)
    
final public  ComponentgetSubcomponent(Container parentContainer, ComponentPath relativePath, CallData callData, boolean followLinks)
    
final public  intgetSubcomponentCount(Container container)
    
final public  SetgetSubcomponentNames(Container container)
     Implementation of ComponentManager.getSubcomponentNames .
final public  IteratorgetSubcomponentNames(Container container, int start, int amount)
    
public  longgetSubtreeComponents(Component subTree)
    
public  longgetSubtreeSize(Component subTree)
    
public  SystemIndexgetSystemIndex()
    
public  SystemIndexergetSystemIndexer()
    
public  CollectiongetTypesInSubTree(ComponentPath topMostPath)
    
final protected  booleanhasParent()
    
final  booleanhasRecreatedParent(ComponentPath path)
    
final  voidinitComponent(Component rawInstance, Container parentContainer)
     Initialize a raw component instance (set act and attributes inherited from the parent.
public  voidinvalidateCache(ComponentPath path)
    
 voidinvalidatePath(ComponentPath path, boolean includeSubtree)
    
public  voidinvalidateTypes()
    
final public  booleanisBlueprintInstance(Component component)
    
final public  booleanisImport()
     Answer true whether this is an import manager.
final public  booleanisInstanceOf(Component component, String typeName)
     Implementation of ComponentManager.isInstanceOf .
final protected  booleanisInstanceOf(ComponentPath path, String typeName)
    
final public  booleanisLocked(ComponentPath componentPath)
     Implementation of ComponentManager.isLocked .
public  booleanisReadOnly(ComponentPath path)
    
final public  booleanisRoot()
     Answer true whether this is the root manager.
final public  booleanisRootPath(String path)
    
final public  booleanisRootPath(ComponentPath path)
    
protected  booleanisSubpathOfDeletedOrRecreated(ComponentPath path, CallData callData)
    
final  ComponentloadRawComponent(ComponentPath absolutePath, CallData callData)
    
final public  booleanlockComponent(ComponentPath componentPath, CallData callData)
     Implementation of ComponentManager.lockComponent .
final protected  booleanlockComponent(ComponentPath componentPath, CallData callData, boolean checkLockContext)
    
final protected  booleanlockComponentForDelete(ComponentPath componentPath, CallData callData, boolean checkLockContext)
    
final public  SetmoveComponentTree(ComponentPath source, ComponentPath destination, CallData callData)
     Implementation of ComponentManager.moveComponentTree .
final  ComponentnewInstanceFromType(Container parent, String name, String typeName, AccessControlList acl, Map propertyMap, ComponentContextImpl orgCtx)
     Returns a newly created (yet not persistent!) component instance using the specified type, name, acl and property-map.
final public  ContainerparentContainer(Component component)
     Implementation of ComponentManager.parentContainer .
final public  voidpassLock(ComponentPath componentPath, String toPrincipal, CallData callData)
     Implementation of ComponentManager.passLock .
final public  SetrenameType(CallData callData, String typeName, String newTypeName)
     Implementation of ComponentManager.renameType .
 ComponentretrieveComponent(ComponentPath path, Container parentContainer, CallData callData, boolean followLinks)
     Returns the Component associated with the given ComponentPath path if it exists in this manager or in any parent manager or otherwise throws a ComponentNotFoundException. The path may be ComponentPath.isAbsolute absolute or ComponentPath.isRelative relative but in the latter case parameter parentContainer must not be null.
final public  voidrollbackChangesInSubtree(ComponentPath root, CallData callData)
     Rollback all changes in the given subtree.
public  ListselectComponentsByName(Component root, String name)
    
public  ListselectMetaContent(Component root, ComponentPath relative, String key, String value, String comparator)
    
final public  voidsetACL(CallData callData, AccessControlList acl)
    
final public  voidsetComponentFinal(ComponentPath path, boolean finalFlag, CallData callData)
    
public  voidsetMaxCacheSize(int maxSize)
    
public  voidsetReadOnlyPaths(Set readOnlyPaths)
    
public  voidsetSkipListener(boolean b)
    
public  StringtoString()
    
final public  voidunlockComponent(ComponentPath componentPath, CallData callData)
     Implementation of ComponentManager.unlockComponent .
final public  voidupdateComponent(Component component, CallData callData)
     Implementation of ComponentManager.updateComponent .
final public  ComponentupdateComponent(ComponentElement componentElement, CallData callData)
    
protected  voidupdateWrapper(ComponentContextImpl ctx)
     Wraps componentAdapter.update() call so that subclasses can do centralized error handling for this call.
public  voidvalidateBlueprintTypes()
    

Field Detail
CERT_BASIC
final public static int CERT_BASIC(Code)
Basic certification level using low-security but less cpu intensive operations only.



CERT_SIGNED
final public static int CERT_SIGNED(Code)
Extended certification level for higher security requirements (reserved; not supported yet)



CERT_USER
final public static int CERT_USER(Code)
Only certified as safe for execution by user name.



DEFAULT_LINK_TYPE
final public static String DEFAULT_LINK_TYPE(Code)
This type is used for all links, for example if a final component should be copied.



DEFAULT_LINK_TYPE_PATH_PROPERTY
final public static String DEFAULT_LINK_TYPE_PATH_PROPERTY(Code)
This property must be passed in the map when creating a link.



PROPERTY_DISABLE_DEADRELATIONSCHECK
final static String PROPERTY_DISABLE_DEADRELATIONSCHECK(Code)



ROOT_TYPEGROUP
final public String ROOT_TYPEGROUP(Code)



ROOT_TYPENAME
final public String ROOT_TYPENAME(Code)



SKIP_RELATIONS_CHECK
final static boolean SKIP_RELATIONS_CHECK(Code)



componentAdapter
final ComponentPersistenceAdapter componentAdapter(Code)



componentFactory
final ComponentFactoryImpl componentFactory(Code)



componentLockManager
final ComponentLockManager componentLockManager(Code)



contelligent
final Contelligent contelligent(Code)



deadRelationsCheckDisabled
final static boolean deadRelationsCheckDisabled(Code)



defaultOwner
final User defaultOwner(Code)



fileAdapter
final LocalFileAdapter fileAdapter(Code)



log
final static org.apache.log4j.Logger log(Code)



name
final String name(Code)



parent
final BasicComponentManager parent(Code)



relationsManager
final RelationsManagerImpl relationsManager(Code)



rootACL
final AccessControlList rootACL(Code)



rootContainer
final Container rootContainer(Code)




Constructor Detail
BasicComponentManager
BasicComponentManager(String fullName, BasicComponentManager parent, Contelligent contelligent, ComponentLockManager componentLockManager, SecurityElement securityConfig, ComponentFactory componentFactory, ComponentPersistenceAdapter componentAdapter, LocalFileAdapter fileAdapter, AccessControlList acl, Map properties) throws ContelligentException(Code)
Creates a new BasicComponentManager instance and initializes all adapters.
exception:
  ContelligentException - if an error occurs




Method Detail
addClone
final void addClone(ComponentPath path, Component clone)(Code)



addEvent
final void addEvent(ComponentEvent event)(Code)



addToAllBlueprintInstances
final public void addToAllBlueprintInstances(ComponentPath path, CallData callData) throws ContelligentException(Code)



afterCompletion
public void afterCompletion(int status)(Code)
Implementation of TxSynchronization.afterCompletion . If any subclass overwrites this method it must call this method at the end so thread-locals are reseted!



beforeCompletion
public boolean beforeCompletion()(Code)
Implementation of TxSynchronization.beforeCompletion .



callerHasPermission
final public boolean callerHasPermission(CallData callData, Component component, ComponentPermission permission)(Code)



callerHasPermission
final public boolean callerHasPermission(CallData callData, Component component, ComponentPermission permission, boolean ignoreAdmin)(Code)



callerHasPermission
final public boolean callerHasPermission(ContelligentPrincipal caller, Component component, ComponentPermission permission)(Code)



callerHasPermission
final public boolean callerHasPermission(ContelligentPrincipal caller, CallData callData, Component component, ComponentPermission permission)(Code)



callerHasPermission
final public boolean callerHasPermission(ContelligentPrincipal caller, Component component, ComponentPermission permission, boolean ignoreAdmin)(Code)



callerHasPermission
final public boolean callerHasPermission(ContelligentPrincipal caller, CallData callData, Component component, ComponentPermission permission, boolean ignoreAdmin)(Code)



callerHasPermissionForTree
final public boolean callerHasPermissionForTree(CallData callData, ContelligentPrincipal caller, Component component, ComponentPermission permission)(Code)



certifyComponent
public void certifyComponent(String name, String key, int type, boolean subTree, ComponentPath path, CallData callData) throws NoWritePermissionException, ComponentNotFoundException(Code)



changeTypeOfBlueprintInstance
final public void changeTypeOfBlueprintInstance(ComponentPath path, String typeName, CallData callData) throws ContelligentException, ComponentNotFoundException, ModificationVetoException(Code)



checkAvailableLock
final void checkAvailableLock(CallData callData, ComponentPath component) throws ComponentLockException(Code)



checkContainsReadOnly
protected void checkContainsReadOnly(ComponentPath path)(Code)



checkDeleted
final boolean checkDeleted(ComponentPath path) throws ComponentPersistenceException(Code)



checkReadOnly
protected void checkReadOnly(ComponentPath path)(Code)



checkRelations
final public void checkRelations(CallData callData) throws ComponentPersistenceException, WouldCreateDeadRelationsException(Code)



checkRelations
final void checkRelations() throws ComponentPersistenceException, WouldCreateDeadRelationsException(Code)
Force a relation check (to be used by AbstractCallDataImpl.doWithoutRelationsCheck only).
throws:
  ComponentPersistenceException -
throws:
  WouldCreateDeadRelationsException -



checkUpgradedTypes
final void checkUpgradedTypes() throws TypeException(Code)



clean
public void clean()(Code)



cleanMissingSubcomponent
final public void cleanMissingSubcomponent(SortedFolder parentContainer, String subcomponentName) throws ModificationVetoException(Code)
Special cleanup routine for sorted folders whose namelist got out of sync with the actual data. This may be caused by direct manipulation of components on the database level, bypassing the Contelligent server. Due to the possibility of failure and subsequent rollback of the transaction, this should only be called by the xml export class. One reason this might fail is if the user viewing the component does not have write permission to the sorted folder.



cleanUpBlueprintInstances
final public void cleanUpBlueprintInstances(ComponentPath path, CallData callData) throws ContelligentException(Code)



cloneComponent
final public Component cloneComponent(ComponentPath path, CallData callData) throws ComponentNotFoundException, ComponentCreationException(Code)
Implementation of ComponentManager.cloneComponent(ComponentPathCallData) .



cloneComponent
final public Component cloneComponent(Component component) throws ComponentCreationException(Code)
Implementation of ComponentManager.cloneComponent(Component) .



commitServer
final public void commitServer(CallData callData) throws ContelligentException, ModificationVetoException, RelationsException, ComponentLockException(Code)
Implementation of de.finix.contelligent.ComponentManager.commitServer .



commitSubtree
final public void commitSubtree(ComponentPath root, CallData callData) throws ContelligentException, ModificationVetoException, RelationsException, ComponentLockException(Code)
Implementation of ComponentManager.commitSubtree .



componentExists
final public boolean componentExists(ComponentPath path)(Code)
Implementation of ComponentManager.componentExists(ComponentPath) . Simply calls BasicComponentManager.componentExists(ComponentPath,boolean) with 2nd parameter true.



componentExists
final public boolean componentExists(ComponentPath path, boolean inHierarchy)(Code)
Implementation of ComponentManager.componentExists(ComponentPathboolean) .



containsReadOnly
public boolean containsReadOnly(ComponentPath path)(Code)



copyComponentTree
final public Component copyComponentTree(CallData callData, ComponentPath sourcePath, ComponentPath targetParentPath, String toName) throws ComponentNotFoundException, ComponentPersistenceException, ComponentPathException, NoReadPermissionException, NoWritePermissionException, ComponentAlreadyExistsException, ModificationVetoException, ComponentLockException(Code)
Implementation of ComponentManager.copyComponentTree .



copyComponentTree
final public Component copyComponentTree(CallData callData, ComponentPath sourcePath, ComponentPath targetParentPath, String toName, CopyMode mode, boolean cloningCopy) throws ComponentNotFoundException, ComponentPersistenceException, ComponentPathException, NoReadPermissionException, NoWritePermissionException, ComponentAlreadyExistsException, ModificationVetoException, ComponentLockException(Code)
Implementation of ComponentManager.copyComponentTree .



copyComponentTree
final Component copyComponentTree(Container targetParent, User caller, CallData callData, Component source, String toName, CopyMode mode) throws TypeException, ComponentCreationException, ComponentPathException, ComponentPersistenceException, ComponentLockException, ModificationVetoException(Code)
Recursivly copies the component-tree starting with the given Component to the specified dir without checking any permissions nor asking the target container if its an ObservingContainer .
Depending on parameter mode the copying of de.finix.contelligent.ComponentContext.isFinal components varies: the root of the copied component tree or null if nothing wascopied.



createComponent
final public Component createComponent(Container parent, String name, String typeName, Map propertyMap, AccessControlList acl, CallData callData) throws TypeException, ComponentPersistenceException, ComponentCreationException, ModificationVetoException, ComponentPathException, ComponentLockException, ComponentAlreadyExistsException(Code)
Implementation of ComponentManager.createComponent .



createComponent
final protected Component createComponent(Container parent, String name, Type type, Map propertyMap, AccessControlList acl, boolean postCreate, boolean updateRelations, CallData callData) throws TypeException, ComponentPersistenceException, ComponentCreationException, ModificationVetoException, ComponentPathException, ComponentLockException, ComponentAlreadyExistsException(Code)



createComponent
final public void createComponent(ComponentElement componentElement, CallData callData) throws ContelligentException(Code)



createEventsForAllLocks
final public List createEventsForAllLocks()(Code)



createLink
final public ComponentLink createLink(Component linkTarget, Container parent, String name, AccessControlList acl, CallData callData) throws ComponentPersistenceException, ComponentCreationException, ModificationVetoException, ComponentPathException, ComponentLockException, ComponentAlreadyExistsException(Code)
Implementation of ComponentManager.createLink .



createRootContainer
final Container createRootContainer() throws Exception(Code)
Creates the root component for the ComponentManager. This is a hardcoded folder component that is not stored in the database.



createType
final public void createType(TypeElement typeDefinition) throws TypeException(Code)
Implementation of ComponentManager.createType .



definesBlueprint
final public boolean definesBlueprint(Component component)(Code)



deleteComponentTree
final public void deleteComponentTree(CallData callData, ComponentPath path) throws ContelligentException, NoDeletePermissionException, ModificationVetoException, RelationExistsException, ComponentLockException(Code)
Implementation of ComponentManager.deleteComponentTree .



deleteComponentTree
final void deleteComponentTree(ComponentPath path, CallData callData, boolean removeRelations, boolean checkRelations, boolean checkLinkContext) throws ContelligentException, NoDeletePermissionException, ModificationVetoException, RelationExistsException, ComponentLockException(Code)



deleteComponentTree
final void deleteComponentTree(ComponentPath path, CallData callData, boolean removeRelations, boolean checkRelations, boolean checkLinkContext, boolean committingDelete) throws ContelligentException, NoDeletePermissionException, ModificationVetoException, RelationExistsException, ComponentLockException(Code)



deleteType
final public Set deleteType(CallData callData, String typeName, boolean force, boolean includeBlueprintComponent) throws ContelligentException, ComponentPersistenceException, NoDeletePermissionException, ModificationVetoException, ComponentLockException, RelationExistsException(Code)
Implementation of ComponentManager.deleteType .



deleteTypeRaw
final boolean deleteTypeRaw(CallData callData, String typeName) throws ContelligentException, ComponentPersistenceException, NoDeletePermissionException, ModificationVetoException, ComponentLockException, RelationExistsException(Code)
Delete the given type without touching instances. Answer true if instances exist. For internal use only and therefore not in the interface.
Parameters:
  callData -
Parameters:
  typeName -
throws:
  ContelligentException -
throws:
  ComponentPersistenceException -
throws:
  NoDeletePermissionException -
throws:
  ModificationVetoException -
throws:
  ComponentLockException -
throws:
  RelationExistsException -



destroy
void destroy(boolean includeFileAdapters) throws ContelligentException(Code)



exchangeCategories
final ComponentPath exchangeCategories(ComponentPath path, Map categoryMap, CategoryManager categoryManager) throws ComponentNotFoundException(Code)
Exchange all category tokens with valid values of the corresponding category where a component does exist for in this or any parent manager. This means the returned path does always exist either in this or a parent manager. If no component is found for any catagory value (fallback values are considered) a ComponentNotFoundException is thrown.
Note that this method does NOT check whether path contains categories nor whether categoryMap is emtpy!



exportTypes
final public void exportTypes(Writer writer, boolean omitHeader, String prefix) throws IOException(Code)



fireAddEvent
final void fireAddEvent(Container parentContainer, Component subComponent) throws ModificationVetoException, ComponentPersistenceException, ComponentLockException(Code)



fireChangeEvent
final void fireChangeEvent(Component component) throws ComponentNotFoundException, ModificationVetoException, ComponentLockException(Code)



fireDeleteEvent
final void fireDeleteEvent(Container parentContainer, Component subComponent, boolean committingDelete) throws ModificationVetoException, ComponentPersistenceException, ComponentLockException(Code)



flagTypeForUpgrade
final void flagTypeForUpgrade(CallData callData, String typeName) throws ContelligentException, ComponentPersistenceException, NoDeletePermissionException, ModificationVetoException, ComponentLockException, RelationExistsException(Code)



getACL
final public AccessControlList getACL()(Code)
Answer the acl of this manager.



getActualCacheSize
public int getActualCacheSize()(Code)



getBlueprintType
final public Type getBlueprintType(ComponentPath componentPath)(Code)



getCacheCalls
public long getCacheCalls()(Code)



getCacheMisses
public long getCacheMisses()(Code)



getClone
final Component getClone(ComponentPath path)(Code)



getComponent
final public Component getComponent(ComponentPath path, CallData callData) throws ComponentNotFoundException, ComponentCreationException(Code)
Implementation of ComponentManager.getComponent(ComponentPathCallData) .



getComponent
final public Component getComponent(ComponentPath path, CallData callData, boolean followLinks) throws ComponentNotFoundException, ComponentCreationException(Code)
Implementation of ComponentManager.getComponent(ComponentPathCallDataboolean) .



getComponentFactory
ComponentFactory getComponentFactory()(Code)



getComponentPath
final protected ComponentPath getComponentPath(ComponentElement componentElement)(Code)



getComponentPersistenceAdapter
final public ComponentPersistenceAdapter getComponentPersistenceAdapter()(Code)



getComponentsInSubtreeFilteredByType
final public Set getComponentsInSubtreeFilteredByType(ComponentPath treeRoot, Collection typeNames) throws ComponentPersistenceException(Code)
Implementation of ComponentManager.getComponentsInSubtreeFilteredByType .



getDefaultOwner
final public User getDefaultOwner() throws ContelligentException(Code)
Returns the user principal representing the default owner of this component-manager. This user gets used whenever no caller is available, for example when initially importing components. a User value



getDeletedComponents
public Collection getDeletedComponents() throws ComponentPersistenceException(Code)



getEventList
final List getEventList()(Code)



getEvents
final ListIterator getEvents()(Code)



getFileAdapter
final public LocalFileAdapter getFileAdapter()(Code)



getGlobalInstancesOfType
final public Set getGlobalInstancesOfType(ComponentPath treeRoot, String typeName) throws ComponentPersistenceException(Code)
Functions like getInstancesOfType, except that it searches across all existing CMs.



getId
final public long getId()(Code)
Implementation of ComponentManager.getId .



getIdsUpToRoot
final public long[] getIdsUpToRoot()(Code)
Returns all ids from this manager up to the root manager in order of the hierarchy. First entry is the id of this manager.



getInstancesOfType
final public Set getInstancesOfType(ComponentPath treeRoot, String typeName) throws ComponentPersistenceException(Code)
Implementation of ComponentManager.getInstancesOfType .



getMaxCacheSize
public int getMaxCacheSize()(Code)



getModifiedComponents
public Collection getModifiedComponents(boolean filterBlueprintSubComponents) throws ComponentPersistenceException(Code)



getName
final public String getName()(Code)



getParent
final public ComponentManager getParent()(Code)



getPropertyMap
final public Map getPropertyMap(Component component, boolean includeRN) throws TypeException(Code)



getPropertyMap
final public Map getPropertyMap(Component component, boolean includeRN, boolean includeW) throws TypeException(Code)



getRootComponent
final public Container getRootComponent()(Code)



getRootPath
final public ComponentPath getRootPath()(Code)



getSubcomponent
final public Component getSubcomponent(Container parentContainer, String subName, CallData callData) throws ComponentNotFoundException, ComponentPathException, ComponentCreationException(Code)



getSubcomponent
final public Component getSubcomponent(Container parentContainer, String relativePath, CallData callData, boolean followLinks) throws ComponentNotFoundException, ComponentPathException, ComponentCreationException(Code)



getSubcomponent
final public Component getSubcomponent(Container parentContainer, ComponentPath relativePath, CallData callData) throws ComponentNotFoundException, ComponentCreationException(Code)



getSubcomponent
final public Component getSubcomponent(Container parentContainer, ComponentPath relativePath, CallData callData, boolean followLinks) throws ComponentNotFoundException, ComponentCreationException(Code)



getSubcomponentCount
final public int getSubcomponentCount(Container container)(Code)



getSubcomponentNames
final public Set getSubcomponentNames(Container container)(Code)
Implementation of ComponentManager.getSubcomponentNames .



getSubcomponentNames
final public Iterator getSubcomponentNames(Container container, int start, int amount)(Code)



getSubtreeComponents
public long getSubtreeComponents(Component subTree) throws ComponentPersistenceException(Code)



getSubtreeSize
public long getSubtreeSize(Component subTree) throws ComponentPersistenceException(Code)



getSystemIndex
public SystemIndex getSystemIndex()(Code)



getSystemIndexer
public SystemIndexer getSystemIndexer()(Code)



getTypesInSubTree
public Collection getTypesInSubTree(ComponentPath topMostPath) throws ComponentSystemException(Code)



hasParent
final protected boolean hasParent()(Code)



hasRecreatedParent
final boolean hasRecreatedParent(ComponentPath path) throws ComponentPersistenceException(Code)



initComponent
final void initComponent(Component rawInstance, Container parentContainer) throws ComponentCreationException(Code)
Initialize a raw component instance (set act and attributes inherited from the parent.



invalidateCache
public void invalidateCache(ComponentPath path)(Code)



invalidatePath
void invalidatePath(ComponentPath path, boolean includeSubtree)(Code)
Use of this method is permitted for afterCompletion only!!!
Parameters:
  path -



invalidateTypes
public void invalidateTypes()(Code)



isBlueprintInstance
final public boolean isBlueprintInstance(Component component)(Code)



isImport
final public boolean isImport()(Code)
Answer true whether this is an import manager.



isInstanceOf
final public boolean isInstanceOf(Component component, String typeName)(Code)
Implementation of ComponentManager.isInstanceOf .



isInstanceOf
final protected boolean isInstanceOf(ComponentPath path, String typeName) throws ComponentPersistenceException(Code)



isLocked
final public boolean isLocked(ComponentPath componentPath)(Code)
Implementation of ComponentManager.isLocked .



isReadOnly
public boolean isReadOnly(ComponentPath path)(Code)



isRoot
final public boolean isRoot()(Code)
Answer true whether this is the root manager.



isRootPath
final public boolean isRootPath(String path)(Code)



isRootPath
final public boolean isRootPath(ComponentPath path)(Code)



isSubpathOfDeletedOrRecreated
protected boolean isSubpathOfDeletedOrRecreated(ComponentPath path, CallData callData) throws ComponentPersistenceException(Code)



loadRawComponent
final Component loadRawComponent(ComponentPath absolutePath, CallData callData) throws TypeException, ComponentPersistenceException, ComponentNotFoundException(Code)



lockComponent
final public boolean lockComponent(ComponentPath componentPath, CallData callData) throws ComponentPersistenceException, ComponentAlreadyLockedException, ComponentLockException, MissingPermissionException(Code)
Implementation of ComponentManager.lockComponent .



lockComponent
final protected boolean lockComponent(ComponentPath componentPath, CallData callData, boolean checkLockContext) throws ComponentPersistenceException, ComponentAlreadyLockedException, ComponentLockException, MissingPermissionException(Code)



lockComponentForDelete
final protected boolean lockComponentForDelete(ComponentPath componentPath, CallData callData, boolean checkLockContext) throws ComponentPersistenceException, ComponentAlreadyLockedException, ComponentLockException, MissingPermissionException(Code)



moveComponentTree
final public Set moveComponentTree(ComponentPath source, ComponentPath destination, CallData callData) throws ContelligentException, ComponentPersistenceException, MissingPermissionException, ComponentAlreadyExistsException(Code)
Implementation of ComponentManager.moveComponentTree .
Algorithm works as follows:
  1. get paths of those components which have a relation into the moved tree. (including those lying themselves inside the moved tree!)
  2. for each of those components: - clone it - if it lies within the source tree just change any affected paths - else attempt to lock it and then change any affected paths
  3. copy the source tree (using the cloned source components from step 2a with maybe changed paths)
  4. now update the components from step 2b. This can't be done before step 3 or else the system may complain about missing link targets.
  5. delete source tree and all relations originating from it. If this is the root server we may check for any relations still existing to this tree (which would mean our algorithm has a fault). In a child server we can't because we will sure have relations to this tree because our modified components were not yet written to the root server.
  6. at the end we check for any dead-relations in the destination tree. This would also reveal a bug in the algorithm.
Note that currently only one component tree per transaction may be moved!



newInstanceFromType
final Component newInstanceFromType(Container parent, String name, String typeName, AccessControlList acl, Map propertyMap, ComponentContextImpl orgCtx) throws TypeException, ComponentCreationException, ComponentPathException(Code)
Returns a newly created (yet not persistent!) component instance using the specified type, name, acl and property-map. Note that BasicComponentManager.initComponent gets called before returning the instance but NOT Component.postCreate ! The calling method must invoke Component.postCreate before any client code may access the component!
If parameter propertyMap is non-null the instance gets those properties set. A property may be overwritten only if the type does not define that property as final. The map must contain either (String,String) or (String,Double) entries.
exception:
  TypeException - if the type is unknown
exception:
  ComponentCreationException - if the component could not be created
exception:
  ComponentPathException - if the name contains invalid characters
See Also:   Type.setProperties



parentContainer
final public Container parentContainer(Component component)(Code)
Implementation of ComponentManager.parentContainer .
If this implementation doesn't find the parent a ContelligentRuntimeException is thrown to indicate this fatal error as every component except the root container must have a parent.



passLock
final public void passLock(ComponentPath componentPath, String toPrincipal, CallData callData) throws ComponentPersistenceException(Code)
Implementation of ComponentManager.passLock .



renameType
final public Set renameType(CallData callData, String typeName, String newTypeName) throws TypeException, ComponentPersistenceException, ComponentLockException, ModificationVetoException(Code)
Implementation of ComponentManager.renameType .



retrieveComponent
Component retrieveComponent(ComponentPath path, Container parentContainer, CallData callData, boolean followLinks) throws ComponentNotFoundException, ComponentCreationException(Code)
Returns the Component associated with the given ComponentPath path if it exists in this manager or in any parent manager or otherwise throws a ComponentNotFoundException. The path may be ComponentPath.isAbsolute absolute or ComponentPath.isRelative relative but in the latter case parameter parentContainer must not be null.
If the path CategoryManager.containsCategory contains categories the category-tokens get replaced using the category map found in the given calldata instance. Note that this may result in a significant performance loss because for every category-token found we have to call BasicComponentManager.componentExists maybe multiple times. Hereby the number of calls depends on the number of fallbacks the category defines and which of those values does actually exist.
The lookup of any component should be performed in the following order:
  1. if the BasicComponentManager.getClone clone-map contains an entry for this path return it. Note that any clone gets stored using its absolute path as key.
  2. if the component exists within this manager return it either from cache or BasicComponentManager.loadRawComponent load it from the database. If the component gets loaded Component.postCreate have to be called.
  3. else ask the parent manager to retrieve the component
If the component was loaded or found in a cache and parameter followLinks is true and the component is an instance of ComponentLink the target of the link must be returned instead of the component.
Parameters:
  path - the path of the component to return, may be relative orabsolute
Parameters:
  parentContainer - the parent container of the component to return, is onlynecessary of path is relative.
Parameters:
  callData - CallData instance of this call
Parameters:
  followLinks - if true return target of ComponentLink links insteadof link itself.
exception:
  ComponentNotFoundException - if the component does not exist in this manager nor in anyparent manager.
exception:
  ComponentCreationException - if anything goes wrong during initialization of thecomponent, for example if Component.postCreatethrows an exception.
See Also:   LRUMapComponentManager
See Also:    for an implementation using a cache.



rollbackChangesInSubtree
final public void rollbackChangesInSubtree(ComponentPath root, CallData callData) throws ComponentPersistenceException, NotLockOwnerException(Code)
Rollback all changes in the given subtree.
Parameters:
  root -
Parameters:
  callData -
throws:
  ComponentPersistenceException -



selectComponentsByName
public List selectComponentsByName(Component root, String name) throws ComponentPersistenceException(Code)



selectMetaContent
public List selectMetaContent(Component root, ComponentPath relative, String key, String value, String comparator) throws ComponentPersistenceException(Code)



setACL
final public void setACL(CallData callData, AccessControlList acl) throws ComponentPersistenceException(Code)



setComponentFinal
final public void setComponentFinal(ComponentPath path, boolean finalFlag, CallData callData) throws ComponentNotFoundException, ModificationVetoException, ComponentPersistenceException, ComponentLockException(Code)



setMaxCacheSize
public void setMaxCacheSize(int maxSize)(Code)



setReadOnlyPaths
public void setReadOnlyPaths(Set readOnlyPaths)(Code)



setSkipListener
public void setSkipListener(boolean b)(Code)



toString
public String toString()(Code)



unlockComponent
final public void unlockComponent(ComponentPath componentPath, CallData callData) throws ComponentPersistenceException(Code)
Implementation of ComponentManager.unlockComponent .



updateComponent
final public void updateComponent(Component component, CallData callData) throws ComponentPersistenceException, NoWritePermissionException, ModificationVetoException, ComponentNotFoundException, ComponentLockException, WouldCreateDeadRelationsException(Code)
Implementation of ComponentManager.updateComponent .



updateComponent
final public Component updateComponent(ComponentElement componentElement, CallData callData) throws ContelligentException(Code)



updateWrapper
protected void updateWrapper(ComponentContextImpl ctx) throws ComponentPersistenceException(Code)
Wraps componentAdapter.update() call so that subclasses can do centralized error handling for this call.



validateBlueprintTypes
public void validateBlueprintTypes() throws TypeException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.