All Downloads are FREE. Search and download functionalities are using the official Maven repository.

woko.ext.usermanagement.facets.registration.EditUserPropertiesGuest Maven / Gradle / Ivy

There is a newer version: 2.4-beta7
Show newest version
package woko.ext.usermanagement.facets.registration;

import net.sourceforge.jfacets.IFacetDescriptorManager;
import net.sourceforge.jfacets.annotations.FacetKey;
import woko.ext.usermanagement.core.DatabaseUserManager;
import woko.ext.usermanagement.core.User;
import woko.facets.builtin.WokoFacets;
import woko.facets.builtin.all.RenderPropertiesEditImpl;
import woko.persistence.ObjectStore;
import woko.users.UsernameResolutionStrategy;

import java.util.ArrayList;
import java.util.List;

@FacetKey(name= WokoFacets.renderPropertiesEdit, profileId = "all", targetObjectType = User.class)
public class EditUserPropertiesGuest<
        OsType extends ObjectStore,
        UmType extends DatabaseUserManager,
        UnsType extends UsernameResolutionStrategy,
        FdmType extends IFacetDescriptorManager
        > extends RenderPropertiesEditImpl {

    @Override
    public boolean isPartialForm() {
        return true;
    }

    @Override
    public List getPropertyNames() {
        List all = new ArrayList(super.getPropertyNames());
        all.remove("accountStatus");
        all.remove("class");
        all.remove("email");
        all.remove("id");
        all.remove("password");
        all.remove("roles");
        all.remove("username");
        return all;
    }

    @Override
    public String getFieldPrefix() {
        return "facet.user";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy