cancel
Showing results for 
Search instead for 
Did you mean: 

can not get the first Alfresco sample program to work

jameszhou
Champ in-the-making
Champ in-the-making
Hi this is my first time to try out the Alfresco sample, but I could not get it to work.

I first installed Alfresco ECM 1.3, and then started the Alfresco ECM. That works OK. I can login as "admin/admin", and create a bunch of contents using Web Client.  Then I wanted to try to use the APIs. So I downloaded alfresco-SDK, and followed the instruction on the wiki to install all samples in the Eclipse. But when I ran the sample FirstFoundationClient.java, there were some exceptions coming out from the console: net.sf.acegisecurity.BadCredentialsException: Bad credentials presented
   at net.sf.acegisecurity.providers.dao.DaoAuthenticationProvider.getUserFromBackend(DaoAuthenticationProvider.java:393)
   at net.sf.acegisecurity.providers.dao.DaoAuthenticationProvider.authenticate(DaoAuthenticationProvider.java:225)
   at net.sf.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:159)
   at net.sf.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:49)
   at org.alfresco.repo.security.authentication.AuthenticationComponentImpl.authenticate(AuthenticationComponentImpl.java:63)
   … 23 more


When I ran the sample, I kept the tomcat server up.  Shall I stop the tomcat? I actaully tried, but the sample program still threw the exception.  any ideas?
5 REPLIES 5

davidc
Star Contributor
Star Contributor
Chances are you're using the same db acount as your installed Alfresco but a different alf_data - they need to be in synch.  Either create a new db account or point to your existing alf_data dir.   Both of these settings are in custom-repository.properties in the sample.

jameszhou
Champ in-the-making
Champ in-the-making
Here is the full printout from the console:

- Loading XML bean definitions from class path resource [alfresco/application-context.xml]
- Loading XML bean definitions from class path resource [alfresco/core-services-context.xml]
- MLog clients using log4j logging.
- JDK 1.4+ collections available
- Commons Collections 3.x available
- Loading XML bean definitions from class path resource [alfresco/public-services-context.xml]
- Loading XML bean definitions from class path resource [alfresco/public-services-security-context.xml]
- Loading XML bean definitions from class path resource [alfresco/cache-context.xml]
- Loading XML bean definitions from class path resource [alfresco/model-specific-services-context.xml]
- Loading XML bean definitions from class path resource [alfresco/action-services-context.xml]
- Loading XML bean definitions from class path resource [alfresco/rule-services-context.xml]
- Loading XML bean definitions from class path resource [alfresco/node-services-context.xml]
- Loading XML bean definitions from class path resource [alfresco/scheduled-jobs-context.xml]
- Loading XML bean definitions from class path resource [alfresco/network-protocol-context.xml]
- Loading XML bean definitions from class path resource [alfresco/content-services-context.xml]
- Loading XML bean definitions from class path resource [alfresco/hibernate-context.xml]
- Loading XML bean definitions from class path resource [alfresco/ownable-services-context.xml]
- Loading XML bean definitions from class path resource [alfresco/template-services-context.xml]
- Loading XML bean definitions from class path resource [alfresco/script-services-context.xml]
- Loading XML bean definitions from class path resource [alfresco/index-recovery-context.xml]
- Loading XML bean definitions from class path resource [alfresco/authority-services-context.xml]
- Loading XML bean definitions from class path resource [alfresco/authentication-services-context.xml]
- Loading XML bean definitions from class path resource [alfresco/policy-context.xml]
- Loading XML bean definitions from class path resource [alfresco/import-export-context.xml]
- Loading XML bean definitions from class path resource [alfresco/bootstrap-context.xml]
- Loading XML bean definitions from class path resource [alfresco/jcr-api-context.xml]
- Loading XML bean definitions from URL [jar:file:/C:/alfresco-sdk/lib/server/config.jar!/alfresco/patch/patch-services-context.xml]
- Loading XML bean definitions from file [C:\alfresco-sdk\samples\FirstFoundationClient\build\alfresco\extension\custom-repository-context.xml]
- Overriding bean definition for bean 'repository-properties': replacing [Root bean: class [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; initMethodName=null; destroyMethodName=null; factoryMethodName=null; factoryBeanName=null; defined in class path resource [alfresco/core-services-context.xml]] with [Root bean: class [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; initMethodName=null; destroyMethodName=null; factoryMethodName=null; factoryBeanName=null; defined in file [C:\alfresco-sdk\samples\FirstFoundationClient\build\alfresco\extension\custom-repository-context.xml]]
- Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=30562042]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [repository-properties,dataSource,transactionComponent,methodCallLogAdvice,resourceBundles,mailService,indexerComponent,indexerComponent_PerformanceMonitorAdvice,searchService,indexerAndSearcherFactory,categoryService,luceneIndexerAndSearcherFactory,luceneCategoryService,luceneIndexLock,lockService,versionService,versionNodeService,versionCounterService,versionableAspect,namespaceDAO,dictionaryModelType,dictionaryDAO,dictionaryService,namespaceService,dictionaryModelBootstrap,dictionaryBootstrap,extension.dictionaryBootstrap,dictionaryRepositoryBootstrap,copyService,checkOutCheckInService,workingCopyAspect,discussableAspect,LuceneFullTextSearchIndexer,luceneIndexBackupComponent,threadPoolExecutor,queryRegisterComponent,auditableAspect,referenceableAspect,configurableService,transactionalEHCacheManager,internalEHCacheManager,userToAuthoritySharedCache,userToAuthorityCache,permissionsAccessSharedCache,permissionsAccessCache,nodeOwnerSharedCache,nodeOwnerCache,permissionService,permissionServiceImpl,ownerDynamicAuthority,lockOwnerDynamicAuthority,permissionsModelDAO,roleVoter,groupVoter,aclEntryVoter,accessDecisionManager,afterAcl,afterInvocationManager,NamespaceService_security,DictionaryService_security,NodeService_security,FileFolderService_security,ContentService_security,MimetypeService_security,SearchService_security,CategoryService_security,CopyService_security,LockService_security,VersionService_security,CheckoutCheckinService_security,RuleService_security,ImporterService_security,ActionService_security,PermissionService_security,AuthorityService_security,AuthenticationService_security,OwnableService_security,PersonService_security,TemplateService_security,ScriptService_security,AlfrescoServiceDescriptor,ServiceRegistry,ServiceRegistry_descriptor,exceptionTranslator,DescriptorService,DescriptorService_descriptor,NamespaceService,NamespaceService_transaction,NamespaceService_descriptor,DictionaryService,DictionaryService_transaction,DictionaryService_descriptor,NodeService,NodeService_transaction,NodeService_descriptor,ContentService,ContentService_transaction,ContentService_descriptor,MimetypeService,MimetypeService_descriptor,SearchService,SearchService_transaction,SearchService_descriptor,CategoryService,CategoryService_transaction,CategoryService_descriptor,CopyService,CopyService_transaction,CopyService_descriptor,LockService,LockService_transaction,LockService_descriptor,VersionService,VersionService_transaction,VersionService_descriptor,CheckoutCheckinService,CheckoutCheckinService_transaction,CheckoutCheckinService_descriptor,RuleService,RuleService_transaction,RuleService_descriptor,ImporterService,ImporterService_transaction,ImporterService_descriptor,ExporterService,ExporterService_transaction,ExporterService_descriptor,ActionService,ActionService_transaction,ActionService_descriptor,PermissionService,PermissionService_transaction,PermissionService_descriptor,AuthorityService,AuthorityService_transaction,AuthorityService_descriptor,OwnableService,OwnableService_transaction,OwnableService_descriptor,PersonService,PersonService_transaction,PersonService_descriptor,AuthenticationService,AuthenticationService_transaction,AuthenticationService_descriptor,TemplateService,TemplateService_transaction,TemplateService_descriptor,ScriptService,ScriptService_transaction,ScriptService_descriptor,FileFolderService,FileFolderService_transaction,fileFolderService,actionService,asynchronousActionExecutionQueue,actionsAspect,actionResourceBundles,action-condition-evaluator,no-condition,compare-property-value,compare-mime-type,in-category,is-subtype,has-aspect,has-version-history,action-executer,composite-action,create-version,add-features,remove-features,specialise-type,link-category,simple-workflow,transform,transform-image,copy,move,check-in,check-out,mail,set-property-value,extract-metadata,import,export,repository-export,script,execute-all-rules,ruleService,rulesAspect,ruleResourceBundles,rule-type-base,inbound,update,outbound,rule-trigger-base,on-create-node-trigger,on-update-node-trigger,on-property-update-trigger,on-delete-node-trigger,on-create-child-association-trigger,on-delete-child-association-trigger,on-create-association-trigger,on-delete-association-trigger,on-content-update-trigger,on-content-create-trigger,nodeService,storeArchiveMap,nodeArchiveService,dbNodeService,nodeIndexer,integrityChecker,incompleteNodeTagger,ftsIndexerTrigger,tempFileCleanerTrigger,fileContentStoreCleanerJobDetail,contentStoreCleanerTrigger,indexRecoveryTrigger,indexBackupJobDetail,indexBackupTrigger,ehCacheTracerJob,schedulerFactory,fileServersConfigSource,fileServersConfigService,fileServerConfigurationBase,contentDiskDriver,cifsHelper,fileContentStore,deletedContentStore,deletedContentBackupListener,contentStoreCleaner,contentService,mimetypeConfigService,mimetypeService,metadataExtracterRegistry,baseMetadataExtracter,org.alfresco.repo.content.metadata.PdfBoxMetadataExtracter,org.alfresco.repo.content.metadata.OfficeMetadataExtracter,org.alfresco.repo.content.metadata.HtmlMetadataExtracter,org.alfresco.repo.content.metadata.MP3MetadataExtracter,org.alfresco.repo.content.metadata.OpenDocumentMetadataExtracter,org.alfresco.repo.content.metadata.UnoMetadataExtracter,contentTransformerRegistry,baseContentTransformer,transformer.StringExtracter,transformer.BinaryPassThrough,transformer.PdfBox,transformer.Poi,transformer.TextMining,transformer.HtmlParser,transformer.OpenOffice,transformer.complex.OpenOffice.PdfBox,transformer.ImageMagick,hibernateConfigProperties,cacheStrategiesPlaceholderConfigurer,sessionFactory,sessionFactoryBase,transactionManager,versionCounterDaoComponent,permissionsDaoComponent,nodeDaoServiceImpl,dbNodeDaoServiceTxnRegistration,persmissionDaoServiceTxnRegistration,nodeDaoService,ownableService,templateService,freeMarkerProcessor,scriptService,indexRecoveryComponentBase,indexRecoveryComponent,authorityService,authorityDAO,authenticationManager,daoAuthenticationProvider,authenticatedAuthenticationPassthroughProvider,alfDaoImpl,authenticationDao,passwordEncoder,authenticationService,authenticationServiceImpl,authenticationComponent,authenticationComponentImpl,personService,ticketComponent,policyBehaviourQueue,policyTransactionHandlerFactory,policyBehaviourFilter,policyComponent,viewParser,importerComponent,exporterComponent,repositoryExporterComponent,systemExporterImporter,systemInfoImporter,storeImporter,userStoreImporter,systemStoreImporter,spacesArchiveStoreImporter,spacesStoreImporter,versionStoreImporter,systemInfoBootstrap,userBootstrap,systemBootstrap,versionBootstrap,spacesArchiveBootstrap,spacesBootstrap,descriptorComponent,patchExecuter,fileServerConfiguration,cifsServer,ftpServer,startupLog,JCR.Repository,JCR.DictionaryBootstrap,PatchService,PatchService_transaction,patchDaoComponent,patchComponent,basePatch,patch.sample.01,patch.sample.02,bootstrapSpacesMessageSource,patch.authoritiesFolder,patch.savedSearchesFolder,patch.savedSearchesPermission,patch.updatePermissionData,patch.guestUser,patch.fixNodeSerializableValues,patch.updateGuestPermission,patch.guestPersonPermission,patch.spacesRootPermission,patch.categoryRootPermission,patch.contentPermission,patch.updateForumsIcons,patch.emailTemplatesFolder,patch.emailTemplatesContent,patch.descriptorUpdate,patch.scriptsFolder,patch.topLevelGroupParentChildAssociationTypePatch]; root of BeanFactory hierarchy
- 339 beans defined in application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=30562042]
- Loading properties file from class path resource [alfresco/repository.properties]
- Loading properties file from class path resource [alfresco/version.properties]
- Loading properties file from class path resource [alfresco/domain/transaction.properties]
- Loading properties file from class path resource [alfresco/extension/custom-repository.properties]
- Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
- Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@6f947b]
- Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@15a3a1]
- Loading properties file from class path resource [alfresco/domain/hibernate-cfg.properties]
- Initializing c3p0-0.9.1-pre6 [built 23-March-2006 16:11:59 +0200; debug? true; trace: 10]
- Hibernate 3.1.3
- hibernate.properties not found
- using CGLIB reflection optimizer
- using JDK 1.4 java.sql.Timestamp handling
- Mapping class: org.alfresco.repo.domain.hibernate.NodeImpl -> node
- Mapping collection: org.alfresco.repo.domain.hibernate.NodeImpl.properties -> node_properties
- Mapping collection: org.alfresco.repo.domain.hibernate.NodeImpl.aspects -> node_aspects
- Mapping class: org.alfresco.repo.domain.hibernate.NodeStatusImpl -> node_status
- Mapping class: org.alfresco.repo.domain.hibernate.ChildAssocImpl -> child_assoc
- Mapping class: org.alfresco.repo.domain.hibernate.NodeAssocImpl -> node_assoc
- Mapping class: org.alfresco.repo.domain.hibernate.StoreImpl -> store
- Mapping class: org.alfresco.repo.domain.hibernate.VersionCountImpl -> version_count
- Mapping class: org.alfresco.repo.domain.hibernate.AppliedPatchImpl -> applied_patch
- Mapping class: org.alfresco.repo.domain.hibernate.DbAccessControlListImpl -> access_control_list
- Mapping class: org.alfresco.repo.domain.hibernate.DbAccessControlEntryImpl -> access_control_entry
- Mapping class: org.alfresco.repo.domain.hibernate.DbPermissionImpl -> permission
- Mapping class: org.alfresco.repo.domain.hibernate.DbAuthorityImpl -> authority
- Mapping collection: org.alfresco.repo.domain.hibernate.DbAuthorityImpl.externalKeys -> auth_ext_keys
- Building new Hibernate SessionFactory
- Mapping collection: org.alfresco.repo.domain.hibernate.NodeImpl.parentAssocs -> child_assoc
- Mapping collection: org.alfresco.repo.domain.hibernate.NodeImpl.childAssocs -> child_assoc
- Mapping collection: org.alfresco.repo.domain.hibernate.NodeImpl.sourceNodeAssocs -> node_assoc
- Mapping collection: org.alfresco.repo.domain.hibernate.NodeImpl.targetNodeAssocs -> node_assoc
- Mapping collection: org.alfresco.repo.domain.hibernate.DbAccessControlListImpl.entries -> access_control_entry
- Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
- Initializing c3p0 pool… com.mchange.v2.c3p0.ComboPooledDataSource@1d8417c[ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, allUsers -> [], autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> a37c6a, description -> null, driverClass -> org.gjt.mm.mysql.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1d8417c, idleConnectionTestPeriod -> -1, initialPoolSize -> 10, jdbcUrl -> jdbc:mysql:///alfresco, maxIdleTime -> 0, maxPoolSize -> 20, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 1, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 300, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, usesTraditionalReflectiveProxies -> false ]
- RDBMS: MySQL, version: 4.1.16
- JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.1.12 ( $Date: 2005-11-17 15:53:48 +0100 (Thu, 17 Nov 2005) $, $Revision$ )
- Using dialect: org.hibernate.dialect.MySQLInnoDBDialect
- Using default transaction strategy (direct JDBC transactions)
- No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
- Automatic flush during beforeCompletion(): disabled
- Automatic session close at end of transaction: disabled
- JDBC batch size: 32
- JDBC batch updates for versioned data: disabled
- Scrollable result sets: enabled
- JDBC3 getGeneratedKeys(): enabled
- Connection release mode: auto
- Maximum outer join fetch depth: 10
- Default batch fetch size: 1
- Generate SQL with comments: disabled
- Order SQL updates by primary key: disabled
- Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
- Using ASTQueryTranslatorFactory
- Query language substitutions: {}
- Second-level cache: enabled
- Query cache: enabled
- Cache provider: org.alfresco.repo.cache.InternalEhCacheManagerFactoryBean
- Optimize cache for minimal puts: disabled
- Structured second-level cache entries: disabled
- Query cache factory: org.hibernate.cache.StandardQueryCacheFactory
- Statistics: disabled
- Deleted entity synthetic identifier rollback: disabled
- Default entity-mode: pojo
- building session factory
- Not binding factory to JNDI, no JNDI name configured
- Running hbm2ddl schema update
- fetching database metadata
- updating schema
- table found: alfresco.access_control_entry
- columns: [acl_id, permission_id, authority_id, id, allowed]
- foreign keys: [fkf064df75b25a50bf, fkf064df75b9553f6c, fkf064df7560601995]
- indexes: [acl_id, primary, fkf064df75b25a50bf, fkf064df75b9553f6c, fkf064df7560601995]
- table found: alfresco.access_control_list
- columns: [inherits, id]
- foreign keys: []
- indexes: [primary]
- table found: alfresco.applied_patch
- columns: [succeeded, target_schema, fixes_to_schema, applied_on_date, fixes_from_schema, was_executed, applied_to_schema, applied_to_server, report, description, id]
- foreign keys: []
- indexes: [primary]
- table found: alfresco.auth_ext_keys
- columns: [externalkey, id]
- foreign keys: [fk31d3ba097b7fde43]
- indexes: [primary, fk31d3ba097b7fde43]
- table found: alfresco.authority
- columns: [recipient]
- foreign keys: []
- indexes: [primary]
- table found: alfresco.child_assoc
- columns: [type_qname, parent_node_id, assoc_index, qname, is_primary, child_node_id, id]
- foreign keys: [fkc6efff328e50e582, fkc6efff3274173ff4]
- indexes: [primary, fkc6efff328e50e582, fkc6efff3274173ff4]
- table found: alfresco.node
- columns: [type_qname, acl_id, protocol, uuid, identifier, id]
- foreign keys: [fk33ae02d24add25, fk33ae02b9553f6c]
- indexes: [protocol, primary, fk33ae02d24add25, fk33ae02b9553f6c]
- table found: alfresco.node_aspects
- columns: [qname, node_id]
- foreign keys: [fk2b91a9de7f2c8017]
- indexes: [fk2b91a9de7f2c8017]
- table found: alfresco.node_assoc
- columns: [type_qname, source_node_id, target_node_id, id]
- foreign keys: [fk5baef398a8fc7769, fk5baef398b69c43f3]
- indexes: [primary, fk5baef398a8fc7769, fk5baef398b69c43f3]
- table found: alfresco.node_properties
- columns: [double_value, multi_valued, boolean_value, serializable_value, persisted_type, qname, actual_type, node_id, float_value, long_value, string_value]
- foreign keys: [fkc962bf907f2c8017]
- indexes: [primary, fkc962bf907f2c8017]
- table found: alfresco.node_status
- columns: [protocol, node_id, guid, identifier, change_txn_id]
- foreign keys: [fk38ecb8cf7f2c8017]
- indexes: [primary, fk38ecb8cf7f2c8017]
- table found: alfresco.permission
- columns: [type_qname, name, id]
- foreign keys: []
- indexes: [type_qname, primary]
- table found: alfresco.store
- columns: [protocol, root_node_id, identifier]
- foreign keys: [fk68af8e122dba5ba]
- indexes: [primary, fk68af8e122dba5ba]
- table found: alfresco.version_count
- columns: [protocol, version_count, identifier]
- foreign keys: []
- indexes: [primary]
- schema update complete
- starting update timestamps cache at region: org.hibernate.cache.UpdateTimestampsCache
- starting query cache at region: org.hibernate.cache.StandardQueryCache
- Using DataSource [com.mchange.v2.c3p0.ComboPooledDataSource@1d8417c[ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, allUsers -> [alfresco], autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> a37c6a, description -> null, driverClass -> org.gjt.mm.mysql.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1d8417c, idleConnectionTestPeriod -> -1, initialPoolSize -> 10, jdbcUrl -> jdbc:mysql:///alfresco, maxIdleTime -> 0, maxPoolSize -> 20, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 1, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 300, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, usesTraditionalReflectiveProxies -> false ]] of Hibernate SessionFactory for HibernateTransactionManager
- Loading model from alfresco/model/dictionaryModel.xml
- Registered model d:dictionary
- Registered namespace '' (prefix '')
- Registered namespace 'http://www.alfresco.org' (prefix 'alf')
- Registered namespace 'http://www.alfresco.org/model/dictionary/1.0' (prefix 'd')
- Registered namespace 'http://www.alfresco.org/view/repository/1.0' (prefix 'view')
- Loading model from alfresco/model/systemModel.xml
- Registered model sys:systemmodel
- Registered namespace 'http://www.alfresco.org/model/system/1.0' (prefix 'sys')
- Loading model from alfresco/model/contentModel.xml
- Registered model cm:contentmodel
- Registered namespace 'http://www.alfresco.org/model/content/1.0' (prefix 'cm')
- Loading model from alfresco/model/applicationModel.xml
- Registered model app:applicationmodel
- Registered namespace 'http://www.alfresco.org/model/application/1.0' (prefix 'app')
- Loading model from alfresco/model/forumModel.xml
- Registered model fm:forummodel
- Registered namespace 'http://www.alfresco.org/model/forum/1.0' (prefix 'fm')
- Loading model from org/alfresco/repo/security/authentication/userModel.xml
- Registered model usr:usermodel
- Registered namespace 'http://www.alfresco.org/model/user/1.0' (prefix 'usr')
- Loading model from org/alfresco/repo/action/actionModel.xml
- Registered model act:actionmodel
- Registered namespace 'http://www.alfresco.org/model/action/1.0' (prefix 'act')
- Loading model from org/alfresco/repo/rule/ruleModel.xml
- Registered model rule:rulemodel
- Registered namespace 'http://www.alfresco.org/model/rule/1.0' (prefix 'rule')
- Loading model from org/alfresco/repo/version/version_model.xml
- Registered model ver:versionmodel
- Registered namespace 'http://www.alfresco.org/model/versionstore/1.0' (prefix 'ver')
- CGLIB2 available: proxyTargetClass feature enabled
- Registered class policy {http://www.alfresco.org}beforeCreateStore (interface org.alfresco.repo.node.NodeServicePolicies$BeforeCreateStorePolicy)
- Registered class policy {http://www.alfresco.org}onCreateStore (interface org.alfresco.repo.node.NodeServicePolicies$OnCreateStorePolicy)
- Registered class policy {http://www.alfresco.org}beforeCreateNode (interface org.alfresco.repo.node.NodeServicePolicies$BeforeCreateNodePolicy)
- Registered class policy {http://www.alfresco.org}onCreateNode (interface org.alfresco.repo.node.NodeServicePolicies$OnCreateNodePolicy)
- Registered class policy {http://www.alfresco.org}beforeUpdateNode (interface org.alfresco.repo.node.NodeServicePolicies$BeforeUpdateNodePolicy)
- Registered class policy {http://www.alfresco.org}onUpdateNode (interface org.alfresco.repo.node.NodeServicePolicies$OnUpdateNodePolicy)
- Registered class policy {http://www.alfresco.org}onUpdateProperties (interface org.alfresco.repo.node.NodeServicePolicies$OnUpdatePropertiesPolicy)
- Registered class policy {http://www.alfresco.org}beforeDeleteNode (interface org.alfresco.repo.node.NodeServicePolicies$BeforeDeleteNodePolicy)
- Registered class policy {http://www.alfresco.org}onDeleteNode (interface org.alfresco.repo.node.NodeServicePolicies$OnDeleteNodePolicy)
- Registered class policy {http://www.alfresco.org}beforeAddAspect (interface org.alfresco.repo.node.NodeServicePolicies$BeforeAddAspectPolicy)
- Registered class policy {http://www.alfresco.org}onAddAspect (interface org.alfresco.repo.node.NodeServicePolicies$OnAddAspectPolicy)
- Registered class policy {http://www.alfresco.org}beforeRemoveAspect (interface org.alfresco.repo.node.NodeServicePolicies$BeforeRemoveAspectPolicy)
- Registered class policy {http://www.alfresco.org}onRemoveAspect (interface org.alfresco.repo.node.NodeServicePolicies$OnRemoveAspectPolicy)
- Registered association policy {http://www.alfresco.org}beforeCreateChildAssociation (interface org.alfresco.repo.node.NodeServicePolicies$BeforeCreateChildAssociationPolicy)
- Registered association policy {http://www.alfresco.org}onCreateChildAssociation (interface org.alfresco.repo.node.NodeServicePolicies$OnCreateChildAssociationPolicy)
- Registered association policy {http://www.alfresco.org}beforeDeleteChildAssociation (interface org.alfresco.repo.node.NodeServicePolicies$BeforeDeleteChildAssociationPolicy)
- Registered association policy {http://www.alfresco.org}onDeleteChildAssociation (interface org.alfresco.repo.node.NodeServicePolicies$OnDeleteChildAssociationPolicy)
- Registered association policy {http://www.alfresco.org}onCreateAssociation (interface org.alfresco.repo.node.NodeServicePolicies$OnCreateAssociationPolicy)
- Registered association policy {http://www.alfresco.org}onDeleteAssociation (interface org.alfresco.repo.node.NodeServicePolicies$OnDeleteAssociationPolicy)
- Bound Java method[class=org.alfresco.repo.content.RoutingContentService, method=onUpdateProperties] to policy {http://www.alfresco.org}onUpdateProperties for service org.alfresco.repo.content.RoutingContentService@c3d9ac
- Registered class policy {http://www.alfresco.org}onContentUpdate (interface org.alfresco.repo.content.ContentServicePolicies$OnContentUpdatePolicy)
- Registered class policy {http://www.alfresco.org}onContentRead (interface org.alfresco.repo.content.ContentServicePolicies$OnContentReadPolicy)
- Bound Java method[class=org.alfresco.repo.domain.hibernate.VersionCounterDaoComponentImpl, method=beforeCreateStore] to policy {http://www.alfresco.org}beforeCreateStore for service org.alfresco.repo.domain.hibernate.VersionCounterDaoComponentImpl@150ed68
- Creating new EHCache cache region 'userToAuthorityCache'
- Initializing EHCache CacheManager
- Creating new EHCache cache region 'permissionsAccessCache'
- Creating new EHCache cache region 'nodeOwnerCache'
- Behaviour Java method[class=org.alfresco.repo.lock.LockServiceImpl, method=checkForLock] is binding (ClassBinding[class={http://www.alfresco.org/model/content/1.0}lockable]) to policy {http://www.alfresco.org}beforeCreateVersion before the policy is registered
- Bound Java method[class=org.alfresco.repo.lock.LockServiceImpl, method=checkForLock] to policy {http://www.alfresco.org}beforeCreateVersion for class {http://www.alfresco.org/model/content/1.0}lockable
- Bound Java method[class=org.alfresco.repo.lock.LockServiceImpl, method=checkForLock] to policy {http://www.alfresco.org}beforeUpdateNode for class {http://www.alfresco.org/model/content/1.0}lockable
- Bound Java method[class=org.alfresco.repo.lock.LockServiceImpl, method=checkForLock] to policy {http://www.alfresco.org}beforeDeleteNode for class {http://www.alfresco.org/model/content/1.0}lockable
- Behaviour Java method[class=org.alfresco.repo.lock.LockServiceImpl, method=onCopy] is binding (ClassBinding[class={http://www.alfresco.org/model/content/1.0}lockable]) to policy {http://www.alfresco.org}onCopyNode before the policy is registered
- Bound Java method[class=org.alfresco.repo.lock.LockServiceImpl, method=onCopy] to policy {http://www.alfresco.org}onCopyNode for class {http://www.alfresco.org/model/content/1.0}lockable
- Behaviour Java method[class=org.alfresco.repo.lock.LockServiceImpl, method=onCreateVersion] is binding (ClassBinding[class={http://www.alfresco.org/model/content/1.0}lockable]) to policy {http://www.alfresco.org}onCreateVersion before the policy is registered
- Bound Java method[class=org.alfresco.repo.lock.LockServiceImpl, method=onCreateVersion] to policy {http://www.alfresco.org}onCreateVersion for class {http://www.alfresco.org/model/content/1.0}lockable
- Adding secure method [public abstract void org.alfresco.service.cmr.repository.NodeService.setProperties(org.alfresco.service.cmr.repository.NodeRef,java.util.Map) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ACL_NODE.0.sys:base.WriteProperties]]
- Adding secure method [public abstract java.util.List org.alfresco.service.cmr.repository.NodeService.getStores()] with attributes [[AFTER_ACL_NODE.sys:base.Read]]
- Adding secure method [public abstract void org.alfresco.service.cmr.repository.NodeService.addAspect(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName,java.util.Map) throws org.alfresco.service.cmr.repository.InvalidNodeRefException,org.alfresco.service.cmr.dictionary.InvalidAspectException] with attributes [[ACL_NODE.0.sys:base.Write]]
- Adding secure method [public abstract void org.alfresco.service.cmr.repository.NodeService.removeAssociation(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ROLE_AUTHENTICATED]]
- Adding secure method [public abstract java.util.List org.alfresco.service.cmr.repository.NodeService.getChildAssocs(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QNamePattern,org.alfresco.service.namespace.QNamePattern) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ACL_NODE.0.sys:base.ReadChildren, AFTER_ACL_NODE.sys:base.Read]]
- Adding secure method [public abstract java.util.List org.alfresco.service.cmr.repository.NodeService.getChildAssocs(org.alfresco.service.cmr.repository.NodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ACL_NODE.0.sys:base.ReadChildren, AFTER_ACL_NODE.sys:base.Read]]
- Adding secure method [public abstract void org.alfresco.service.cmr.repository.NodeService.removeChild(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.cmr.repository.NodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ACL_NODE.1.sys:base.DeleteChildren]]
- Adding secure method [public abstract void org.alfresco.service.cmr.repository.NodeService.removeAspect(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName) throws org.alfresco.service.cmr.repository.InvalidNodeRefException,org.alfresco.service.cmr.dictionary.InvalidAspectException] with attributes [[ACL_NODE.0.sys:base.Write]]
- Adding secure method [public abstract void org.alfresco.service.cmr.repository.NodeService.setType(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ACL_NODE.0.sys:base.Write]]
- Adding secure method [public abstract void org.alfresco.service.cmr.repository.NodeService.deleteNode(org.alfresco.service.cmr.repository.NodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ACL_NODE.0.sys:base.DeleteNode]]
- Adding secure method [public abstract void org.alfresco.service.cmr.repository.NodeService.setChildAssociationIndex(org.alfresco.service.cmr.repository.ChildAssociationRef,int) throws org.alfresco.service.cmr.repository.InvalidChildAssociationRefException] with attributes [[ACL_PARENT.0.sys:base.WriteProperties]]
- Adding secure method [public abstract java.util.Set org.alfresco.service.cmr.repository.NodeService.getAspects(org.alfresco.service.cmr.repository.NodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ACL_NODE.0.sys:base.ReadProperties]]
- Adding secure method [public abstract org.alfresco.service.cmr.repository.ChildAssociationRef org.alfresco.service.cmr.repository.NodeService.moveNode(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName,org.alfresco.service.namespace.QName) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ACL_NODE.0.sys:base.DeleteNode, ACL_NODE.1.sys:base.CreateChildren]]
- Adding secure method [public abstract org.alfresco.service.cmr.repository.AssociationRef org.alfresco.service.cmr.repository.NodeService.createAssociation(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName) throws org.alfresco.service.cmr.repository.InvalidNodeRefException,org.alfresco.service.cmr.repository.AssociationExistsException] with attributes [[ROLE_AUTHENTICATED]]
- Adding secure method [public abstract org.alfresco.service.cmr.repository.NodeRef org.alfresco.service.cmr.repository.NodeService.getStoreArchiveNode(org.alfresco.service.cmr.repository.StoreRef)] with attributes [[ACL_NODE.0.sys:base.Read]]
- Adding secure method [public abstract org.alfresco.service.namespace.QName org.alfresco.service.cmr.repository.NodeService.getType(org.alfresco.service.cmr.repository.NodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ACL_NODE.0.sys:base.Read]]
- Adding secure method [public abstract org.alfresco.service.cmr.repository.StoreRef org.alfresco.service.cmr.repository.NodeService.createStore(java.lang.String,java.lang.String) throws org.alfresco.service.cmr.repository.StoreExistsException] with attributes [[ACL_METHOD.ROLE_ADMINISTRATOR]]
- Adding secure method [public abstract boolean org.alfresco.service.cmr.repository.NodeService.exists(org.alfresco.service.cmr.repository.StoreRef)] with attributes [[ACL_NODE.0.sys:base.Read]]
- Adding secure method [public abstract boolean org.alfresco.service.cmr.repository.NodeService.exists(org.alfresco.service.cmr.repository.NodeRef)] with attributes [[ACL_NODE.0.sys:base.Read]]
- Adding secure method [public abstract org.alfresco.service.cmr.repository.ChildAssociationRef org.alfresco.service.cmr.repository.NodeService.getPrimaryParent(org.alfresco.service.cmr.repository.NodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ACL_NODE.0.sys:base.ReadProperties, AFTER_ACL_PARENT.sys:base.Read]]
- Adding secure method [public abstract org.alfresco.service.cmr.repository.ChildAssociationRef org.alfresco.service.cmr.repository.NodeService.addChild(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName,org.alfresco.service.namespace.QName) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ACL_NODE.0.sys:base.CreateChildren, ACL_NODE.1.sys:base.ReadProperties]]
- Adding secure method [public abstract java.util.List org.alfresco.service.cmr.repository.NodeService.getParentAssocs(org.alfresco.service.cmr.repository.NodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ACL_NODE.0.sys:base.ReadProperties, AFTER_ACL_PARENT.sys:base.Read]]
- Adding secure method [public abstract java.util.List org.alfresco.service.cmr.repository.NodeService.getParentAssocs(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QNamePattern,org.alfresco.service.namespace.QNamePattern) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ACL_NODE.0.sys:base.ReadProperties, AFTER_ACL_PARENT.sys:base.Read]]
- Adding secure method [public abstract java.io.Serializable org.alfresco.service.cmr.repository.NodeService.getProperty(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ACL_NODE.0.sys:base.ReadProperties]]
- Adding secure method [public abstract java.util.List org.alfresco.service.cmr.repository.NodeService.getSourceAssocs(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QNamePattern) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ROLE_AUTHENTICATED]]
- Adding secure method [public abstract org.alfresco.service.cmr.repository.NodeRef org.alfresco.service.cmr.repository.NodeService.getRootNode(org.alfresco.service.cmr.repository.StoreRef) throws org.alfresco.service.cmr.repository.InvalidStoreRefException] with attributes [[ACL_NODE.0.sys:base.Read]]
- Adding secure method [public abstract org.alfresco.service.cmr.repository.ChildAssociationRef org.alfresco.service.cmr.repository.NodeService.createNode(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName,org.alfresco.service.namespace.QName,org.alfresco.service.namespace.QName,java.util.Map) throws org.alfresco.service.cmr.repository.InvalidNodeRefException,org.alfresco.service.cmr.dictionary.InvalidTypeException] with attributes [[ACL_NODE.0.sys:base.CreateChildren]]
- Adding secure method [public abstract org.alfresco.service.cmr.repository.ChildAssociationRef org.alfresco.service.cmr.repository.NodeService.createNode(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName,org.alfresco.service.namespace.QName,org.alfresco.service.namespace.QName) throws org.alfresco.service.cmr.repository.InvalidNodeRefException,org.alfresco.service.cmr.dictionary.InvalidTypeException] with attributes [[ACL_NODE.0.sys:base.CreateChildren]]
- Adding secure method [public abstract java.util.List org.alfresco.service.cmr.repository.NodeService.getTargetAssocs(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QNamePattern) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ROLE_AUTHENTICATED]]
- Adding secure method [public abstract org.alfresco.service.cmr.repository.NodeRef org.alfresco.service.cmr.repository.NodeService.restoreNode(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName,org.alfresco.service.namespace.QName)] with attributes [[ACL_NODE.0.sys:base.DeleteNode, ACL_NODE.1.sys:base.CreateChildren]]
- Adding secure method [public abstract void org.alfresco.service.cmr.repository.NodeService.setProperty(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName,java.io.Serializable) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ACL_NODE.0.sys:base.WriteProperties]]
- Adding secure method [public abstract java.util.Map org.alfresco.service.cmr.repository.NodeService.getProperties(org.alfresco.service.cmr.repository.NodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ACL_NODE.0.sys:base.ReadProperties]]
- Adding secure method [public abstract org.alfresco.service.cmr.repository.Path org.alfresco.service.cmr.repository.NodeService.getPath(org.alfresco.service.cmr.repository.NodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ACL_NODE.0.sys:base.ReadProperties]]
- Adding secure method [public abstract boolean org.alfresco.service.cmr.repository.NodeService.hasAspect(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName) throws org.alfresco.service.cmr.repository.InvalidNodeRefException,org.alfresco.service.cmr.dictionary.InvalidAspectException] with attributes [[ACL_NODE.0.sys:base.ReadProperties]]
- Adding secure method [public abstract java.util.List org.alfresco.service.cmr.repository.NodeService.getPaths(org.alfresco.service.cmr.repository.NodeRef,boolean) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ACL_NODE.0.sys:base.ReadProperties]]
- Adding secure method [public abstract org.alfresco.service.cmr.repository.NodeRef$Status org.alfresco.service.cmr.repository.NodeService.getNodeStatus(org.alfresco.service.cmr.repository.NodeRef)] with attributes [[ACL_NODE.0.sys:base.Read]]
- Validated configuration attributes
- Adding secure method [public abstract org.alfresco.repo.content.transform.ContentTransformer org.alfresco.service.cmr.repository.ContentService.getTransformer(java.lang.String,java.lang.String)] with attributes [[ACL_ALLOW]]
- Adding secure method [public abstract org.alfresco.service.cmr.repository.ContentReader org.alfresco.service.cmr.repository.ContentService.getReader(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName) throws org.alfresco.service.cmr.repository.InvalidNodeRefException,org.alfresco.service.cmr.dictionary.InvalidTypeException] with attributes [[ACL_NODE.0.sys:base.ReadContent]]
- Adding secure method [public abstract void org.alfresco.service.cmr.repository.ContentService.transform(org.alfresco.service.cmr.repository.ContentReader,org.alfresco.service.cmr.repository.ContentWriter) throws org.alfresco.service.cmr.repository.NoTransformerException,org.alfresco.service.cmr.repository.ContentIOException] with attributes [[ACL_ALLOW]]
- Adding secure method [public abstract org.alfresco.service.cmr.repository.ContentWriter org.alfresco.service.cmr.repository.ContentService.getTempWriter()] with attributes [[ACL_ALLOW]]
- Adding secure method [public abstract org.alfresco.service.cmr.repository.ContentWriter org.alfresco.service.cmr.repository.ContentService.getWriter(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName,boolean) throws org.alfresco.service.cmr.repository.InvalidNodeRefException,org.alfresco.service.cmr.dictionary.InvalidTypeException] with attributes [[ACL_NODE.0.sys:base.WriteContent]]
- Adding secure method [public abstract boolean org.alfresco.service.cmr.repository.ContentService.isTransformable(org.alfresco.service.cmr.repository.ContentReader,org.alfresco.service.cmr.repository.ContentWriter)] with attributes [[ACL_ALLOW]]
- Validated configuration attributes
- Adding secure method [public abstract java.util.List org.alfresco.service.cmr.search.SearchService.selectProperties(org.alfresco.service.cmr.repository.NodeRef,java.lang.String,org.alfresco.service.cmr.search.QueryParameterDefinition[],org.alfresco.service.namespace.NamespacePrefixResolver,boolean) throws org.alfresco.service.cmr.repository.InvalidNodeRefException,org.alfresco.service.cmr.repository.XPathException] with attributes [[ACL_NODE.0.sys:base.Read]]
- Adding secure method [public abstract java.util.List org.alfresco.service.cmr.search.SearchService.selectProperties(org.alfresco.service.cmr.repository.NodeRef,java.lang.String,org.alfresco.service.cmr.search.QueryParameterDefinition[],org.alfresco.service.namespace.NamespacePrefixResolver,boolean,java.lang.String) throws org.alfresco.service.cmr.repository.InvalidNodeRefException,org.alfresco.service.cmr.repository.XPathException] with attributes [[ACL_NODE.0.sys:base.Read]]
- Adding secure method [public abstract org.alfresco.service.cmr.search.ResultSet org.alfresco.service.cmr.search.SearchService.query(org.alfresco.service.cmr.repository.StoreRef,java.lang.String,java.lang.String,org.alfresco.service.cmr.repository.Path[])] with attributes [[AFTER_ACL_NODE.sys:base.Read]]
- Adding secure method [public abstract org.alfresco.service.cmr.search.ResultSet org.alfresco.service.cmr.search.SearchService.query(org.alfresco.service.cmr.repository.StoreRef,org.alfresco.service.namespace.QName,org.alfresco.service.cmr.search.QueryParameter[])] with attributes [[AFTER_ACL_NODE.sys:base.Read]]
- Adding secure method [public abstract org.alfresco.service.cmr.search.ResultSet org.alfresco.service.cmr.search.SearchService.query(org.alfresco.service.cmr.search.SearchParameters)] with attributes [[AFTER_ACL_NODE.sys:base.Read]]
- Adding secure method [public abstract org.alfresco.service.cmr.search.ResultSet org.alfresco.service.cmr.search.SearchService.query(org.alfresco.service.cmr.repository.StoreRef,java.lang.String,java.lang.String,org.alfresco.service.cmr.search.QueryParameterDefinition[])] with attributes [[AFTER_ACL_NODE.sys:base.Read]]
- Adding secure method [public abstract org.alfresco.service.cmr.search.ResultSet org.alfresco.service.cmr.search.SearchService.query(org.alfresco.service.cmr.repository.StoreRef,java.lang.String,java.lang.String)] with attributes [[AFTER_ACL_NODE.sys:base.Read]]
- Adding secure method [public abstract org.alfresco.service.cmr.search.ResultSet org.alfresco.service.cmr.search.SearchService.query(org.alfresco.service.cmr.repository.StoreRef,java.lang.String,java.lang.String,org.alfresco.service.cmr.repository.Path[],org.alfresco.service.cmr.search.QueryParameterDefinition[])] with attributes [[AFTER_ACL_NODE.sys:base.Read]]
- Adding secure method [public abstract boolean org.alfresco.service.cmr.search.SearchService.contains(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName,java.lang.String,org.alfresco.service.cmr.search.SearchParameters$Operator) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ACL_NODE.0.sys:base.Read]]
- Adding secure method [public abstract boolean org.alfresco.service.cmr.search.SearchService.contains(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName,java.lang.String) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ACL_NODE.0.sys:base.Read]]
- Adding secure method [public abstract java.util.List org.alfresco.service.cmr.search.SearchService.selectNodes(org.alfresco.service.cmr.repository.NodeRef,java.lang.String,org.alfresco.service.cmr.search.QueryParameterDefinition[],org.alfresco.service.namespace.NamespacePrefixResolver,boolean,java.lang.String) throws org.alfresco.service.cmr.repository.InvalidNodeRefException,org.alfresco.service.cmr.repository.XPathException] with attributes [[AFTER_ACL_NODE.sys:base.Read]]
- Adding secure method [public abstract java.util.List org.alfresco.service.cmr.search.SearchService.selectNodes(org.alfresco.service.cmr.repository.NodeRef,java.lang.String,org.alfresco.service.cmr.search.QueryParameterDefinition[],org.alfresco.service.namespace.NamespacePrefixResolver,boolean) throws org.alfresco.service.cmr.repository.InvalidNodeRefException,org.alfresco.service.cmr.repository.XPathException] with attributes [[AFTER_ACL_NODE.sys:base.Read]]
- Adding secure method [public abstract boolean org.alfresco.service.cmr.search.SearchService.like(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName,java.lang.String,boolean) throws org.alfresco.service.cmr.repository.InvalidNodeRefException] with attributes [[ACL_NODE.0.sys:base.Read]]
- Validated configuration attributes
- Adding secure method [public abstract void org.alfresco.service.cmr.security.PermissionService.clearPermission(org.alfresco.service.cmr.repository.NodeRef,java.lang.String)] with attributes [[ACL_NODE.0.sys:base.ChangePermissions]]
- Adding secure method [public abstract java.util.Set org.alfresco.service.cmr.security.PermissionService.getSettablePermissions(org.alfresco.service.namespace.QName)] with attributes [[ACL_ALLOW]]
- Adding secure method [public abstract java.util.Set org.alfresco.service.cmr.security.PermissionService.getSettablePermissions(org.alfresco.service.cmr.repository.NodeRef)] with attributes [[ACL_ALLOW]]
- Adding secure method [public abstract java.lang.String org.alfresco.service.cmr.security.PermissionService.getOwnerAuthority()] with attributes [[ACL_ALLOW]]
- Adding secure method [public abstract org.alfresco.service.cmr.security.AccessStatus org.alfresco.service.cmr.security.PermissionService.hasPermission(org.alfresco.service.cmr.repository.NodeRef,java.lang.String)] with attributes [[ACL_ALLOW]]
- Adding secure method [public abstract boolean org.alfresco.service.cmr.security.PermissionService.getInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef)] with attributes [[ACL_ALLOW]]
- Adding secure method [public abstract java.lang.String org.alfresco.service.cmr.security.PermissionService.getAllAuthorities()] with attributes [[ACL_ALLOW]]
- Adding secure method [public abstract void org.alfresco.service.cmr.security.PermissionService.setPermission(org.alfresco.service.cmr.repository.NodeRef,java.lang.String,java.lang.String,boolean)] with attributes [[ACL_NODE.0.sys:base.ChangePermissions]]
- Adding secure method [public abstract void org.alfresco.service.cmr.security.PermissionService.deletePermissions(org.alfresco.service.cmr.repository.NodeRef)] with attributes [[ACL_NODE.0.sys:base.ChangePermissions]]
- Adding secure method [public abstract void org.alfresco.service.cmr.security.PermissionService.deletePermission(org.alfresco.service.cmr.repository.NodeRef,java.lang.String,java.lang.String)] with attributes [[ACL_NODE.0.sys:base.ChangePermissions]]
- Adding secure method [public abstract void org.alfresco.service.cmr.security.PermissionService.setInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef,boolean)] with attributes [[ACL_NODE.0.sys:base.ChangePermissions]]
- Adding secure method [public abstract java.util.Set org.alfresco.service.cmr.security.PermissionService.getAllSetPermissions(org.alfresco.service.cmr.repository.NodeRef)] with attributes [[ACL_NODE.0.sys:base.ReadPermissions]]
- Adding secure method [public abstract java.util.Set org.alfresco.service.cmr.security.PermissionService.getPermissions(org.alfresco.service.cmr.repository.NodeRef)] with attributes [[ACL_NODE.0.sys:base.ReadPermissions]]
- Adding secure method [public abstract java.lang.String org.alfresco.service.cmr.security.PermissionService.getAllPermission()] with attributes [[ACL_ALLOW]]
- Validated configuration attributes
- Adding secure method [public abstract java.lang.String org.alfresco.service.cmr.security.AuthorityService.getName(org.alfresco.service.cmr.security.AuthorityType,java.lang.String)] with attributes [[ACL_ALLOW]]
- Adding secure method [public abstract java.lang.String org.alfresco.service.cmr.security.AuthorityService.createAuthority(org.alfresco.service.cmr.security.AuthorityType,java.lang.String,java.lang.String)] with attributes [[ACL_METHOD.ROLE_ADMINISTRATOR]]
- Adding secure method [public abstract void org.alfresco.service.cmr.security.AuthorityService.addAuthority(java.lang.String,java.lang.String)] with attributes [[ACL_METHOD.ROLE_ADMINISTRATOR]]
- Adding secure method [public abstract boolean org.alfresco.service.cmr.security.AuthorityService.hasAdminAuthority()] with attributes [[ACL_ALLOW]]
- Adding secure method [public abstract java.util.Set org.alfresco.service.cmr.security.AuthorityService.getContainingAuthorities(org.alfresco.service.cmr.security.AuthorityType,java.lang.String,boolean)] with attributes [[ACL_ALLOW]]
- Adding secure method [public abstract void org.alfresco.service.cmr.security.AuthorityService.removeAuthority(java.lang.String,java.lang.String)] with attributes [[ACL_METHOD.ROLE_ADMINISTRATOR]]
- Adding secure method [public abstract boolean org.alfresco.service.cmr.security.AuthorityService.authorityExists(java.lang.String)] with attributes [[ACL_METHOD.ROLE_ADMINISTRATOR]]
- Adding secure method [public abstract java.lang.String org.alfresco.service.cmr.security.AuthorityService.getShortName(java.lang.String)] with attributes [[ACL_ALLOW]]
- Adding secure method [public abstract java.util.Set org.alfresco.service.cmr.security.AuthorityService.getAllRootAuthorities(org.alfresco.service.cmr.security.AuthorityType)] with attributes [[ACL_ALLOW]]
- Adding secure method [public abstract void org.alfresco.service.cmr.security.AuthorityService.deleteAuthority(java.lang.String)] with attributes [[ACL_METHOD.ROLE_ADMINISTRATOR]]
- Adding secure method [public abstract java.util.Set org.alfresco.service.cmr.security.AuthorityService.getAllAuthorities(org.alfresco.service.cmr.security.AuthorityType)] with attributes [[ACL_ALLOW]]
- Adding secure method [public abstract java.util.Set org.alfresco.service.cmr.security.AuthorityService.getContainedAuthorities(org.alfresco.service.cmr.security.AuthorityType,java.lang.String,boolean)] with attributes [[ACL_ALLOW]]
- Adding secure method [public abstract java.util.Set org.alfresco.service.cmr.security.AuthorityService.getAuthorities()] with attributes [[ACL_ALLOW]]
- Validated configuration attributes
- Adding secure method [public abstract void org.alfresco.service.cmr.security.AuthenticationService.updateAuthentication(java.lang.String,char[],char[]) throws org.alfresco.repo.security.authentication.AuthenticationException] with attributes [[ACL_ALLOW]]
- Adding secure method [public abstract void org.alfresco.service.cmr.security.AuthenticationService.clearCurrentSecurityContext()] with attributes [[ACL_ALLOW]]
- Adding secure method [public abstract void org.alfresco.service.cmr.security.AuthenticationService.invalidateTicket(java.lang.String) throws org.alfresco.repo.security.authentication.AuthenticationException] with attributes [[ACL_ALLOW]]
- Adding secure method [public abstract java.lang.String org.alfresco.service.cmr.security.AuthenticationService.getCurrentTicket()] with attributes [[ACL_ALLOW]]
- Adding secure method [public abstract boolean org.alfresco.service.cmr.security.AuthenticationService.getAuthenticationEnabled(java.lang.String) throws org.alfresco.repo.security.authentication.AuthenticationException] with attributes [[ACL_METHOD.ROLE_ADMINISTRATOR]]
- Adding secure method [public abstract void org.alfresco.service.cmr.security.AuthenticationService.setAuthentication(java.lang.String,char[]) throws org.alfresco.repo.security.authentication.AuthenticationException] with attributes [[ACL_METHOD.ROLE_ADMINISTRATOR]]
- Adding secure method [public abstract void org.alfresco.service.cmr.security.AuthenticationService.setAuthenticationEnabled(java.lang.String,boolean) throws org.alfresco.repo.security.authentication.AuthenticationException] with attributes [[ACL_METHOD.ROLE_ADMINISTRATOR]]
- Adding secure method [public abstract boolean org.alfresco.service.cmr.security.AuthenticationService.authenticationExists(java.lang.String)] with attributes [[ACL_METHOD.ROLE_ADMINISTRATOR]]
- Adding secure method [public abstract void org.alfresco.service.cmr.security.AuthenticationService.invalidateUserSession(java.lang.String) throws org.alfresco.repo.security.authentication.AuthenticationException] with attributes [[ACL_METHOD.ROLE_ADMINISTRATOR]]
- Adding secure method [public abstract void org.alfresco.service.cmr.security.AuthenticationService.createAuthentication(java.lang.String,char[]) throws org.alfresco.repo.security.authentication.AuthenticationException] with attributes [[ACL_METHOD.ROLE_ADMINISTRATOR]]
- Adding secure method [public abstract boolean org.alfresco.service.cmr.security.AuthenticationService.isCurrentUserTheSystemUser()] with attributes [[ACL_ALLOW]]
- Adding secure method [public abstract void org.alfresco.service.cmr.security.AuthenticationService.deleteAuthentication(java.lang.String) throws org.alfresco.repo.security.authentication.AuthenticationException] with attributes [[ACL_METHOD.ROLE_ADMINISTRATOR]]
- Adding secure method [public abstract java.lang.String org.alfresco.service.cmr.security.AuthenticationService.getCurrentUserName() throws org.alfresco.repo.security.authentication.AuthenticationException] with attributes [[ACL_ALLOW]]
- Validated configuration attributes
- Registered class policy {http://www.alfresco.org}onCopyNode (interface org.alfresco.repo.copy.CopyServicePolicies$OnCopyNodePolicy)
- Registered class policy {http://www.alfresco.org}onCopyComplete (interface org.alfresco.repo.copy.CopyServicePolicies$OnCopyCompletePolicy)
- Bound Java method[class=org.alfresco.repo.copy.CopyServiceImpl, method=copyAspectOnCopy] to policy {http://www.alfresco.org}onCopyNode for class {http://www.alfresco.org/model/content/1.0}copiedfrom
- Bound Java method[class=org.alfresco.repo.copy.CopyServiceImpl, method=onCopyOwnable] to policy {http://www.alfresco.org}onCopyNode for class {http://www.alfresco.org/model/content/1.0}ownable
- Bound Java method[class=org.alfresco.repo.copy.CopyServiceImpl, method=onCopyAuthor] to policy {http://www.alfresco.org}onCopyNode for class {http://www.alfresco.org/model/content/1.0}author
- Bound Java method[class=org.alfresco.repo.copy.CopyServiceImpl, method=onCopyComplete] to policy {http://www.alfresco.org}onCopyComplete for class {http://www.alfresco.org/model/content/1.0}copiedfrom
- Adding secure method [public abstract org.alfresco.service.cmr.model.FileInfo org.alfresco.service.cmr.model.FileFolderService.rename(org.alfresco.service.cmr.repository.NodeRef,java.lang.String) throws org.alfresco.service.cmr.model.FileExistsException,org.alfresco.service.cmr.model.FileNotFoundException] with attributes [[ACL_PARENT.0.sys:base.CreateChildren, AFTER_ACL_NODE.sys:base.WriteProperties]]
- Adding secure method [public abstract org.alfresco.service.cmr.model.FileInfo org.alfresco.service.cmr.model.FileFolderService.move(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.cmr.repository.NodeRef,java.lang.String) throws org.alfresco.service.cmr.model.FileExistsException,org.alfresco.service.cmr.model.FileNotFoundException] with attributes [[ACL_NODE.0.sys:base.DeleteNode, ACL_NODE.1.sys:base.CreateChildren]]
- Adding secure method [public abstract java.util.List org.alfresco.service.cmr.model.FileFolderService.getNamePath(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.cmr.repository.NodeRef) throws org.alfresco.service.cmr.model.FileNotFoundException] with attributes [[ACL_NODE.1.sys:base.ReadProperties]]
- Adding secure method [public abstract org.alfresco.service.cmr.model.FileInfo org.alfresco.service.cmr.model.FileFolderService.create(org.alfresco.service.cmr.repository.NodeRef,java.lang.String,org.alfresco.service.namespace.QName) throws org.alfresco.service.cmr.model.FileExistsException] with attributes [[ACL_NODE.0.sys:base.CreateChildren]]
- Adding secure method [public abstract java.util.List org.alfresco.service.cmr.model.FileFolderService.listFiles(org.alfresco.service.cmr.repository.NodeRef)] with attributes [[ACL_NODE.0.sys:base.ReadChildren, AFTER_ACL_NODE.sys:base.Read]]
- Adding secure method [public abstract org.alfresco.service.cmr.repository.ContentWriter org.alfresco.service.cmr.model.FileFolderService.getWriter(org.alfresco.service.cmr.repository.NodeRef)] with attributes [[ACL_NODE.0.sys:base.WriteContent]]
- Adding secure method [public abstract org.alfresco.service.cmr.model.FileInfo org.alfresco.service.cmr.model.FileFolderService.makeFolders(org.alfresco.service.cmr.repository.NodeRef,java.util.List,org.alfresco.service.namespace.QName)] with attributes [[AFTER_ACL_PARENT.sys:base.CreateChildren]]
- Adding secure method [public abstract java.util.List org.alfresco.service.cmr.model.FileFolderService.list(org.alfresco.service.cmr.repository.NodeRef)] with attributes [[ACL_NODE.0.sys:base.ReadChildren, AFTER_ACL_NODE.sys:base.Read]]
- Adding secure method [public abstract java.util.List org.alfresco.service.cmr.model.FileFolderService.listFolders(org.alfresco.service.cmr.repository.NodeRef)] with attributes [[ACL_NODE.0.sys:base.ReadChildren, AFTER_ACL_NODE.sys:base.Read]]
- Adding secure method [public abstract org.alfresco.service.cmr.repository.ContentReader org.alfresco.service.cmr.model.FileFolderService.getReader(org.alfresco.service.cmr.repository.NodeRef)] with attributes [[ACL_NODE.0.sys:base.ReadContent]]
- Adding secure method [public abstract void org.alfresco.service.cmr.model.FileFolderService.delete(org.alfresco.service.cmr.repository.NodeRef)] with attributes [[ACL_NODE.0.sys:base.DeleteNode]]
- Adding secure method [public abstract java.util.List org.alfresco.service.cmr.model.FileFolderService.search(org.alfresco.service.cmr.repository.NodeRef,java.lang.String,boolean,boolean,boolean)] with attributes [[ACL_NODE.0.sys:base.ReadChildren, AFTER_ACL_NODE.sys:base.Read]]
- Adding secure method [public abstract java.util.List org.alfresco.service.cmr.model.FileFolderService.search(org.alfresco.service.cmr.repository.NodeRef,java.lang.String,boolean)] with attributes [[ACL_NODE.0.sys:base.ReadChildren, AFTER_ACL_NODE.sys:base.Read]]
- Adding secure method [public abstract org.alfresco.service.cmr.model.FileInfo org.alfresco.service.cmr.model.FileFolderService.copy(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.cmr.repository.NodeRef,java.lang.String) throws org.alfresco.service.cmr.model.FileExistsException,org.alfresco.service.cmr.model.FileNotFoundException] with attributes [[ACL_NODE.0.sys:base.Read, ACL_NODE.1.sys:base.CreateChildren]]
- Adding secure method [public abstract org.alfresco.service.cmr.model.FileInfo org.alfresco.service.cmr.model.FileFolderService.getFileInfo(org.alfresco.service.cmr.repository.NodeRef)] with attributes [[ACL_NODE.0.sys:base.ReadProperties]]
- Adding secure method [public abstract org.alfresco.service.cmr.model.FileInfo org.alfresco.service.cmr.model.FileFolderService.resolveNamePath(org.alfresco.service.cmr.repository.NodeRef,java.util.List) throws org.alfresco.service.cmr.model.FileNotFoundException] with attributes [[AFTER_ACL_NODE.sys:base.ReadProperties]]
- Validated configuration attributes
- Registered class policy {http://www.alfresco.org}beforeCreateVersion (interface org.alfresco.repo.version.VersionServicePolicies$BeforeCreateVersionPolicy)
- Registered class policy {http://www.alfresco.org}onCreateVersion (interface org.alfresco.repo.version.VersionServicePolicies$OnCreateVersionPolicy)
- Registered class policy {http://www.alfresco.org}calculateVersionLabel (interface org.alfresco.repo.version.VersionServicePolicies$CalculateVersionLabelPolicy)
- Bound Java method[class=org.alfresco.repo.version.common.versionlabel.SerialVersionLabelPolicy, method=calculateVersionLabel] to policy {http://www.alfresco.org}calculateVersionLabel for class {http://www.alfresco.org/model/content/1.0}cmobject
- Adding secure method [public abstract java.util.List org.alfresco.service.cmr.lock.LockService.getLocks(org.alfresco.service.cmr.repository.StoreRef,org.alfresco.service.cmr.lock.LockType)] with attributes [[ACL_NODE.0.sys:base.Read]]
- Adding secure method [public abstract java.util.List org.alfresco.service.cmr.lock.LockService.getLocks(org.alfresco.service.cmr.repository.StoreRef)] with attributes [[ACL_NODE.0.sys:base.Read]]
- Adding secure method [public abstract org.alfresco.service.cmr.lock.LockStatus org.alfresco.service.cmr.lock.LockService.getLockStatus(org.alfresco.service.cmr.repository.NodeRef)] with attributes [[ACL_NODE.0.sys:base.Read]]
- Adding secure method [public abstract void org.alfresco.service.cmr.lock.LockService.checkForLock(org.alfresco.service.cmr.repository.NodeRef)] with attributes [[ACL_NODE.0.sys:base.Read]]
- Adding secure method [public abstract org.alfresco.service.cmr.lock.LockType org.alfresco.service.cmr.lock.LockService.getLockType(org.alfresco.service.cmr.repository.NodeRef)] with attributes [[ACL_NODE.0.sys:base.Read]]
- Adding secure method [public abstract void org.alfresco.service.cmr.lock.LockService.unlock(org.alfresco.service.cmr.repository.NodeRef) throws org.alfresco.service.cmr.lock.UnableToReleaseLockException] with attributes [[ACL_NODE.0.cm:lockable.Unlock]]
- Adding secure method [public abstract void org.alfresco.service.cmr.lock.LockService.unlock(org.alfresco.service.cmr.repository.NodeRef,boolean) throws org.alfresco.service.cmr.lock.UnableToReleaseLockException] with attributes [[ACL_NODE.0.cm:lockable.Unlock]]
- Adding secure method [public abstract void org.alfresco.service.cmr.lock.LockService.unlock(java.util.Collection) throws org.alfresco.service.cmr.lock.UnableToReleaseLockException] with attributes [[ACL_NODE.0.cm:lockable.Unlock]]
- Adding secure method [public abstract void org.alfresco.service.cmr.lock.LockService.lock(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.cmr.lock.LockType,int) throws org.alfresco.service.cmr.lock.UnableToAquireLockException] with attributes [[ACL_NODE.0.cm:lockable.Lock]]
- Adding secure method [public abstract void org.alfresco.service.cmr.lock.LockService.lock(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.cmr.lock.LockType,int,boolean) throws org.alfresco.service.cmr.lock.UnableToAquireLockException] with attributes [[ACL_NODE.0.cm:lockable.Lock]]
- Adding secure method [public abstract void org.alfresco.service.cmr.lock.LockService.lock(java.util.Collection,org.alfresco.service.cmr.lock.LockType,int) throws org.alfresco.service.cmr.lock.UnableToAquireLockException] with attributes [[ACL_NODE.0.cm:lockable.Lock]]
- Adding secure method [public abstract void org.alfresco.service.cmr.lock.LockService.lock(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.cmr.lock.LockType) throws org.alfresco.service.cmr.lock.UnableToAquireLockException] with attributes [[ACL_NODE.0.cm:lockable.Lock]]
- Validated configuration attributes
- Bound Java method[class=org.alfresco.repo.version.VersionableAspect, method=onAddAspect] to policy {http://www.alfresco.org}onAddAspect for class {http://www.alfresco.org/mode

jameszhou
Champ in-the-making
Champ in-the-making
You are right, David.  I updated the dir.root in custom-repository.properties, and now the sample works.

dreddy
Champ in-the-making
Champ in-the-making
Hi David,

I am having same problem. unfortunately the solution you mentioned doesn't work for me.  I want webclient and SDK client to use two seperate file stores backed by a common backing store. Usecase for this setup is that webclient and SDK client will run on two seperate machines and backing store will be a central store (database)

I confugured this using "replicatingContentStore" and implemented my own db content store exteding the AbstractContentStore. I logged into webclient and added some content which went into filestore and database. Good so far. Then I wanted to add some content using SDK client. When I do this I get "Bad Credententials" exception. see the stack trace below.

====================================
Exception in thread "main" javax.jcr.LoginException: Alfresco Repository failed to authenticate credentials: Bad credentials presented: Bad credentials presented
   at org.alfresco.jcr.repository.RepositoryImpl.login(RepositoryImpl.java:215)
   at org.alfresco.jcr.repository.RepositoryImpl.login(RepositoryImpl.java:240)
   at org.alfresco.sample.FirstJCRClient.main(FirstJCRClient.java:62)
Caused by: org.alfresco.repo.security.authentication.AuthenticationException: Bad credentials presented
   at org.alfresco.repo.security.authentication.AuthenticationComponentImpl.authenticate(AuthenticationComponentImpl.java:69)
   at org.alfresco.repo.security.authentication.AuthenticationServiceImpl.authenticate(AuthenticationServiceImpl.java:104)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
=========================================
Thanks in advance for your help.
dReddy

dreddy
Champ in-the-making
Champ in-the-making
I solved this by configuring "indexRecoveryComponent" to do executeFullRecovery so that new alfresco instances  who don't have indexes recover the indexes and then every thing works. Primary store gets the content from secondary (central DBContentStore) using ReplicatingContentStore.

Thanks
dReddy