Module Spicey.ControllerGeneration

Summary of exported operations:

enauthModName :: String   
defCtrlModName :: String   
generateControllersForEntity :: String -> [Entity] -> Entity -> [Relationship] -> CurryProg   
mainController :: String -> Entity -> [Relationship] -> [Entity] -> CFuncDecl   
newController :: String -> Entity -> [Relationship] -> [Entity] -> CFuncDecl   
createTransaction :: String -> Entity -> [Relationship] -> [Entity] -> CFuncDecl   
editController :: String -> Entity -> [Relationship] -> [Entity] -> CFuncDecl   
updateTransaction :: String -> Entity -> [Relationship] -> [Entity] -> CFuncDecl   
deleteController :: String -> Entity -> [Relationship] -> [Entity] -> CFuncDecl   
Generates controller to delete an entity after confirmation.
deleteTransaction :: String -> Entity -> [Relationship] -> [Entity] -> CFuncDecl   
Generates a transaction to delete an entity.
listController :: String -> Entity -> [Relationship] -> [Entity] -> CFuncDecl   
showController :: String -> Entity -> [Relationship] -> [Entity] -> CFuncDecl   
callEntityListController :: String -> CExpr   
manyToManyAddOrRemove :: String -> Entity -> [String] -> [Entity] -> [CFuncDecl]   
getAll :: String -> Entity -> [String] -> [Entity] -> [CFuncDecl]   
manyToManyGetRelated :: String -> Entity -> [String] -> [Entity] -> [CFuncDecl]   
manyToOneGetRelated :: String -> Entity -> [String] -> [Entity] -> [Relationship] -> [CFuncDecl]   
relationshipName :: String -> String -> [Relationship] -> (String,String)   
displayErrorFunction :: (String,String)   
entityConstructorFunction :: String -> Entity -> [Relationship] -> (String,String)   
controllerFunction :: String -> String -> String -> Int -> CTypeExpr -> [CRule] -> CFuncDecl   
getReferencedEntityName :: Domain -> String   
relatedEntityNames :: Entity -> [Relationship] -> [String]   
relationshipsForEntity :: Entity -> [Relationship] -> [Relationship]   
newSuffix :: String -> [Attribute] -> [Relationship] -> String   
isGeneratedR :: Relationship -> Bool   
relatedRelation :: String -> Relationship -> String   
relationshipsForEntityName :: String -> [Relationship] -> [Relationship]   
generateDefaultController :: String -> [Entity] -> CurryProg   
generateAuthorizations :: String -> [Entity] -> CurryProg   
getUserSessionInfoFunc :: CExpr   
checkAuthorizationFunc :: (String,String)   

Exported datatypes:


ControllerGenerator

Type synonym: ControllerGenerator = String -> Entity -> [Relationship] -> [Entity] -> CFuncDecl


Exported operations:

enauthModName :: String   

Further infos:
  • solution complete, i.e., able to compute all solutions

defCtrlModName :: String   

Further infos:
  • solution complete, i.e., able to compute all solutions

mainController :: String -> Entity -> [Relationship] -> [Entity] -> CFuncDecl   

newController :: String -> Entity -> [Relationship] -> [Entity] -> CFuncDecl   

createTransaction :: String -> Entity -> [Relationship] -> [Entity] -> CFuncDecl   

editController :: String -> Entity -> [Relationship] -> [Entity] -> CFuncDecl   

updateTransaction :: String -> Entity -> [Relationship] -> [Entity] -> CFuncDecl   

deleteController :: String -> Entity -> [Relationship] -> [Entity] -> CFuncDecl   

Generates controller to delete an entity after confirmation.

deleteTransaction :: String -> Entity -> [Relationship] -> [Entity] -> CFuncDecl   

Generates a transaction to delete an entity.

listController :: String -> Entity -> [Relationship] -> [Entity] -> CFuncDecl   

showController :: String -> Entity -> [Relationship] -> [Entity] -> CFuncDecl   

callEntityListController :: String -> CExpr   

manyToManyAddOrRemove :: String -> Entity -> [String] -> [Entity] -> [CFuncDecl]   

getAll :: String -> Entity -> [String] -> [Entity] -> [CFuncDecl]   

manyToManyGetRelated :: String -> Entity -> [String] -> [Entity] -> [CFuncDecl]   

manyToOneGetRelated :: String -> Entity -> [String] -> [Entity] -> [Relationship] -> [CFuncDecl]   

relationshipName :: String -> String -> [Relationship] -> (String,String)   

Further infos:
  • partially defined

displayErrorFunction :: (String,String)   

Further infos:
  • solution complete, i.e., able to compute all solutions

entityConstructorFunction :: String -> Entity -> [Relationship] -> (String,String)   

controllerFunction :: String -> String -> String -> Int -> CTypeExpr -> [CRule] -> CFuncDecl   

getReferencedEntityName :: Domain -> String   

relatedEntityNames :: Entity -> [Relationship] -> [String]   

newSuffix :: String -> [Attribute] -> [Relationship] -> String   

isGeneratedR :: Relationship -> Bool   

relatedRelation :: String -> Relationship -> String   

Further infos:
  • partially defined

generateDefaultController :: String -> [Entity] -> CurryProg   

Further infos:
  • partially defined

generateAuthorizations :: String -> [Entity] -> CurryProg   

checkAuthorizationFunc :: (String,String)   

Further infos:
  • solution complete, i.e., able to compute all solutions