This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"WsRestGroupSaveRequest": | |
{ | |
"wsGroupToSaves": | |
[ | |
{ | |
"createParentStemsIfNotExist":"T", | |
"wsGroup": | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Checking the user side | |
currentUser.isAdmin() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
07.09.2011 09:50:16.456 *ERROR* [pool-1-thread-5] org.apache.sling.commons.scheduler.impl.QuartzScheduler Exception during job execution of org.sakaiproject.nakamura.user.counts.CountsRefreshJob@3c19a5b0 : null java.lang.StackOverflowError | |
at com.google.common.collect.ImmutableMap$RegularImmutableMap.<init>(ImmutableMap.java:555) | |
at com.google.common.collect.ImmutableMap.copyOf(ImmutableMap.java:264) | |
at org.sakaiproject.nakamura.api.lite.authorizable.Authorizable.init(Authorizable.java:167) | |
at org.sakaiproject.nakamura.api.lite.authorizable.Authorizable.<init>(Authorizable.java:163) | |
at org.sakaiproject.nakamura.api.lite.authorizable.Group.<init>(Group.java:51) | |
at org.sakaiproject.nakamura.lite.authorizable.GroupInternal.<init>(GroupInternal.java:12) | |
at org.sakaiproject.nakamura.lite.authorizable.AuthorizableManagerImpl.findAuthorizable(AuthorizableManagerImpl.java:126) | |
at org.sakaiproject.nakamura.user.counts.GroupMembersCounter.countMembers(GroupMembersCounter.java:49) | |
at org.sakaiproject.nakamura.u |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- put this in startLevel 10 | |
<bundle> | |
<groupId>org.mongodb</groupId> | |
<artifactId>mongo-java-driver</artifactId> | |
<version>2.7.2</version> | |
</bundle> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SuppressWarnings("unchecked") | |
public MongoClient(DB mongodb, Map<String,Object> props) { | |
this.mongodb = mongodb; | |
this.props = props; | |
String user = StorageClientUtils.getSetting(props.get(MongoClientPool.PROP_MONGO_USER), null); | |
String password = StorageClientUtils.getSetting(props.get(MongoClientPool.PROP_MONGO_USER), null); | |
if (user != null && password != null && !this.mongodb.isAuthenticated()){ | |
if (!this.mongodb.authenticate(user, password.toCharArray())){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .bash_profile | |
##################################################### | |
# Terminal stuff | |
function parse_git_branch { | |
git rev-parse --git-dir &> /dev/null | |
git_status="$(git status 2> /dev/null)" | |
branch_pattern="^# On branch ([^${IFS}]*)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] Sakai Nakamura Project ............................ SUCCESS [1.964s] | |
[INFO] Sakai Nakamura :: Utilities ....................... SUCCESS [9.832s] | |
[INFO] Sakai Nakamura :: Test Utilities .................. SUCCESS [4.532s] | |
[INFO] Sakai Nakamura :: Memory Bundle ................... FAILURE [0.400s] | |
[INFO] Sakai Nakamura :: Server Extension Bundle ......... SKIPPED | |
[INFO] Sakai Nakamura :: Sling Resource Extension Bundle . SKIPPED | |
[INFO] Sakai Nakamura :: Documentation Support bundle .... SKIPPED | |
[INFO] Sakai Nakamura :: proxy service ................... SKIPPED | |
[INFO] Sakai Nakamura :: Jetty Configuration ............. SKIPPED | |
[INFO] Sakai Nakamura :: ActiveMQ Bundle ................. SKIPPED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String stompUrl = PropertiesUtil.toString(properties.get(ACTIVEMQ_STOMP_BROKER_URL), "stomp://localhost:61613"); | |
TransportConnector stompConnector = broker.addConnector(stompUrl); | |
stompConnector.setConnectUri(new URI(stompUrl)); | |
stompConnector.setName("stomp"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30.04.2012 08:07:12.722 *ERROR* [1498394677@qtp-1859958452-15] org.sakaiproject.nakamura.forcemigration [org.sakaiproject.nakamura.forcemigration.ForceMigration] Error during instantiation of the implementation object (java.lang.Error: Unresolved compilation problems: | |
The import org.sakaiproject.nakamura.api.files.FileMigrationService cannot be resolved | |
FileMigrationService cannot be resolved to a type | |
) java.lang.Error: Unresolved compilation problems: | |
The import org.sakaiproject.nakamura.api.files.FileMigrationService cannot be resolved | |
FileMigrationService cannot be resolved to a type | |
at org.sakaiproject.nakamura.forcemigration.ForceMigration.<init>(ForceMigration.java:48) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) |
OlderNewer