mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
125781 rmunteanu: Merged 5.1.N (5.1.2) to 5.2.N (5.2.1) 125603 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2) 125484 slanglois: MNT-16155 Update source headers - remove old Copyrights from Java and JSP dource files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@127808 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
52 lines
2.4 KiB
Java
52 lines
2.4 KiB
Java
package org.alfresco.repo.security.sync;
|
|
|
|
import java.util.Set;
|
|
|
|
import org.alfresco.service.namespace.QName;
|
|
|
|
/**
|
|
* A <code>UserRegistrySynchronizer</code> is responsible for synchronizing Alfresco's local user (person) and group
|
|
* (authority) information with one or more external sources (most typically LDAP directories).
|
|
*
|
|
* @author dward
|
|
*/
|
|
public interface UserRegistrySynchronizer
|
|
{
|
|
/**
|
|
* Creates a person object for a successfully authenticated user who does not yet have a person object, if allowed
|
|
* to by configuration. Depending on configuration, may trigger a partial synchronize and/or create a new person
|
|
* with default settings.
|
|
*
|
|
* @param username
|
|
* the user name
|
|
* @return true, if a person is created
|
|
*/
|
|
public boolean createMissingPerson(String username);
|
|
|
|
/**
|
|
* Retrieves timestamped user and group information from configured external sources and compares it with the local
|
|
* users and groups last retrieved from the same sources. Any updates and additions made to those users and groups
|
|
* are applied to the local Alfresco copies. This process is always run in different transactions and threads.
|
|
*
|
|
* @param forceUpdate
|
|
* Should the complete set of users and groups be updated / created locally or just those known to have
|
|
* changed since the last sync? When <code>true</code> then <i>all</i> users and groups are queried from
|
|
* the user registry and updated locally. When <code>false</code> then each source is only queried for
|
|
* those users and groups modified since the most recent modification date of all the objects last
|
|
* queried from that same source.
|
|
* @param isFullSync
|
|
* Should a complete set of user and group IDs be queried from the user registries in order to determine
|
|
* deletions? This parameter is independent of <code>force</code> as a separate query is run to process
|
|
* updates.
|
|
*/
|
|
public void synchronize(boolean forceUpdate, boolean isFullSync);
|
|
|
|
/**
|
|
* Gets the set of property names that are auto-mapped for the user with the given user name. These should remain
|
|
* read-only for the user in the UI.
|
|
*
|
|
* @return the person mapped properties
|
|
*/
|
|
public Set<QName> getPersonMappedProperties(String username);
|
|
|
|
} |