• Add ACL_ROLES property to UserBean

    By Lance Spellman 1 decade ago

    Currently the userBean has the following properties:

    String displayName;
    String abbreviatedName;
    String canonicalName;
    String effectiveUserName;

    int DBACL_CREATE_DOCS;
    int DBACL_DELETE_DOCS;
    int DBACL_CREATE_PRIV_AGENTS;
    int DBACL_CREATE_PRIV_FOLDERS_VIEWS;
    int DBACL_CREATE_SHARED_FOLDERS_VIEWS;
    int DBACL_CREATE_SCRIPT_AGENTS;
    int DBACL_READ_PUBLIC_DOCS;
    int DBACL_WRITE_PUBLIC_DOCS;
    int DBACL_REPLICATE_COPY_DOCS;
     

    I'd like to see an array of the ACL_ROLES that have been assigned to the user, something like:

    String[] acl_roles;

    • Low priority since context.getUser().getRoles() exists

      By Lance Spellman 1 decade ago

      Given the availability of context.getUser().getRoles() to return that information, this request would be a low priority.

      • userBean now supports the accessRoles property...

        By Tony McGuckin 1 decade ago

        Hi Lance,

        The userBean now supports a property named accessRoles that will return a string array of any roles that user is in.

        The full list of properties now supported by the userBean is as follows (any other ideas you have here Lance, just shout):


            public static final String FIELD_COMMONNAME        = "commonName";
            public static final String FIELD_DISTINGUISHEDNAME    = "distinguishedName";
            public static final String FIELD_ABBREVIATEDNAME    = "abbreviatedName";
            public static final String FIELD_CANONICALNAME        = "canonicalName";
            public static final String FIELD_EFFECTIVEUSERNAME    = "effectiveUserName";

            public static final String FIELD_DBACL_CREATE_DOCS = "canCreateDocs";
            public static final String FIELD_DBACL_DELETE_DOCS = "canDeleteDocs";
            public static final String FIELD_DBACL_CREATE_PRIV_AGENTS = "canCreatePrivAgents";
            public static final String FIELD_DBACL_CREATE_PRIV_FOLDERS_VIEWS = "canCreatePrivFoldersViews";
            public static final String FIELD_DBACL_CREATE_SHARED_FOLDERS_VIEWS = "canCreateSharedFoldersViews";
            public static final String FIELD_DBACL_CREATE_SCRIPT_AGENTS = "canCreateScriptAgents";
            public static final String FIELD_DBACL_READ_PUBLIC_DOCS = "canReadPublicDocs";
            public static final String FIELD_DBACL_WRITE_PUBLIC_DOCS = "canWritePublicDocs";
            public static final String FIELD_DBACL_REPLICATE_COPY_DOCS = "canReplicateCopyDocs";
            
            public static final String FIELD_DBACL_ACCESS_LEVEL = "accessLevel";
            public static final String FIELD_DBACL_ACCESS_LEVEL_AS_STRING = "accessLevelAsString";
            
            public static final String FIELD_DBACL_ACCESS_ROLES = "accessRoles";

         

        Kind regards,

        Tony