Class ArmMigrator
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.migration.auth.ArmMigrator
-
public class ArmMigrator extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected StringBuilderadditionsprotected static StringARM_ADMINprotected static StringARM_CURATORprotected static StringARM_CUSTOMprotected static StringARM_EDITORprotected static StringARM_PUBLICprotected static StringARM_SELF_EDITORprotected static List<String>armOperationsprotected static StringDISPLAYprotected static List<AccessObjectType>entityTypesprotected static StringPUBLISHprotected StringBuilderremovalsprotected static StringUPDATE
-
Constructor Summary
Constructors Constructor Description ArmMigrator(RDFService contentRdfService, RDFService configurationRdfService, org.apache.jena.ontology.OntModel userAccountsModel)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcollectAdditions(Map<AccessObjectType,Set<String>> entityTypeMap)static StringgetArmPermissionSubject(String operation, String role)protected Map<AccessObjectType,Set<String>>getEntityMap()protected StringBuildergetStatementsToRemove()booleanisArmConfiguation()voidmigrateConfiguration()
-
-
-
Field Detail
-
DISPLAY
protected static String DISPLAY
-
UPDATE
protected static String UPDATE
-
PUBLISH
protected static String PUBLISH
-
ARM_ADMIN
protected static final String ARM_ADMIN
- See Also:
- Constant Field Values
-
ARM_CURATOR
protected static final String ARM_CURATOR
- See Also:
- Constant Field Values
-
ARM_EDITOR
protected static final String ARM_EDITOR
- See Also:
- Constant Field Values
-
ARM_SELF_EDITOR
protected static final String ARM_SELF_EDITOR
- See Also:
- Constant Field Values
-
ARM_PUBLIC
protected static final String ARM_PUBLIC
- See Also:
- Constant Field Values
-
ARM_CUSTOM
protected static final String ARM_CUSTOM
- See Also:
- Constant Field Values
-
removals
protected StringBuilder removals
-
additions
protected StringBuilder additions
-
entityTypes
protected static final List<AccessObjectType> entityTypes
-
-
Constructor Detail
-
ArmMigrator
public ArmMigrator(RDFService contentRdfService, RDFService configurationRdfService, org.apache.jena.ontology.OntModel userAccountsModel)
-
-
Method Detail
-
getArmPermissionSubject
public static String getArmPermissionSubject(String operation, String role)
-
migrateConfiguration
public void migrateConfiguration()
-
getStatementsToRemove
protected StringBuilder getStatementsToRemove()
-
collectAdditions
protected void collectAdditions(Map<AccessObjectType,Set<String>> entityTypeMap)
-
getEntityMap
protected Map<AccessObjectType,Set<String>> getEntityMap()
-
isArmConfiguation
public boolean isArmConfiguation()
-
-