com.liferay.portal.convert
Class ConvertPermissionAlgorithm
java.lang.Object
com.liferay.portal.convert.ConvertProcess
com.liferay.portal.convert.ConvertPermissionAlgorithm
public class ConvertPermissionAlgorithm
- extends ConvertProcess
This class converts all existing permissions from the legacy permissions
algorithm to the latest algorithm.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConvertPermissionAlgorithm
public ConvertPermissionAlgorithm()
getDescription
public String getDescription()
- Specified by:
getDescription
in class ConvertProcess
getParameterNames
public String[] getParameterNames()
- Overrides:
getParameterNames
in class ConvertProcess
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in class ConvertProcess
convertGuestUsers
protected String convertGuestUsers(String legacyFile)
throws Exception
- Throws:
Exception
convertPermissions
protected void convertPermissions(int type,
String legacyName,
String[] primKeys,
String newName,
Object[][] newColumns)
throws Exception
- Throws:
Exception
convertResourceBlock
protected void convertResourceBlock()
throws Exception
- Throws:
Exception
convertResourcePermission
protected void convertResourcePermission(Writer writer,
String name)
throws Exception
- Throws:
Exception
convertRoles
protected void convertRoles(String legacyFile,
int type,
String newName,
Object[][] newColumns)
throws Exception
- Throws:
Exception
convertToBitwise
protected void convertToBitwise()
throws Exception
- Throws:
Exception
convertToRBAC
protected void convertToRBAC()
throws Exception
- Throws:
Exception
doConvert
protected void doConvert()
throws Exception
- Specified by:
doConvert
in class ConvertProcess
- Throws:
Exception
initialize
protected void initialize()
throws Exception
- Throws:
Exception
initializeRBAC
protected void initializeRBAC()
throws Exception
- Throws:
Exception
isGenerateCustomRoles
protected boolean isGenerateCustomRoles()