Coverage Summary for Class: ResourceClassInternalInfo (com.acciente.oacc.sql.internal)

Class Class, % Method, % Line, %
ResourceClassInternalInfo 100% (1/ 1) 100% (5/ 5) 100% (10/ 10)


1 /* 2  * Copyright 2009-2018, Acciente LLC 3  * 4  * Acciente LLC licenses this file to you under the 5  * Apache License, Version 2.0 (the "License"); you 6  * may not use this file except in compliance with the 7  * License. You may obtain a copy of the License at 8  * 9  * http://www.apache.org/licenses/LICENSE-2.0 10  * 11  * Unless required by applicable law or agreed to in 12  * writing, software distributed under the License is 13  * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 14  * OR CONDITIONS OF ANY KIND, either express or implied. 15  * See the License for the specific language governing 16  * permissions and limitations under the License. 17  */ 18 package com.acciente.oacc.sql.internal; 19  20 import com.acciente.oacc.sql.internal.persister.id.Id; 21 import com.acciente.oacc.sql.internal.persister.id.ResourceClassId; 22  23 public class ResourceClassInternalInfo { 24  private final long resourceClassId; 25  private final String resourceClassName; 26  private final boolean authenticatable; 27  private final boolean unauthenticatedCreateAllowed; 28  29  public ResourceClassInternalInfo(Id<ResourceClassId> resourceClassId, 30  String resourceClassName, 31  boolean authenticatable, 32  boolean unauthenticatedCreateAllowed) { 33  this.resourceClassId = resourceClassId.getValue(); 34  this.resourceClassName = resourceClassName; 35  this.authenticatable = authenticatable; 36  this.unauthenticatedCreateAllowed = unauthenticatedCreateAllowed; 37  } 38  39  public long getResourceClassId() { 40  return resourceClassId; 41  } 42  43  public String getResourceClassName() { 44  return resourceClassName; 45  } 46  47  public boolean isAuthenticatable() { 48  return authenticatable; 49  } 50  51  public boolean isUnauthenticatedCreateAllowed() { 52  return unauthenticatedCreateAllowed; 53  } 54 }