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
Nested ClassesModifier and TypeClassDescriptionstatic classprotected static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(TrusteeObject trusteeObject, RightConst rightValue) static voidadd(Connection con, SecurableObject securableObject, TrusteeObject trustee, RightConst right) static voidadd(Connection con, SecurableObject securableObject, Collection trustees, RightConst right) voidadd(Collection trustees, RightConst rightValue) protected static booleanbit(long value, long mask) voidceil(TrusteeObject trusteeObject, RightConst rightValue) voidceil(Collection trustees, RightConst rightValue) booleancheck(RightConst right, TrusteeObject trustee) booleancheck(RightConst right, Collection trusteeObjects) static booleancheck(Connection con, SecurableObject securableObject, RightConst right, Collection trusteeObjects) protected static SecurableObjectconvSecurableObjectFromVersion2005(String object_id, String object_classInfo) protected static TrusteeObjectconvTrusteeFromVersion2005(int joker, String trustee_id, String trustee_classInfo, String userName, String groupName, String roleName) copy()voiddelete(int type) voiddelete(int rightType, TrusteeObject trusteeObject) voiddelete(RightConst rightValue) voiddelete(TrusteeObject trusteeObject) voiddelete(TrusteeObject trustee, RightConst rightValue) static voiddelete(Connection con, SecurableObject securableObject, boolean expireCache) static voiddelete(Connection con, SecurableObject securableObject, TrusteeObject trustee, RightConst right) static voiddelete(Connection con, SecurableObject securableObject, Collection trustees, RightConst right) static voiddelete(Connection con, TrusteeObject trustee) voiddelete(Collection trustees, RightConst rightValue) voidbooleanequals(SecurableRightList other) booleanstatic StringgetJoinFilterOnRightLevel(Connection con, int securableType, String trusteeTableAlias, String securableColId, Collection trustees, RightConst right, String bypassTest, String filterTest) intgetRightByTrustee(TrusteeObject trustee) getRightValue(int type, TrusteeObject trusteeObject) getTrusteeByValue(RightConst rightValue, int trusteeTypeFilter) getTrusteeRightByValue(RightConst rightValue) getTrusteeRightMap(int type, boolean create) protected SecurableRightList.TypedMapgetTypedMap(int type, boolean create) intgetValue(int type, TrusteeObject trusteeObject) booleanisFlag(TrusteeObject trusteeObject, RightConst right) booleanisGOET(TrusteeObject trusteeObject, RightConst right) booleanisLOET(TrusteeObject trusteeObject, RightConst right) booleanbooleaniterator()iterator(int type) static SecurableRightListload(Connection con, SecurableObject securableObject, boolean withDisplayName) static SecurableRightListloadFiltred(Connection con, SecurableObject securableObject, TrusteeObject trustee, int rightType) static SecurableRightListloadFiltred(Connection con, SecurableObject securableObject, Collection trustees, int rightType) voidloadRightValue(TrusteeObject trusteeObject, RightConst right) voidreset()booleanrightEquals(TrusteeObject trusteeObject, RightConst right) voidsave(Connection con) voidset(TrusteeObject trusteeObject, RightConst rightValue) intsize()intsize(int type) protected static voidsqlDeleteTrusteeRight(Connection con, SecurableObject securableObject, Collection trusteeRights, SecurableRightList.ExpireState expireState) protected static voidsqlInsertTrusteeRight(Connection con, SecurableObject securableObject, Collection trusteeRights, SecurableRightList.ExpireState expireState) protected static voidsqlUpdateTrusteeRight(Connection con, SecurableObject securableObject, Collection trusteeRights) static booleansysadminUser(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
-