com.wm.app.tn.db
Class FPOperations
java.lang.Object
com.wm.app.tn.db.FPOperations
public class FPOperations
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STATUS_INSERT
public static int STATUS_INSERT
STATUS_UPDATE
public static int STATUS_UPDATE
STATUS_ERROR
public static int STATUS_ERROR
FPOperations
public FPOperations()
queryRolePermissions
public static com.wm.data.IData[] queryRolePermissions(java.lang.String[] role,
java.lang.String[] permission)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
queryRolePermissionsByPermName
public static com.wm.data.IData[] queryRolePermissionsByPermName(java.lang.String permission)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
testPrivilege
public static boolean testPrivilege(java.lang.String permission,
java.lang.String[] roles)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
modify
public static void modify(com.wm.data.IData modify)
addFPs
public static int addFPs(java.sql.Connection conn,
com.wm.data.IData add,
java.util.Vector<java.lang.String> errors,
java.util.Vector<ActivityLogEntry> logs)
removeFPs
public static java.lang.String removeFPs(java.sql.Connection conn,
com.wm.data.IData remove,
java.util.Vector<java.lang.String> errors,
java.util.Vector<ActivityLogEntry> logs)
listFunctionalPrivileges
public static java.lang.String[] listFunctionalPrivileges()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
listFunctionalPrivileges
public static java.lang.String[] listFunctionalPrivileges(java.lang.String roleName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
checkRoleAssociation
public static boolean checkRoleAssociation(java.sql.Connection conn,
java.lang.String roleName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getPermissionName
public static java.lang.String getPermissionName(java.lang.String shortName)
isPortalLogsEnabled
public static boolean isPortalLogsEnabled()