public class SecurableRightList extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SecurableRightList.ExpireState |
protected static class |
SecurableRightList.TypedMap |
Modifier and Type | Field and Description |
---|---|
protected boolean |
partial |
protected SecurableObject |
securableObject |
protected ArrayList |
typeArray |
Constructor and Description |
---|
SecurableRightList(SecurableObject securableObject,
boolean partial) |
Modifier and Type | Method and Description |
---|---|
void |
add(Collection trustees,
RightConst rightValue) |
static void |
add(Connection con,
SecurableObject securableObject,
Collection trustees,
RightConst right) |
static void |
add(Connection con,
SecurableObject securableObject,
TrusteeObject trustee,
RightConst right) |
void |
add(TrusteeObject trusteeObject,
RightConst rightValue) |
protected static boolean |
bit(long value,
long mask) |
void |
ceil(Collection trustees,
RightConst rightValue) |
void |
ceil(TrusteeObject trusteeObject,
RightConst rightValue) |
static boolean |
check(Connection con,
SecurableObject securableObject,
RightConst right,
Collection trusteeObjects) |
boolean |
check(RightConst right,
Collection trusteeObjects) |
boolean |
check(RightConst right,
TrusteeObject trustee) |
protected static SecurableObject |
convSecurableObjectFromVersion2005(String object_id,
String object_classInfo) |
protected static TrusteeObject |
convTrusteeFromVersion2005(int joker,
String trustee_id,
String trustee_classInfo,
String userName,
String groupName,
String roleName) |
SecurableRightList |
copy() |
void |
delete(Collection trustees,
RightConst rightValue) |
static void |
delete(Connection con,
SecurableObject securableObject,
boolean expireCache) |
static void |
delete(Connection con,
SecurableObject securableObject,
Collection trustees,
RightConst right) |
static void |
delete(Connection con,
SecurableObject securableObject,
TrusteeObject trustee,
RightConst right) |
static void |
delete(Connection con,
TrusteeObject trustee) |
void |
delete(int type) |
void |
delete(int rightType,
TrusteeObject trusteeObject) |
void |
delete(RightConst rightValue) |
void |
delete(TrusteeObject trusteeObject) |
void |
delete(TrusteeObject trustee,
RightConst rightValue) |
void |
deleteAll() |
boolean |
equals(Object obj) |
boolean |
equals(SecurableRightList other) |
static String |
getJoinFilterOnRightLevel(Connection con,
int securableType,
String trusteeTableAlias,
String securableColId,
Collection trustees,
RightConst right,
String bypassTest,
String filterTest) |
int |
getOwnerCount() |
Collection |
getRightByTrustee(TrusteeObject trustee) |
Collection |
getRightGroupedByTrustee() |
TreeMap |
getRightGroupedByValue() |
RightConst |
getRightValue(int type,
TrusteeObject trusteeObject) |
SecurableObject |
getSecurableObject() |
Collection |
getTrusteeByValue(RightConst rightValue,
int trusteeTypeFilter) |
Collection |
getTrusteeRightByValue(RightConst rightValue) |
HashMap |
getTrusteeRightMap(int type,
boolean create) |
protected SecurableRightList.TypedMap |
getTypedMap(int type,
boolean create) |
int |
getValue(int type,
TrusteeObject trusteeObject) |
boolean |
isFlag(TrusteeObject trusteeObject,
RightConst right) |
boolean |
isGOET(TrusteeObject trusteeObject,
RightConst right) |
boolean |
isLOET(TrusteeObject trusteeObject,
RightConst right) |
boolean |
isModified() |
boolean |
isPartial() |
Iterator |
iterator() |
Iterator |
iterator(int type) |
static SecurableRightList |
load(Connection con,
SecurableObject securableObject,
boolean withDisplayName) |
static SecurableRightList |
loadFiltred(Connection con,
SecurableObject securableObject,
Collection trustees,
int rightType) |
static SecurableRightList |
loadFiltred(Connection con,
SecurableObject securableObject,
TrusteeObject trustee,
int rightType) |
void |
loadRightValue(TrusteeObject trusteeObject,
RightConst right) |
void |
reset() |
boolean |
rightEquals(TrusteeObject trusteeObject,
RightConst right) |
void |
save(Connection con) |
void |
set(TrusteeObject trusteeObject,
RightConst rightValue) |
int |
size() |
int |
size(int type) |
protected static void |
sqlDeleteTrusteeRight(Connection con,
SecurableObject securableObject,
Collection trusteeRights,
SecurableRightList.ExpireState expireState) |
protected static void |
sqlInsertTrusteeRight(Connection con,
SecurableObject securableObject,
Collection trusteeRights,
SecurableRightList.ExpireState expireState) |
protected static void |
sqlUpdateTrusteeRight(Connection con,
SecurableObject securableObject,
Collection trusteeRights) |
static boolean |
sysadminUser(Connection con,
TrusteeObject trustee) |
String |
toString() |
protected SecurableObject securableObject
protected ArrayList typeArray
protected boolean partial
public SecurableRightList(SecurableObject securableObject, boolean partial)
public SecurableRightList copy()
public boolean isPartial()
public boolean equals(SecurableRightList other)
public boolean isModified()
protected SecurableRightList.TypedMap getTypedMap(int type, boolean create)
public HashMap getTrusteeRightMap(int type, boolean create)
public void reset()
public int size()
public Iterator iterator()
public int size(int type)
public Iterator iterator(int type)
public Collection getRightGroupedByTrustee()
public TreeMap getRightGroupedByValue()
public Collection getTrusteeRightByValue(RightConst rightValue)
public Collection getRightByTrustee(TrusteeObject trustee)
public Collection getTrusteeByValue(RightConst rightValue, int trusteeTypeFilter)
public int getValue(int type, TrusteeObject trusteeObject)
public RightConst getRightValue(int type, TrusteeObject trusteeObject)
public void loadRightValue(TrusteeObject trusteeObject, RightConst right)
public void delete(Collection trustees, RightConst rightValue)
public void delete(TrusteeObject trustee, RightConst rightValue)
public void add(TrusteeObject trusteeObject, RightConst rightValue)
public void add(Collection trustees, RightConst rightValue)
public void set(TrusteeObject trusteeObject, RightConst rightValue)
public void ceil(TrusteeObject trusteeObject, RightConst rightValue)
public void ceil(Collection trustees, RightConst rightValue)
public boolean rightEquals(TrusteeObject trusteeObject, RightConst right)
public boolean isFlag(TrusteeObject trusteeObject, RightConst right)
public boolean isGOET(TrusteeObject trusteeObject, RightConst right)
public boolean isLOET(TrusteeObject trusteeObject, RightConst right)
public void delete(int rightType, TrusteeObject trusteeObject)
public void delete(TrusteeObject trusteeObject)
public void delete(RightConst rightValue)
public void delete(int type)
public void deleteAll()
public SecurableObject getSecurableObject()
protected static SecurableObject convSecurableObjectFromVersion2005(String object_id, String object_classInfo)
protected static TrusteeObject convTrusteeFromVersion2005(int joker, String trustee_id, String trustee_classInfo, String userName, String groupName, String roleName)
protected static boolean bit(long value, long mask)
public boolean check(RightConst right, TrusteeObject trustee)
public boolean check(RightConst right, Collection trusteeObjects)
public static boolean check(Connection con, SecurableObject securableObject, RightConst right, Collection trusteeObjects) throws SQLException
SQLException
public static SecurableRightList load(Connection con, SecurableObject securableObject, boolean withDisplayName) throws SQLException
SQLException
public static String getJoinFilterOnRightLevel(Connection con, int securableType, String trusteeTableAlias, String securableColId, Collection trustees, RightConst right, String bypassTest, String filterTest) throws SQLException
SQLException
public int getOwnerCount()
public void save(Connection con) throws SQLException
SQLException
protected static void sqlInsertTrusteeRight(Connection con, SecurableObject securableObject, Collection trusteeRights, SecurableRightList.ExpireState expireState) throws SQLException
SQLException
protected static void sqlUpdateTrusteeRight(Connection con, SecurableObject securableObject, Collection trusteeRights) throws SQLException
SQLException
protected static void sqlDeleteTrusteeRight(Connection con, SecurableObject securableObject, Collection trusteeRights, SecurableRightList.ExpireState expireState) throws SQLException
SQLException
public static SecurableRightList loadFiltred(Connection con, SecurableObject securableObject, TrusteeObject trustee, int rightType) throws SQLException
SQLException
public static SecurableRightList loadFiltred(Connection con, SecurableObject securableObject, Collection trustees, int rightType) throws SQLException
SQLException
public static void add(Connection con, SecurableObject securableObject, TrusteeObject trustee, RightConst right) throws SQLException
SQLException
public static void add(Connection con, SecurableObject securableObject, Collection trustees, RightConst right) throws SQLException
SQLException
public static void delete(Connection con, SecurableObject securableObject, TrusteeObject trustee, RightConst right) throws SQLException
SQLException
public static void delete(Connection con, SecurableObject securableObject, Collection trustees, RightConst right) throws SQLException
SQLException
public static void delete(Connection con, SecurableObject securableObject, boolean expireCache) throws SQLException
SQLException
public static void delete(Connection con, TrusteeObject trustee) throws SQLException
SQLException
public static boolean sysadminUser(Connection con, TrusteeObject trustee) throws SQLException
SQLException
Copyright © 2024 Visiativ. All rights reserved.