|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.molgenis.util.AbstractEntity
org.molgenis.omx.auth.MolgenisPermission
@Entity public class MolgenisPermission
MolgenisPermission: .
| Field Summary | |
|---|---|
static String |
ENTITY
|
static String |
ENTITY_CLASSNAME
|
static String |
ID
|
static String |
IDENTIFIER
|
static String |
NAME
|
static String |
PERMISSION
|
static String |
ROLE_
|
static String |
ROLE__NAME
|
| Constructor Summary | |
|---|---|
MolgenisPermission()
|
|
MolgenisPermission(MolgenisPermission copyMe)
copy constructor |
|
| Method Summary | |
|---|---|
MolgenisPermission |
create(Tuple tuple)
|
boolean |
equals(Object obj)
|
static List<? extends MolgenisPermission> |
find(Database db,
QueryRule... rules)
Shorthand for db.find(MolgenisPermission.class, org.molgenis.framework.db.QueryRule ... |
static MolgenisPermission |
findById(Database db,
Integer id)
|
static MolgenisPermission |
findByIdentifier(Database db,
String identifier)
|
static MolgenisPermission |
findByRoleEntityPermission(Database db,
Integer role_,
Integer entity,
String permission)
|
Object |
get(String name)
Generic getter. |
String |
getEntity_ClassName()
Get a pretty label className for cross reference Entity to MolgenisEntity.Id. |
Integer |
getEntity_Id()
|
MolgenisEntity |
getEntity()
Get the entity. |
MolgenisEntity |
getEntity(Database db)
Deprecated. |
Vector<String> |
getFields()
|
Vector<String> |
getFields(boolean skipAutoIds)
Get the names of all public properties of MolgenisPermission. |
String |
getFields(String sep)
Deprecated. |
Integer |
getId()
Get the automatically generated internal id, only for internal use.. |
String |
getIdentifier()
Get the user supplied or automatically assigned (using a decorator) unique and short identifier, e.g. |
String |
getIdentifier(Database db)
Deprecated. |
String |
getIdField()
|
Object |
getIdValue()
|
List<String> |
getLabelFields()
|
String |
getName()
Get the human readible name, not necessary unique.. |
String |
getName(Database db)
Deprecated. |
String |
getPermission()
Get the permission. |
String |
getPermission(Database db)
Deprecated. |
String |
getPermissionLabel()
Get tha label for enum Permission. |
List<ValueLabel> |
getPermissionOptions()
Permission is enum. |
Integer |
getRole_Id()
|
String |
getRole_Name()
Get a pretty label Name for cross reference Role to MolgenisRole.Id. |
MolgenisRole |
getRole()
Get the role_. |
MolgenisRole |
getRole(Database db)
Deprecated. |
String |
getValues(String sep)
Deprecated. |
String |
getXrefIdFieldName(String fieldName)
|
int |
hashCode()
|
static Query<? extends MolgenisPermission> |
query(Database db)
Shorthand for db.query(MolgenisPermission.class). |
void |
set(Tuple tuple,
boolean strict)
|
void |
setEntity_ClassName(String entity_className)
Set a pretty label for cross reference Entity to MolgenisEntity.Id. |
void |
setEntity_Id(Integer entity_id)
Set foreign key for field entity. |
void |
setEntity(Integer entity_id)
|
void |
setEntity(MolgenisEntity entity)
Set the entity. |
void |
setId(Integer id)
Set the automatically generated internal id, only for internal use.. |
void |
setIdentifier(String identifier)
Set the user supplied or automatically assigned (using a decorator) unique and short identifier, e.g. |
void |
setName(String name)
Set the human readible name, not necessary unique.. |
void |
setPermission(String permission)
Set the permission. |
void |
setRole_Id(Integer role__id)
Set foreign key for field role_. |
void |
setRole_Name(String role__Name)
Set a pretty label for cross reference Role to MolgenisRole.Id. |
void |
setRole(Integer role__id)
|
void |
setRole(MolgenisRole role_)
Set the role_. |
String |
toString()
|
String |
toString(boolean verbose)
|
void |
validate()
|
| Methods inherited from class org.molgenis.util.AbstractEntity |
|---|
get__Type, get__TypeLabel, get__TypeOptions, getLabelValue, getValues, isObjectRepresentation, isReadonly, set__Type, set, set, setReadonly, setValuesFromString, string2date |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.molgenis.util.Entity |
|---|
getLabelValue, getValues, isReadonly, set, set, setReadonly |
| Field Detail |
|---|
public static final String ID
public static final String IDENTIFIER
public static final String NAME
public static final String ROLE_
public static final String ROLE__NAME
public static final String ENTITY
public static final String ENTITY_CLASSNAME
public static final String PERMISSION
| Constructor Detail |
|---|
public MolgenisPermission()
public MolgenisPermission(MolgenisPermission copyMe)
throws Exception
Exception| Method Detail |
|---|
public static Query<? extends MolgenisPermission> query(Database db)
public static List<? extends MolgenisPermission> find(Database db,
QueryRule... rules)
throws DatabaseException
DatabaseException
public static MolgenisPermission findById(Database db,
Integer id)
throws DatabaseException
DatabaseException
public static MolgenisPermission findByIdentifier(Database db,
String identifier)
throws DatabaseException
DatabaseException
public static MolgenisPermission findByRoleEntityPermission(Database db,
Integer role_,
Integer entity,
String permission)
throws DatabaseException
DatabaseExceptionpublic Integer getId()
getId in interface Autoidpublic void setId(Integer id)
setId in interface Autoidid - public String getIdentifier()
getIdentifier in interface Identifiable@Deprecated public String getIdentifier(Database db)
public void setIdentifier(String identifier)
setIdentifier in interface Identifiableidentifier - public String getName()
getName in interface Identifiable@Deprecated public String getName(Database db)
public void setName(String name)
setName in interface Identifiablename - public MolgenisRole getRole()
@Deprecated public MolgenisRole getRole(Database db)
public void setRole(MolgenisRole role_)
role_ - public void setRole_Id(Integer role__id)
public void setRole(Integer role__id)
public Integer getRole_Id()
public String getRole_Name()
public void setRole_Name(String role__Name)
public MolgenisEntity getEntity()
@Deprecated public MolgenisEntity getEntity(Database db)
public void setEntity(MolgenisEntity entity)
entity - public void setEntity_Id(Integer entity_id)
public void setEntity(Integer entity_id)
public Integer getEntity_Id()
public String getEntity_ClassName()
public void setEntity_ClassName(String entity_className)
public String getPermission()
@Deprecated public String getPermission(Database db)
public void setPermission(String permission)
permission - public String getPermissionLabel()
public List<ValueLabel> getPermissionOptions()
public Object get(String name)
get in interface Entity
public void validate()
throws DatabaseException
validate in interface EntityDatabaseException
public void set(Tuple tuple,
boolean strict)
throws Exception
set in interface EntityExceptionpublic String toString()
toString in class Objectpublic String toString(boolean verbose)
public Vector<String> getFields(boolean skipAutoIds)
getFields in interface Entitypublic Vector<String> getFields()
getFields in interface Entitypublic String getIdField()
getIdField in interface Entitypublic List<String> getLabelFields()
getLabelFields in interface Entity@Deprecated public String getFields(String sep)
getFields in interface Entitypublic Object getIdValue()
getIdValue in interface Entitypublic String getXrefIdFieldName(String fieldName)
getXrefIdFieldName in interface Entity@Deprecated public String getValues(String sep)
getValues in interface EntitygetValues in class AbstractEntity
public MolgenisPermission create(Tuple tuple)
throws Exception
create in interface EntityExceptionpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||