Liferay 6.1.2-ce-ga3

com.liferay.portal.convert
Class ConvertPermissionAlgorithm

java.lang.Object
  extended by com.liferay.portal.convert.ConvertProcess
      extended by 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.


Constructor Summary
ConvertPermissionAlgorithm()
           
 
Method Summary
protected  String convertGuestUsers(String legacyFile)
           
protected  void convertPermissions(int type, String legacyName, String[] primKeys, String newName, Object[][] newColumns)
           
protected  void convertResourceBlock()
           
protected  void convertResourcePermission(Writer writer, String name)
           
protected  void convertRoles(String legacyFile, int type, String newName, Object[][] newColumns)
           
protected  void convertToBitwise()
           
protected  void convertToRBAC()
           
protected  void doConvert()
           
 String getDescription()
           
 String[] getParameterNames()
           
protected  void initialize()
           
protected  void initializeRBAC()
           
 boolean isEnabled()
           
protected  boolean isGenerateCustomRoles()
           
 
Methods inherited from class com.liferay.portal.convert.ConvertProcess
convert, getParameterDescription, getParameterValues, getPath, setParameterValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertPermissionAlgorithm

public ConvertPermissionAlgorithm()
Method Detail

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()

Liferay 6.1.2-ce-ga3