Package com.axemble.vdp.security.helper
Class SecurableRightList
java.lang.Object
com.axemble.vdp.security.helper.SecurableRightList
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
protected static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(TrusteeObject trusteeObject, RightConst rightValue) static void
add
(Connection con, SecurableObject securableObject, TrusteeObject trustee, RightConst right) static void
add
(Connection con, SecurableObject securableObject, Collection trustees, RightConst right) void
add
(Collection trustees, RightConst rightValue) protected static boolean
bit
(long value, long mask) void
ceil
(TrusteeObject trusteeObject, RightConst rightValue) void
ceil
(Collection trustees, RightConst rightValue) boolean
check
(RightConst right, TrusteeObject trustee) boolean
check
(RightConst right, Collection trusteeObjects) static boolean
check
(Connection con, SecurableObject securableObject, RightConst right, Collection trusteeObjects) 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) copy()
void
delete
(int type) void
delete
(int rightType, TrusteeObject trusteeObject) void
delete
(RightConst rightValue) void
delete
(TrusteeObject trusteeObject) void
delete
(TrusteeObject trustee, RightConst rightValue) static void
delete
(Connection con, SecurableObject securableObject, boolean expireCache) static void
delete
(Connection con, SecurableObject securableObject, TrusteeObject trustee, RightConst right) static void
delete
(Connection con, SecurableObject securableObject, Collection trustees, RightConst right) static void
delete
(Connection con, TrusteeObject trustee) void
delete
(Collection trustees, RightConst rightValue) void
boolean
equals
(SecurableRightList other) boolean
static String
getJoinFilterOnRightLevel
(Connection con, int securableType, String trusteeTableAlias, String securableColId, Collection trustees, RightConst right, String bypassTest, String filterTest) int
getRightByTrustee
(TrusteeObject trustee) getRightValue
(int type, TrusteeObject trusteeObject) getTrusteeByValue
(RightConst rightValue, int trusteeTypeFilter) getTrusteeRightByValue
(RightConst rightValue) 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
boolean
iterator()
iterator
(int type) static SecurableRightList
load
(Connection con, SecurableObject securableObject, boolean withDisplayName) static SecurableRightList
loadFiltred
(Connection con, SecurableObject securableObject, TrusteeObject trustee, int rightType) static SecurableRightList
loadFiltred
(Connection con, SecurableObject securableObject, Collection trustees, 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) toString()
-
Field Details
-
securableObject
-
typeArray
-
partial
protected boolean partial
-
-
Constructor Details
-
SecurableRightList
-
-
Method Details
-
copy
-
isPartial
public boolean isPartial() -
equals
-
equals
-
isModified
public boolean isModified() -
getTypedMap
-
getTrusteeRightMap
-
reset
public void reset() -
size
public int size() -
iterator
-
size
public int size(int type) -
iterator
-
getRightGroupedByTrustee
-
getRightGroupedByValue
-
getTrusteeRightByValue
-
getRightByTrustee
-
getTrusteeByValue
-
getValue
-
getRightValue
-
loadRightValue
-
delete
-
delete
-
add
-
add
-
set
-
ceil
-
ceil
-
rightEquals
-
isFlag
-
isGOET
- Returns:
- is greater or equal to
-
isLOET
- Returns:
- is less or equal to
-
delete
-
delete
-
delete
-
delete
public void delete(int type) -
deleteAll
public void deleteAll() -
getSecurableObject
-
convSecurableObjectFromVersion2005
protected static SecurableObject convSecurableObjectFromVersion2005(String object_id, String object_classInfo) -
convTrusteeFromVersion2005
-
bit
protected static boolean bit(long value, long mask) -
check
-
check
-
check
public static boolean check(Connection con, SecurableObject securableObject, RightConst right, Collection trusteeObjects) throws SQLException - Throws:
SQLException
-
load
public static SecurableRightList load(Connection con, SecurableObject securableObject, boolean withDisplayName) throws SQLException - Throws:
SQLException
-
getJoinFilterOnRightLevel
public static String getJoinFilterOnRightLevel(Connection con, int securableType, String trusteeTableAlias, String securableColId, Collection trustees, RightConst right, String bypassTest, String filterTest) throws SQLException - Throws:
SQLException
-
getOwnerCount
public int getOwnerCount() -
save
- Throws:
SQLException
-
sqlInsertTrusteeRight
protected static void sqlInsertTrusteeRight(Connection con, SecurableObject securableObject, Collection trusteeRights, SecurableRightList.ExpireState expireState) throws SQLException - Throws:
SQLException
-
sqlUpdateTrusteeRight
protected static void sqlUpdateTrusteeRight(Connection con, SecurableObject securableObject, Collection trusteeRights) throws SQLException - Throws:
SQLException
-
sqlDeleteTrusteeRight
protected static void sqlDeleteTrusteeRight(Connection con, SecurableObject securableObject, Collection trusteeRights, SecurableRightList.ExpireState expireState) throws SQLException - Throws:
SQLException
-
loadFiltred
public static SecurableRightList loadFiltred(Connection con, SecurableObject securableObject, TrusteeObject trustee, int rightType) throws SQLException - Throws:
SQLException
-
loadFiltred
public static SecurableRightList loadFiltred(Connection con, SecurableObject securableObject, Collection trustees, int rightType) throws SQLException - Throws:
SQLException
-
add
public static void add(Connection con, SecurableObject securableObject, TrusteeObject trustee, RightConst right) throws SQLException - Throws:
SQLException
-
add
public static void add(Connection con, SecurableObject securableObject, Collection trustees, RightConst right) throws SQLException - Throws:
SQLException
-
delete
public static void delete(Connection con, SecurableObject securableObject, TrusteeObject trustee, RightConst right) throws SQLException - Throws:
SQLException
-
delete
public static void delete(Connection con, SecurableObject securableObject, Collection trustees, RightConst right) throws SQLException - Throws:
SQLException
-
delete
public static void delete(Connection con, SecurableObject securableObject, boolean expireCache) throws SQLException - Throws:
SQLException
-
delete
- Throws:
SQLException
-
sysadminUser
- Throws:
SQLException
-
toString
-