You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "hongkunan (JIRA)" <je...@portals.apache.org> on 2009/09/10 11:54:57 UTC

[jira] Created: (JS2-1062) how manage jetspeed2 add user and userattributes by extends project

how manage  jetspeed2 add user and userattributes by extends project
--------------------------------------------------------------------

                 Key: JS2-1062
                 URL: https://issues.apache.org/jira/browse/JS2-1062
             Project: Jetspeed 2
          Issue Type: Improvement
    Affects Versions: 2.2.0
         Environment: Version: jetspeed2.2.0
            Reporter: hongkunan


how can i add user and userattributes by extends project?

i can add user's id,i can't add user's other attributes,who can help me? thanks!
example:

UserManager userManager=(UserManager)Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.security.UserManager");

public boolean createUser(UserDTO user) throws ServiceException {
		if(user==null)
			throw new ServiceException("USER IS NULL...");
		boolean flag=false;
		User entity;
		try {
			entity = userManager.addUser(user.getUid());
			if(entity!=null)
				flag=userDAO.createUser(user);
		} catch (SecurityException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		return flag;
	}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Commented: (JS2-1062) how manage jetspeed2 add user and userattributes by extends project

Posted by "hongkunan (JIRA)" <je...@portals.apache.org>.
    [ https://issues.apache.org/jira/browse/JS2-1062?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753954#action_12753954 ] 

hongkunan commented on JS2-1062:
--------------------------------

no body answer my question,
your may notice me about jetspeed's 
PortalAdministrator: org.apache.jetspeed.administration.PortalAdministration
but,no body ,I debug jetspeed use about one day,now problem is resolved。

> how manage  jetspeed2 add user and userattributes by extends project
> --------------------------------------------------------------------
>
>                 Key: JS2-1062
>                 URL: https://issues.apache.org/jira/browse/JS2-1062
>             Project: Jetspeed 2
>          Issue Type: Improvement
>    Affects Versions: 2.2.0
>         Environment: Version: jetspeed2.2.0
>            Reporter: hongkunan
>
> how can i add user and userattributes by extends project?
> i can add user's id,i can't add user's other attributes,who can help me? thanks!
> example:
> UserManager userManager=(UserManager)Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.security.UserManager");
> public boolean createUser(UserDTO user) throws ServiceException {
> 		if(user==null)
> 			throw new ServiceException("USER IS NULL...");
> 		boolean flag=false;
> 		User entity;
> 		try {
> 			entity = userManager.addUser(user.getUid());
> 			if(entity!=null)
> 				flag=userDAO.createUser(user);
> 		} catch (SecurityException e) {
> 			// TODO Auto-generated catch block
> 			e.printStackTrace();
> 		}
> 		
> 		return flag;
> 	}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Closed: (JS2-1062) how manage jetspeed2 add user and userattributes by extends project

Posted by "Ate Douma (JIRA)" <je...@portals.apache.org>.
     [ https://issues.apache.org/jira/browse/JS2-1062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ate Douma closed JS2-1062.
--------------------------

    Resolution: Invalid

Hi Hongkunan,

These kind of *questions* are best not asked through our JIRA issue tracking system but using the Jetspeed user mailing list, see:

  http://portals.apache.org/jetspeed-2/mail-lists.html
 
The problem you seem to have is from what you described not really clear yet, nor if this concerns an *issue* or just a question you'd like to be answered.

Please resend your question with some additional detail and more precise description of what you are trying to achieve and problem you are encountering to the jetspeed user list .
If it then turns out to be an real issue with Jetspeed of course it should be entered as such in JIRA, and then precisely describing it.
However, if it merely needs explaining how to achieve your feature the mailing list is a much better location to deal with this.   


> how manage  jetspeed2 add user and userattributes by extends project
> --------------------------------------------------------------------
>
>                 Key: JS2-1062
>                 URL: https://issues.apache.org/jira/browse/JS2-1062
>             Project: Jetspeed 2
>          Issue Type: Improvement
>    Affects Versions: 2.2.0
>         Environment: Version: jetspeed2.2.0
>            Reporter: hongkunan
>
> how can i add user and userattributes by extends project?
> i can add user's id,i can't add user's other attributes,who can help me? thanks!
> example:
> UserManager userManager=(UserManager)Jetspeed.getComponentManager().getComponent("org.apache.jetspeed.security.UserManager");
> public boolean createUser(UserDTO user) throws ServiceException {
> 		if(user==null)
> 			throw new ServiceException("USER IS NULL...");
> 		boolean flag=false;
> 		User entity;
> 		try {
> 			entity = userManager.addUser(user.getUid());
> 			if(entity!=null)
> 				flag=userDAO.createUser(user);
> 		} catch (SecurityException e) {
> 			// TODO Auto-generated catch block
> 			e.printStackTrace();
> 		}
> 		
> 		return flag;
> 	}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org