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