Skip to content

Instantly share code, notes, and snippets.

View kylefernandadams's full-sized avatar
💭
Busy Earnin' https://youtu.be/BcsfftwLUf0

Kyle Adams kylefernandadams

💭
Busy Earnin' https://youtu.be/BcsfftwLUf0
View GitHub Profile
var BoxSDK = require('box-node-sdk');
var sdk = new BoxSDK({
clientID: 'o0ou0ajs5xcm8yxz3n4ygwof5kmiy5xu',
clientSecret: 'xd376c3Kwi2FbybOsFM3utNxsitXk2wY',
appAuth: {
keyID: 'n2u0aelu',
privateKey: '/Developer/Code/metadata-inheritance-services/private_key.pem',
passphrase: 'i<3box'
}
2015-06-09 05:47:49,781 ERROR [org.pentaho.platform.repository2.unified.jcr.sejcr.GuavaCachePoolPentahoJcrSessionFactory] Error obtaining session from cache. Creating one directly instead: javax.jcr.SimpleCredentials@14a54fed
java.util.concurrent.ExecutionException: javax.jcr.RepositoryException: Failed to instantiate AccessManager (org.apache.jackrabbit.core.security.DefaultAccessManager)
at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299)
at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286)
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)
at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:135)
at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2346)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2318)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)
at com.google.comm
boolean includePropertyDefintions = true;
// Get Type Children for cmis:secondary types
ItemIterable<ObjectType> secondaryTypeIterable = session.getTypeChildren("cmis:secondary", includePropertyDefintions);
System.out.println("Total Aspect Count: " + secondaryTypeIterable.getTotalNumItems());
// Loop through secondary types
for(ObjectType secondaryObjectType : secondaryTypeIterable){
// Check if type id's contain my:customAspect
if(secondaryObjectType.getId().contains("my:customAspect")){
<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
This file has been truncated, but you can view the full file.
18:45:31,025 INFO [org.alfresco.solr.component.AsyncBuildSuggestComponent] Initializing SuggestComponent
18:45:31,025 INFO [org.alfresco.solr.component.AsyncBuildSuggestComponent] Initializing SuggestComponent
18:45:31,162 INFO [org.alfresco.solr.component.AsyncBuildSuggestComponent] Loading suggester index for: shingleBasedSuggestions
18:45:31,173 INFO [org.alfresco.solr.component.AsyncBuildSuggestComponent] Loaded suggester shingleBasedSuggestions, took 10 ms
20:09:34,587 INFO [org.alfresco.solr.component.AsyncBuildSuggestComponent] Initializing SuggestComponent
20:09:34,587 INFO [org.alfresco.solr.component.AsyncBuildSuggestComponent] Initializing SuggestComponent
20:09:34,716 INFO [org.alfresco.solr.component.AsyncBuildSuggestComponent] Loading suggester index for: shingleBasedSuggestions
20:09:36,251 INFO [org.alfresco.solr.component.AsyncBuildSuggestComponent] Loaded suggester shingleBasedSuggestions, took 1535 ms
20:29:15,038 ERROR [org.alfresco.solr.tracker.AbstractTracker] Tracking failed
org
18:45:45,585 INFO [org.alfresco.repo.admin] [localhost-startStop-1] Using database URL 'jdbc:postgresql://localhost:5432/alfresco' with user 'alfresco'.
18:45:45,697 INFO [org.alfresco.repo.admin] [localhost-startStop-1] Connected to database PostgreSQL version 9.3.5
18:45:52,050 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
18:45:52,074 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
18:45:52,087 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] [localhost-startStop-1] Ignoring script patch (post-Hibernate): patch.db-V4.2-metadata-query-indexes
18:45:59,634 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor Repository Template Processor for extension ftl
18:45:59,636 INFO [org.springframework.
@kylefernandadams
kylefernandadams / SimpleDynamicAuthority
Created July 14, 2014 14:57
Alfresco - Simple Dynamic Authority
package org.alfresco.extension;
import java.util.Set;
import org.alfresco.repo.security.permissions.DynamicAuthority;
import org.alfresco.repo.security.permissions.PermissionReference;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.cmr.repository.NodeService;
import org.alfresco.service.namespace.QName;