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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classprotected static class
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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
- 
partialprotected boolean partial
 
- 
- 
Constructor Details- 
SecurableRightList
 
- 
- 
Method Details- 
copy
- 
isPartialpublic boolean isPartial()
- 
equals
- 
equals
- 
isModifiedpublic boolean isModified()
- 
getTypedMap
- 
getTrusteeRightMap
- 
resetpublic void reset()
- 
sizepublic int size()
- 
iterator
- 
sizepublic 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
- 
deletepublic void delete(int type) 
- 
deleteAllpublic void deleteAll()
- 
getSecurableObject
- 
convSecurableObjectFromVersion2005protected static SecurableObject convSecurableObjectFromVersion2005(String object_id, String object_classInfo) 
- 
convTrusteeFromVersion2005
- 
bitprotected static boolean bit(long value, long mask) 
- 
check
- 
check
- 
checkpublic static boolean check(Connection con, SecurableObject securableObject, RightConst right, Collection trusteeObjects) throws SQLException - Throws:
- SQLException
 
- 
loadpublic static SecurableRightList load(Connection con, SecurableObject securableObject, boolean withDisplayName) throws SQLException - Throws:
- SQLException
 
- 
getJoinFilterOnRightLevelpublic static String getJoinFilterOnRightLevel(Connection con, int securableType, String trusteeTableAlias, String securableColId, Collection trustees, RightConst right, String bypassTest, String filterTest) throws SQLException - Throws:
- SQLException
 
- 
getOwnerCountpublic int getOwnerCount()
- 
save- Throws:
- SQLException
 
- 
sqlInsertTrusteeRightprotected static void sqlInsertTrusteeRight(Connection con, SecurableObject securableObject, Collection trusteeRights, SecurableRightList.ExpireState expireState) throws SQLException - Throws:
- SQLException
 
- 
sqlUpdateTrusteeRightprotected static void sqlUpdateTrusteeRight(Connection con, SecurableObject securableObject, Collection trusteeRights) throws SQLException - Throws:
- SQLException
 
- 
sqlDeleteTrusteeRightprotected static void sqlDeleteTrusteeRight(Connection con, SecurableObject securableObject, Collection trusteeRights, SecurableRightList.ExpireState expireState) throws SQLException - Throws:
- SQLException
 
- 
loadFiltredpublic static SecurableRightList loadFiltred(Connection con, SecurableObject securableObject, TrusteeObject trustee, int rightType) throws SQLException - Throws:
- SQLException
 
- 
loadFiltredpublic static SecurableRightList loadFiltred(Connection con, SecurableObject securableObject, Collection trustees, int rightType) throws SQLException - Throws:
- SQLException
 
- 
addpublic static void add(Connection con, SecurableObject securableObject, TrusteeObject trustee, RightConst right) throws SQLException - Throws:
- SQLException
 
- 
addpublic static void add(Connection con, SecurableObject securableObject, Collection trustees, RightConst right) throws SQLException - Throws:
- SQLException
 
- 
deletepublic static void delete(Connection con, SecurableObject securableObject, TrusteeObject trustee, RightConst right) throws SQLException - Throws:
- SQLException
 
- 
deletepublic static void delete(Connection con, SecurableObject securableObject, Collection trustees, RightConst right) throws SQLException - Throws:
- SQLException
 
- 
deletepublic static void delete(Connection con, SecurableObject securableObject, boolean expireCache) throws SQLException - Throws:
- SQLException
 
- 
delete- Throws:
- SQLException
 
- 
sysadminUser- Throws:
- SQLException
 
- 
toString
 
-