private boolean isLayoutOwnerDefault ( IPerson person ) { final String userName = ( String ) person . getAttribute ( "username" ) ; final List < FragmentDefinition > definitions = this . fragmentUtils . getFragmentDefinitions ( ) ; if ( userName != null && definitions != null ) { for ( final FragmentDefinition fragmentDefinition : definitions ) { if ( fragmentDefinition . defaultLayoutOwnerID != null && fragmentDefinition . defaultLayoutOwnerID . equals ( userName ) ) { return true ; } } } final String globalDefault = PropertiesManager . getProperty ( DEFAULT_LAYOUT_OWNER_PROPERTY ) ; if ( globalDefault != null && globalDefault . equals ( userName ) ) { return true ; } return false ; }
Returns true if the user is the owner of a layout which is copied as the default for any fragment when first created .