Examples of UserProfile


Examples of org.apache.wiki.auth.user.UserProfile

    }

    public final int doWikiStartTag() throws IOException, WikiSecurityException
    {
        UserManager manager = m_wikiContext.getEngine().getUserManager();
        UserProfile profile = manager.getUserProfile( m_wikiContext.getWikiSession() );
        String result = null;

        if ( EXISTS.equals( m_prop ) || NOT_NEW.equals( m_prop ) )
        {
            return profile.isNew() ? SKIP_BODY : EVAL_BODY_INCLUDE;
        }
        else if ( NEW.equals( m_prop ) || NOT_EXISTS.equals( m_prop ) )
        {
            return profile.isNew() ? EVAL_BODY_INCLUDE : SKIP_BODY;
        }

        else if ( CREATED.equals( m_prop ) && profile.getCreated() != null )
        {
            result = profile.getCreated().toString();
        }
        else if ( EMAIL.equals( m_prop ) )
        {
            result = profile.getEmail();
        }
        else if ( FULLNAME.equals( m_prop ) )
        {
            result = profile.getFullname();
        }
        else if ( GROUPS.equals( m_prop ) )
        {
            result = printGroups( m_wikiContext );
        }
        else if ( LOGINNAME.equals( m_prop ) )
        {
            result = profile.getLoginName();
        }
        else if ( MODIFIED.equals( m_prop ) && profile.getLastModified() != null )
        {
            result = profile.getLastModified().toString();
        }
        else if ( ROLES.equals( m_prop ) )
        {
            result = printRoles( m_wikiContext );
        }
        else if ( WIKINAME.equals( m_prop ) )
        {
            result = profile.getWikiName();

            if( result == null )
            {
                //
                //  Default back to the declared user name
View Full Code Here

Examples of org.beangle.ems.security.profile.UserProfile

    Resource resource = getResource();
    // if (resource.getEntities().isEmpty()) { return Collections.emptyList(); }
    // List<Restriction> realms = restrictionMap.get(resource.getId());
//    User user = entityDao.get(User.class, getUserId());
    // if (null == realms) {
    UserProfile profile = getUserProfile();
    List<Restriction> holders = restrictionService.getRestrictions(profile, resource);
    // restrictionMap.put(resource.getId(), realms);
    // }
    // 没有权限就报错
    if (holders.isEmpty()) { throw new AccessDeniedException(SecurityContextHolder.getContext()
View Full Code Here

Examples of org.entando.entando.aps.system.services.userprofile.model.UserProfile

    contact.setPublicContact(publicContact);
    return contact;
  }
 
  public IUserProfile createUserProfile(String id, String fullname, String email, Date birthdate, String lang) {
    UserProfile profile = (UserProfile) this._profileManager.getDefaultProfileType();
    profile.setId(id);
   
    MonoTextAttribute fullnameAttr = (MonoTextAttribute) profile.getAttribute("fullname");
    fullnameAttr.setSearcheable(true);
    fullnameAttr.setText(fullname);
   
    MonoTextAttribute emailAttr = (MonoTextAttribute) profile.getAttribute("email");
    emailAttr.setText(email);
   
    DateAttribute birthdateAttr = (DateAttribute) profile.getAttribute("birthdate");
    birthdateAttr.setDate(birthdate);
   
    MonoTextAttribute langAttr = (MonoTextAttribute) profile.getAttribute("language");
    langAttr.setText(lang);
   
    return profile;
  }
View Full Code Here

Examples of org.exoplatform.services.organization.UserProfile

   }

   public UserProfile removeUserProfile(String userName, boolean broadcast) throws Exception
   {
      UserProfile profile = getProfile(userName);

      if (profile != null)
      {
         try
         {
View Full Code Here

Examples of org.exoplatform.services.organization.UserProfile

      if (foundUser == null)
      {
         return null;
      }

      UserProfile up = getProfile(userName);

      //
      if (up == null)
      {
         up = NOT_FOUND;
View Full Code Here

Examples of org.exoplatform.services.organization.UserProfile

      if (filteredAttrs.isEmpty())
      {
         return null;
      }

      UserProfile profile = new UserProfileImpl(userName, filteredAttrs);

      return profile;

   }
View Full Code Here

Examples of org.exoplatform.services.organization.UserProfile

   @SuppressWarnings("unused")
   public void onStartRequest(final Application app, final WebuiRequestContext context) throws Exception
   {
     String user = context.getRemoteUser();
     UserProfile userProfile = null;
     if (user != null)
     {
       ExoContainer exoContainer = app.getApplicationServiceContainer();
       if (exoContainer != null)
       {
View Full Code Here

Examples of org.exoplatform.services.organization.UserProfile

        }

    }

    public UserProfile removeUserProfile(String userName, boolean broadcast) throws Exception {
        UserProfile profile = getProfile(userName);

        if (profile != null) {
            try {
                if (broadcast) {
                    preDelete(profile);
View Full Code Here

Examples of org.exoplatform.services.organization.UserProfile

        if (foundUser == null) {
            return null;
        }

        UserProfile up = getProfile(userName);

        //
        if (up == null) {
            up = NOT_FOUND;
        }
View Full Code Here

Examples of org.exoplatform.services.organization.UserProfile

        if (filteredAttrs.isEmpty()) {
            return null;
        }

        UserProfile profile = new UserProfileImpl(userName, filteredAttrs);

        return profile;

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.