2.19.2010

MURA CMS Examples of Groups and Users...

Sorry the formatting is messed up, Never posted code in blogger before I guess.


<!--- GROUPS --->

userManager.readByGroupName([groupName],[siteID],[isPubic])


<cfset myGroup = application.userManager.readByGroupName('myGroupName','mySiteId',false)/>

<cfdump label="myGroup" var="#myGroup#">


<!--- getUserId() always returns an ID, use getIsNew() to tes if it's a new group or an existing group --->

<cfset myGroupID = myGroup.getUserId()/>

<cfdump label="myGroupID" var="#myGroupID#">


<cfset myGroupAllValues = myGroup.getAllValues()/>

<cfdump label="myGroupAllValues" var="#myGroupAllValues#">


<cfset membersIterator = myGroup.getMembersIterator()/>

<cfdump label="membersIterator" var="#membersIterator#">


<!--- getting users that belong to a group --->


<cfset membersQuery = myGroup.getMembersQuery()/>

<cfdump label="membersQuery" var="#membersQuery#">


<!--- USER INFO --->

userManager.readByUsername([userName],[siteID])


<cfset myUserBean=application.userManager.readByUsername("myUserName","mySiteId")>

<cfdump label="myUserBean" var="#myUserBean#">


<cfset myUserBeanAllValues = myUserBean.getAllValues()/>

<cfdump label="myUserBeanAllValues" var="#myUserBeanAllValues#">


<!--- getUserId() always returns an ID, use getIsNew() to tes if it's a new group or an existing group --->

<cfset myUserBeanId = myUserBean.getUserID()>

<cfdump label="myUserBeanId" var="myUserBeanId">


<!--- check users memberships (getting groups user belongs too)--->

<cfset rsMemberships = application.userManager.readMemberships(myUserBeanId)>

<cfdump label="rsMemberships" var="#rsMemberships#">


2.13.2010

Email without Registratrion

I think you can use Google, but here is a simplier solution ...

10 minute mail... http://10minutemail.com/10MinuteMail/