Class EditorProfileHome
java.lang.Object
fr.paris.lutece.portal.business.editor.EditorProfileHome
Home of the editor profiles
-
Method Summary
Modifier and TypeMethodDescriptionstatic EditorProfilecreate(EditorProfile profile) Creates a profile, after the existing profiles of its editor in the order of prioritystatic List<EditorProfile>findAll()static EditorProfilefindByPrimaryKey(int nIdProfile) static voidremove(int nIdProfile) Removes a profilestatic EditorProfileupdate(EditorProfile profile) Updates a profile and its targets.static voidupdatePriority(int nIdProfile, int nPriority) Updates the priority of a profile
-
Method Details
-
create
Creates a profile, after the existing profiles of its editor in the order of priority- Parameters:
profile- the profile- Returns:
- the profile, with its identifier
-
update
Updates a profile and its targets. The editor, the priority and the default flag are not changed.- Parameters:
profile- the profile- Returns:
- the profile
-
remove
public static void remove(int nIdProfile) Removes a profile- Parameters:
nIdProfile- the identifier of the profile
-
findByPrimaryKey
- Parameters:
nIdProfile- the identifier of the profile- Returns:
- the profile with its targets, null if it does not exist
-
findAll
- Returns:
- the profiles with their targets, by editor, then by priority with the default profile of each editor last
-
updatePriority
public static void updatePriority(int nIdProfile, int nPriority) Updates the priority of a profile- Parameters:
nIdProfile- the identifier of the profilenPriority- the priority
-