|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jecars.CARS_DefaultMain
public class CARS_DefaultMain
CARS_DefaultMain
| Field Summary | |
|---|---|
protected static javax.xml.parsers.DocumentBuilder |
gBuilder
|
static java.util.logging.Logger |
gLog
|
| Fields inherited from interface org.jecars.CARS_Main |
|---|
DEFAULTAUTHOR, DEFAULTNS, DEFAULTNS1, DEFAULTRIGHTS, MAINFOLDER, VERSION |
| Constructor Summary | |
|---|---|
protected |
CARS_DefaultMain()
Creates a new instance of CARS_DefaultMain |
| Method Summary | |
|---|---|
void |
addContext(CARS_ActionContext pContext)
|
javax.jcr.Node |
addGroup(java.lang.String pID,
java.lang.String pFullname)
|
javax.jcr.Node |
addGroup(java.lang.String pID,
java.lang.String pFullname,
java.lang.String pGroupNodeType)
|
static javax.jcr.Node |
addNode(javax.jcr.Node pParent,
java.lang.String pName,
java.lang.String pNodeType)
Add node and also take care of all special cases |
javax.jcr.Node |
addNode(java.lang.String pFullPath,
nl.msd.jdots.JD_Taglist pParamsTL,
java.io.InputStream pBody,
java.lang.String pBodyContentType)
Add a node to the JeCARS repository |
javax.jcr.Node |
addPermission(javax.jcr.Node pParentNode,
java.lang.String pGroupname,
java.lang.String pUsername,
java.lang.String pRights)
Add permission object |
javax.jcr.Property |
addReference(javax.jcr.Node pNode,
java.lang.String pProperty,
javax.jcr.Node pReference)
Add a node reference to a multivalued property |
javax.jcr.Node |
addUser(java.lang.String pID,
char[] pPassword)
|
javax.jcr.Node |
addUser(java.lang.String pID,
char[] pPassword,
java.lang.String pUserNodeType)
|
protected boolean |
checkAndAddMixin(javax.jcr.Node pNode,
java.lang.String pPropName)
Check if the property is a known mixin type, if so then add the mixin |
void |
destroy()
|
CARS_ActionContext |
getContext(int pNo)
|
javax.jcr.Node |
getCurrentViewNode()
|
CARS_Factory |
getFactory()
Get the store CARS_Factory |
protected javax.jcr.Node |
getGroups()
Get groups |
javax.jcr.Node |
getGroupSource(java.lang.String pGroupSource)
Get one groupsource, return the external(!) node |
javax.jcr.Node |
getGroupSources()
Get group sources |
long |
getId(javax.jcr.Node pNode)
Retrieve the jecars:Id property from the node |
static int |
getIndexParamFromTL(nl.msd.jdots.JD_Taglist pParamsTL,
java.lang.String pTag,
java.lang.String pValue)
getIndexParamFromTL |
javax.jcr.Node |
getLoginUser()
|
javax.jcr.Node |
getNode(java.lang.String pFullPath,
nl.msd.jdots.JD_Taglist pTags)
Get the full node using all possible resolving options |
static java.lang.String |
getParamFromTL(nl.msd.jdots.JD_Taglist pParamsTL,
java.lang.String pTag,
int pIndex)
getParamFromTL |
javax.jcr.Node |
getRoot()
Get the root |
javax.jcr.Session |
getSession()
|
javax.jcr.Node |
getUsers()
Get users |
javax.jcr.Node |
getUserSource(java.lang.String pUserSource)
Get one usersource, return the external(!) node |
javax.jcr.Node |
getUserSources()
Get user sources |
void |
removeContext(CARS_ActionContext pContext)
|
void |
removeNode(java.lang.String pFullPath,
nl.msd.jdots.JD_Taglist pTags)
Remove Node from the repository |
void |
setCurrentViewNode(javax.jcr.Node pNode)
|
protected void |
setFactory(CARS_Factory pFactory)
|
void |
setId(javax.jcr.Node pNode)
Set the jecars:Id property on the given node |
javax.jcr.Property |
setParamProperty(javax.jcr.Node pNode,
java.lang.String pPropName,
java.lang.String pValue)
Set a property of a node, multiple values are supported |
protected void |
setSession(javax.jcr.Session pSession)
|
protected boolean |
streamToParamTL(nl.msd.jdots.JD_Taglist pParamsTL,
java.io.InputStream pBody,
java.lang.String pBodyContentType)
Convert the body contents to paramtl (if possible) |
void |
synchronizeUserSource(java.lang.String pUserSource)
Update the users |
javax.jcr.Node |
updateNode(java.lang.String pFullPath,
nl.msd.jdots.JD_Taglist pParamsTL,
java.io.InputStream pBody,
java.lang.String pBodyContentType)
Update node to the JeCARS repository |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.util.logging.Logger gLog
protected static javax.xml.parsers.DocumentBuilder gBuilder
| Constructor Detail |
|---|
protected CARS_DefaultMain()
| Method Detail |
|---|
public static javax.jcr.Node addNode(javax.jcr.Node pParent,
java.lang.String pName,
java.lang.String pNodeType)
throws java.lang.Exception
pParent - pName - pNodeType -
java.lang.Exception
public javax.jcr.Node addPermission(javax.jcr.Node pParentNode,
java.lang.String pGroupname,
java.lang.String pUsername,
java.lang.String pRights)
throws java.lang.Exception
addPermission in interface CARS_MainpParentNode - the node under which the permission node is addedpGroupname - the group name (without the path), may be nullpUsername - the user name (without the path), may be nullpRights - the rights stored in a string e.g. "read,add_node"
java.lang.Exception - when an exception occurspublic void setCurrentViewNode(javax.jcr.Node pNode)
setCurrentViewNode in interface CARS_Mainpublic javax.jcr.Node getCurrentViewNode()
getCurrentViewNode in interface CARS_Mainpublic void addContext(CARS_ActionContext pContext)
addContext in interface CARS_Mainpublic CARS_ActionContext getContext(int pNo)
getContext in interface CARS_Mainpublic void removeContext(CARS_ActionContext pContext)
removeContext in interface CARS_Mainpublic javax.jcr.Session getSession()
getSession in interface CARS_Mainprotected void setSession(javax.jcr.Session pSession)
public javax.jcr.Node getLoginUser()
getLoginUser in interface CARS_Mainprotected void setFactory(CARS_Factory pFactory)
public CARS_Factory getFactory()
getFactory in interface CARS_Main
public javax.jcr.Property addReference(javax.jcr.Node pNode,
java.lang.String pProperty,
javax.jcr.Node pReference)
throws java.lang.Exception
addReference in interface CARS_MainpNode - Property of this nodepProperty - The name of the propertypReference - The node reference
java.lang.Exception - when an error occurs
public javax.jcr.Node addUser(java.lang.String pID,
char[] pPassword)
throws java.lang.Exception
addUser in interface CARS_Mainjava.lang.Exception
public javax.jcr.Node addUser(java.lang.String pID,
char[] pPassword,
java.lang.String pUserNodeType)
throws java.lang.Exception
addUser in interface CARS_Mainjava.lang.Exception
public javax.jcr.Node addGroup(java.lang.String pID,
java.lang.String pFullname)
throws java.lang.Exception
addGroup in interface CARS_Mainjava.lang.Exception
public javax.jcr.Node addGroup(java.lang.String pID,
java.lang.String pFullname,
java.lang.String pGroupNodeType)
throws java.lang.Exception
addGroup in interface CARS_Mainjava.lang.Exceptionpublic void destroy()
destroy in interface CARS_Main
protected javax.jcr.Node getGroups()
throws java.lang.Exception
java.lang.Exception
public javax.jcr.Node getRoot()
throws java.lang.Exception
getRoot in interface CARS_Mainjava.lang.Exception
protected boolean checkAndAddMixin(javax.jcr.Node pNode,
java.lang.String pPropName)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public javax.jcr.Property setParamProperty(javax.jcr.Node pNode,
java.lang.String pPropName,
java.lang.String pValue)
throws java.lang.Exception
setParamProperty in interface CARS_MainpNode - the node of which a property will be setpPropName - property namepValue - the value,
for multi value;
+.... (to add a value)
-.... (to remove a value)
java.lang.Exception - when an exception occurs.
public void setId(javax.jcr.Node pNode)
throws java.lang.Exception
setId in interface CARS_MainpNode - The node
java.lang.Exception - when an exception occurs
public long getId(javax.jcr.Node pNode)
throws java.lang.Exception
getId in interface CARS_MainpNode - The node
java.lang.Exception
public static int getIndexParamFromTL(nl.msd.jdots.JD_Taglist pParamsTL,
java.lang.String pTag,
java.lang.String pValue)
throws java.lang.Exception
pParamsTL - pTag - pValue -
java.lang.Exception
public static java.lang.String getParamFromTL(nl.msd.jdots.JD_Taglist pParamsTL,
java.lang.String pTag,
int pIndex)
throws java.lang.Exception
pParamsTL - pTag - pIndex -
java.lang.Exception
protected boolean streamToParamTL(nl.msd.jdots.JD_Taglist pParamsTL,
java.io.InputStream pBody,
java.lang.String pBodyContentType)
throws java.lang.Exception
pParamsTL - taglist in which the resulting paramaters are storedpBody - the inputstreampBodyContentType - the mime type
java.lang.Exception - when an exception occurs
public javax.jcr.Node addNode(java.lang.String pFullPath,
nl.msd.jdots.JD_Taglist pParamsTL,
java.io.InputStream pBody,
java.lang.String pBodyContentType)
throws java.lang.Exception
addNode in interface CARS_MainpFullPath - pParamsTL - pBody - pBodyContentType -
java.lang.Exception
public javax.jcr.Node updateNode(java.lang.String pFullPath,
nl.msd.jdots.JD_Taglist pParamsTL,
java.io.InputStream pBody,
java.lang.String pBodyContentType)
throws java.lang.Exception
updateNode in interface CARS_Mainjava.lang.Exception
public javax.jcr.Node getNode(java.lang.String pFullPath,
nl.msd.jdots.JD_Taglist pTags)
throws java.lang.Exception
getNode in interface CARS_MainpFullPath - the path to be resolvedpTags - taglist for storing parameters;
"InterfaceClass" = ..
"CARS_Interface" = ..
java.lang.Exception
public void removeNode(java.lang.String pFullPath,
nl.msd.jdots.JD_Taglist pTags)
throws java.lang.Exception
removeNode in interface CARS_MainpFullPath - the full path of the to be removed nodepTags -
java.lang.Exception - when an exception occurs
public javax.jcr.Node getUsers()
throws java.lang.Exception
getUsers in interface CARS_Mainjava.lang.Exception
public javax.jcr.Node getUserSources()
throws java.lang.Exception
getUserSources in interface CARS_Mainjava.lang.Exception
public javax.jcr.Node getUserSource(java.lang.String pUserSource)
throws java.lang.Exception
getUserSource in interface CARS_Mainjava.lang.Exception
public void synchronizeUserSource(java.lang.String pUserSource)
throws java.lang.Exception
synchronizeUserSource in interface CARS_Mainjava.lang.Exception
public javax.jcr.Node getGroupSources()
throws java.lang.Exception
java.lang.Exception
public javax.jcr.Node getGroupSource(java.lang.String pGroupSource)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||