Skip to content

Instantly share code, notes, and snippets.

+sealed trait MyList[+A]
+case class Cons[A](head: A, tail: MyList[A]) extends MyList[A]
+case object Nil extends MyList[Nothing]
// Import the required classes
import org.apache.poi.xssf.usermodel.XSSFWorkbook
import java.io.FileOutputStream
object XSSFMain extends App {
// Automatically convert Java collections to Scala equivalents
import scala.collection.JavaConversions._
/**
* Create an ElasticSearch filter that will filter to only users that are in the current user's
* group network. Generally speaking, it could be said that it "filters to resources whose direct
* memberships intersect with the direct and indirect memberships of the current user." While this
* method does not specifically filter to only user resources, it is implied as only users have
* memberships search documents associated to them.
*
* @param {String} userId The id of the user whose user network to create a filter for
* @param {String[]} indirectGroupIds The list of group ids to which the user has indirect access (i.e., is a member of by virtue of direct membership in another group)
[info] /private/tmp/case-config/modules/core/src/test/scala/com/pellucid/caseconfig/TypelevelConfig2CaseConfigSpec.scala:188: extractors.this.CTypeExtractor.optionExtractor is not a valid implicit value for com.pellucid.caseconfig.extractors.CTypeExtractor[Option[com.pellucid.caseconfig.AllSimpleTypesRequired]] because:
[info] hasMatchingSymbol reported error: diverging implicit expansion for type com.pellucid.caseconfig.extractors.CTypeExtractor[List[com.pellucid.caseconfig.Bytes]]
[info] starting with macro method caseClassExtractor in trait LowPriorityExtractors0
[info] config.getConfig("allWithCase0").get[AllSimpleTypesWithCaseOptional] should be(allWithCase0Optional)
[error] .../case-config/modules/core/src/test/scala/com/pellucid/caseconfig/TypelevelConfig2CaseConfigSpec.scala:182: class List is not a simple type or a case class
[error] config.getConfig("allWithCase0").get[AllSimpleTypesWithCaseRequired] should be(allWithCase0Required)
[error] ^
[error] one error found
[error] (core/test:compile) Compilation failed
[error] Total time: 2 s, completed 1-Nov-2014 10:32:00 AM
object Main {
trait ~>[F[_], G[_]] {
def apply[T](t: F[T]): G[T]
}
// ERROR: Compiler doesn't think this implements `def apply[T](t: F[T]): G[T]` :(
class Poly1[F[_], G[_]] extends ~> {
query: {
"query": {
"filtered": {
"query": {
"bool": {
"should": [
{
"multi_match": {
"fields": [
"q_high^2.0",
```
$ cqlsh -3
use oae;Connected to test-1.2.15 at localhost:9160.
[cqlsh 3.1.7 | Cassandra 1.2.15-SNAPSHOT | CQL spec 3.0.0 | Thrift protocol 19.36.2]
Use HELP for help.
cqlsh> use oae;
cqlsh:oae> SELECT "userId" FROM "AuthenticationLoginId" WHERE "loginId" = 'oae:twitter:meestaveesa';
Request did not complete within rpc_timeout.
cqlsh:oae> SELECT "userId" FROM "AuthenticationLoginId" WHERE "loginId" = 'blah';
cqlsh:oae> SELECT * FROM "AuthenticationLoginId" LIMIT 5;
"resource": {
"_source": {
"enabled": false
},
"properties": {
"id": {
"type": "string",
"store": "yes",
"index": "no"
},

New Skinning Values

OAE 6.0 introduces new skinning values that we recommend to be configured for each tenant in the Skinning section of the Admin UI:

  • Small institutional logo: The institution logo to be used on mobile devices
  • Authentication buttons: The skinnable values for the Shibboleth and CAS authentication buttons